diff --git a/common/models/Project.php b/common/models/Project.php index f3f6a6e..2956cc0 100644 --- a/common/models/Project.php +++ b/common/models/Project.php @@ -173,6 +173,15 @@ ->viaTable('project_payment', [ 'project_id' => 'project_id' ]); } + + /** + * @return \yii\db\ActiveQuery + */ + public function getOwner() + { + return $this->hasOne(User::className(), [ 'id' => 'user_id' ]); + } + /** * @return \yii\db\ActiveQuery */ diff --git a/frontend/controllers/TenderController.php b/frontend/controllers/TenderController.php index 6936821..812516d 100755 --- a/frontend/controllers/TenderController.php +++ b/frontend/controllers/TenderController.php @@ -1,6 +1,7 @@ redirect(['search/project']); } - public function actionView(/*$tender_id*/) + public function actionView($tender_id) { - return $this->render('view'); + $model = Project::findOne($tender_id); + + return $this->render('view',[ + 'model' => $model + ]); } } diff --git a/frontend/models/SignupForm.php b/frontend/models/SignupForm.php index 6a3aa88..7e502f9 100755 --- a/frontend/models/SignupForm.php +++ b/frontend/models/SignupForm.php @@ -21,6 +21,7 @@ class SignupForm extends Model public $is_customer; public $is_freelancer; public $city; + public $company_name; /** * @inheritdoc @@ -41,6 +42,10 @@ class SignupForm extends Model ['email', 'string', 'max' => 255], ['email', 'unique', 'targetClass' => '\common\models\User', 'message' => 'This email address has already been taken.'], + ['company_name', 'required'], + ['firstname', 'required'], + + ['verifyCode', 'captcha'], ['type', 'integer'], @@ -92,6 +97,7 @@ class SignupForm extends Model 'alt_location' => 'Город не в списке', 'is_customer' => '', 'is_freelancer' => '', + 'company_name' => 'Название компании' ]; } diff --git a/frontend/views/search/_projects_list_view.php b/frontend/views/search/_projects_list_view.php index e3c54e6..00036b2 100644 --- a/frontend/views/search/_projects_list_view.php +++ b/frontend/views/search/_projects_list_view.php @@ -1,28 +1,31 @@
1.1 Строительная площадка расположена по адресу: г. Киев.
-1.2 Существующий объект представляет собой помещение общей площадью ориентировочно – 140 м2.
-1.3. Цель проекта состоит в проведении внутренних общестроительных и отделочных работ.
-1.4. При разработке методов строительства и выборе материалов, используемых в настоящем проекте, необходимо учитывать климатические условия, характерные для г. Киева.
-- 1.5. Требования к проектированию и производству работ определяются следующими документами: -
Все проектные решения и все разделы рабочего проекта должны быть согласованы с Заказчиком в объеме, необходимом для последующей сдачи инженерных систем и коммуникаций.
+ = $model->description ?>