diff --git a/common/models/Project.php b/common/models/Project.php index d26f8d8..4f7f83a 100644 --- a/common/models/Project.php +++ b/common/models/Project.php @@ -173,6 +173,12 @@ ->viaTable('project_payment', [ 'project_id' => 'project_id' ]); } + + public function getBudgetCurrency() + { + return $this->hasOne(Currency::className(), [ 'currency_id' => 'budget_currency' ]); + } + /** * @return \yii\db\ActiveQuery */ diff --git a/frontend/views/search/_projects_list_view.php b/frontend/views/search/_projects_list_view.php index e493cb6..9f73424 100644 --- a/frontend/views/search/_projects_list_view.php +++ b/frontend/views/search/_projects_list_view.php @@ -1,6 +1,6 @@
- Создание проекта дома -
Бюджет: 20 000 грн (Договорной)
+ name?> +
Бюджет: budget?> budgetCurrency->label?> (Договорной)
ПОДРЯД
@@ -8,15 +8,14 @@
-

На постоянные работы по созданию сайтов, в нашу команду требуется html-верстальщик. Оплата сдельная за проект. В отклике прошу написать свой Skype и почту. А так же 3 проекта с реализованной адаптивной версткой и 3 проекта мобильных сайтов.

-

P.S. Студиям прошу не беспокоить! Нужен специалист в команду

+ description?>
- Киев + city?>
- 15.10.2016 + end?>
4 предложения diff --git a/frontend/views/site/forms-modal-login.php b/frontend/views/site/forms-modal-login.php index 6d94fca..b8381d7 100644 --- a/frontend/views/site/forms-modal-login.php +++ b/frontend/views/site/forms-modal-login.php @@ -3,6 +3,12 @@ use common\models\LoginForm; use yii\helpers\Html; use yii\widgets\ActiveForm; + + + +/** + * @var LoginForm $model + */ ?> @@ -41,11 +47,11 @@ use yii\widgets\ActiveForm; 'id' => 'login-form', ], ]); ?> - field($model, 'username') + field(new LoginForm(), 'username') ->textInput(); ?> - field($model, 'password') + field(new LoginForm(), 'password') ->passwordInput(); ?> - field($model, 'rememberMe') + field(new LoginForm(), 'rememberMe') ->checkbox(); ?>
'btn btn-primary' ]); ?> -- libgit2 0.21.4