Commit d04fea85c71050ce0c1235f8d4f1b722da33755f
Merge remote-tracking branch 'origin/master'
Showing
39 changed files
with
1565 additions
and
10 deletions
Show diff stats
backend/web/js/option.js
@@ -17,6 +17,14 @@ function checkboxerInit() { | @@ -17,6 +17,14 @@ function checkboxerInit() { | ||
17 | $(value).trigger('change'); | 17 | $(value).trigger('change'); |
18 | }); | 18 | }); |
19 | } | 19 | } |
20 | +function accountRedraw() { | ||
21 | + var type = $('input[name="User[type]"]:checked').val(); | ||
22 | + if(type == 2) { | ||
23 | + $('#form_definition').addClass('form_for_company'); | ||
24 | + } else { | ||
25 | + $('#form_definition').removeClass('form_for_company'); | ||
26 | + } | ||
27 | +} | ||
20 | $(function() { | 28 | $(function() { |
21 | var counter = 0; | 29 | var counter = 0; |
22 | $(document).on('click', '.add_row', function() { | 30 | $(document).on('click', '.add_row', function() { |
@@ -137,4 +145,8 @@ $(function() { | @@ -137,4 +145,8 @@ $(function() { | ||
137 | $(val).find('a[role=tab]').first().trigger('click'); | 145 | $(val).find('a[role=tab]').first().trigger('click'); |
138 | }); | 146 | }); |
139 | checkboxerInit(); | 147 | checkboxerInit(); |
148 | + accountRedraw(); | ||
149 | + $(document).on('change', 'input[name="User[type]"]', function() { | ||
150 | + accountRedraw(); | ||
151 | + }); | ||
140 | }); | 152 | }); |
141 | \ No newline at end of file | 153 | \ No newline at end of file |
1 | +<?php | ||
2 | + | ||
3 | +namespace common\models; | ||
4 | + | ||
5 | +use Yii; | ||
6 | + | ||
7 | +/** | ||
8 | + * This is the model class for table "company_info". | ||
9 | + * | ||
10 | + * @property integer $company_info_id | ||
11 | + * @property string $name | ||
12 | + * @property integer $staff | ||
13 | + * @property string $street | ||
14 | + * @property string $house | ||
15 | + * @property integer $hide_mail | ||
16 | + */ | ||
17 | +class CompanyInfo extends \yii\db\ActiveRecord | ||
18 | +{ | ||
19 | + /** | ||
20 | + * @inheritdoc | ||
21 | + */ | ||
22 | + public static function tableName() | ||
23 | + { | ||
24 | + return 'company_info'; | ||
25 | + } | ||
26 | + | ||
27 | + /** | ||
28 | + * @inheritdoc | ||
29 | + */ | ||
30 | + public function rules() | ||
31 | + { | ||
32 | + return [ | ||
33 | + [['name', 'street', 'house'], 'string'], | ||
34 | + [['staff', 'hide_mail'], 'integer'] | ||
35 | + ]; | ||
36 | + } | ||
37 | + | ||
38 | + /** | ||
39 | + * @inheritdoc | ||
40 | + */ | ||
41 | + public function attributeLabels() | ||
42 | + { | ||
43 | + return [ | ||
44 | + 'company_info_id' => Yii::t('app', 'Company Info ID'), | ||
45 | + 'name' => Yii::t('app', 'Name'), | ||
46 | + 'staff' => Yii::t('app', 'Staff'), | ||
47 | + 'street' => Yii::t('app', 'Street'), | ||
48 | + 'house' => Yii::t('app', 'House'), | ||
49 | + 'hide_mail' => Yii::t('app', 'Hide Mail'), | ||
50 | + ]; | ||
51 | + } | ||
52 | +} |
1 | +<?php | ||
2 | + | ||
3 | +namespace common\models; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\base\Model; | ||
7 | +use yii\data\ActiveDataProvider; | ||
8 | +use common\models\CompanyInfo; | ||
9 | + | ||
10 | +/** | ||
11 | + * CompanyInfoSearch represents the model behind the search form about `common\models\CompanyInfo`. | ||
12 | + */ | ||
13 | +class CompanyInfoSearch extends CompanyInfo | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @inheritdoc | ||
17 | + */ | ||
18 | + public function rules() | ||
19 | + { | ||
20 | + return [ | ||
21 | + [['company_info_id', 'staff', 'hide_mail'], 'integer'], | ||
22 | + [['name', 'street', 'house'], 'safe'], | ||
23 | + ]; | ||
24 | + } | ||
25 | + | ||
26 | + /** | ||
27 | + * @inheritdoc | ||
28 | + */ | ||
29 | + public function scenarios() | ||
30 | + { | ||
31 | + // bypass scenarios() implementation in the parent class | ||
32 | + return Model::scenarios(); | ||
33 | + } | ||
34 | + | ||
35 | + /** | ||
36 | + * Creates data provider instance with search query applied | ||
37 | + * | ||
38 | + * @param array $params | ||
39 | + * | ||
40 | + * @return ActiveDataProvider | ||
41 | + */ | ||
42 | + public function search($params) | ||
43 | + { | ||
44 | + $query = CompanyInfo::find(); | ||
45 | + | ||
46 | + $dataProvider = new ActiveDataProvider([ | ||
47 | + 'query' => $query, | ||
48 | + ]); | ||
49 | + | ||
50 | + $this->load($params); | ||
51 | + | ||
52 | + if (!$this->validate()) { | ||
53 | + // uncomment the following line if you do not want to return any records when validation fails | ||
54 | + // $query->where('0=1'); | ||
55 | + return $dataProvider; | ||
56 | + } | ||
57 | + | ||
58 | + $query->andFilterWhere([ | ||
59 | + 'company_info_id' => $this->company_info_id, | ||
60 | + 'staff' => $this->staff, | ||
61 | + 'hide_mail' => $this->hide_mail, | ||
62 | + ]); | ||
63 | + | ||
64 | + $query->andFilterWhere(['like', 'name', $this->name]) | ||
65 | + ->andFilterWhere(['like', 'street', $this->street]) | ||
66 | + ->andFilterWhere(['like', 'house', $this->house]); | ||
67 | + | ||
68 | + return $dataProvider; | ||
69 | + } | ||
70 | +} |
1 | +<?php | ||
2 | + | ||
3 | +namespace common\models; | ||
4 | + | ||
5 | +use Yii; | ||
6 | + | ||
7 | +/** | ||
8 | + * This is the model class for table "job". | ||
9 | + * | ||
10 | + * @property integer $job_id | ||
11 | + * @property string $name | ||
12 | + * @property string $link | ||
13 | + * @property string $date_start | ||
14 | + * @property string $date_end | ||
15 | + * @property string $position | ||
16 | + * @property integer $user_id | ||
17 | + * @property integer $total_count | ||
18 | + * @property integer $complete_count | ||
19 | + * @property integer $current | ||
20 | + */ | ||
21 | +class Job extends \yii\db\ActiveRecord | ||
22 | +{ | ||
23 | + /** | ||
24 | + * @inheritdoc | ||
25 | + */ | ||
26 | + public static function tableName() | ||
27 | + { | ||
28 | + return 'job'; | ||
29 | + } | ||
30 | + | ||
31 | + /** | ||
32 | + * @inheritdoc | ||
33 | + */ | ||
34 | + public function rules() | ||
35 | + { | ||
36 | + return [ | ||
37 | + [['name'], 'required'], | ||
38 | + [['date_start', 'date_end'], 'safe'], | ||
39 | + [['user_id', 'total_count', 'complete_count', 'current'], 'integer'], | ||
40 | + [['name', 'link', 'position'], 'string', 'max' => 255] | ||
41 | + ]; | ||
42 | + } | ||
43 | + | ||
44 | + /** | ||
45 | + * @inheritdoc | ||
46 | + */ | ||
47 | + public function attributeLabels() | ||
48 | + { | ||
49 | + return [ | ||
50 | + 'job_id' => Yii::t('app', 'Job ID'), | ||
51 | + 'name' => Yii::t('app', 'Name'), | ||
52 | + 'link' => Yii::t('app', 'Link'), | ||
53 | + 'date_start' => Yii::t('app', 'Date Start'), | ||
54 | + 'date_end' => Yii::t('app', 'Date End'), | ||
55 | + 'position' => Yii::t('app', 'Position'), | ||
56 | + 'user_id' => Yii::t('app', 'User ID'), | ||
57 | + 'total_count' => Yii::t('app', 'Total Count'), | ||
58 | + 'complete_count' => Yii::t('app', 'Complete Count'), | ||
59 | + 'current' => Yii::t('app', 'Current'), | ||
60 | + ]; | ||
61 | + } | ||
62 | +} |
1 | +<?php | ||
2 | + | ||
3 | +namespace common\models; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use yii\base\Model; | ||
7 | +use yii\data\ActiveDataProvider; | ||
8 | +use common\models\Job; | ||
9 | + | ||
10 | +/** | ||
11 | + * JobSearch represents the model behind the search form about `common\models\Job`. | ||
12 | + */ | ||
13 | +class JobSearch extends Job | ||
14 | +{ | ||
15 | + /** | ||
16 | + * @inheritdoc | ||
17 | + */ | ||
18 | + public function rules() | ||
19 | + { | ||
20 | + return [ | ||
21 | + [['job_id', 'user_id', 'total_count', 'complete_count', 'current'], 'integer'], | ||
22 | + [['name', 'link', 'date_start', 'date_end', 'position'], 'safe'], | ||
23 | + ]; | ||
24 | + } | ||
25 | + | ||
26 | + /** | ||
27 | + * @inheritdoc | ||
28 | + */ | ||
29 | + public function scenarios() | ||
30 | + { | ||
31 | + // bypass scenarios() implementation in the parent class | ||
32 | + return Model::scenarios(); | ||
33 | + } | ||
34 | + | ||
35 | + /** | ||
36 | + * Creates data provider instance with search query applied | ||
37 | + * | ||
38 | + * @param array $params | ||
39 | + * | ||
40 | + * @return ActiveDataProvider | ||
41 | + */ | ||
42 | + public function search($params) | ||
43 | + { | ||
44 | + $query = Job::find(); | ||
45 | + | ||
46 | + $dataProvider = new ActiveDataProvider([ | ||
47 | + 'query' => $query, | ||
48 | + ]); | ||
49 | + | ||
50 | + $this->load($params); | ||
51 | + | ||
52 | + if (!$this->validate()) { | ||
53 | + // uncomment the following line if you do not want to return any records when validation fails | ||
54 | + // $query->where('0=1'); | ||
55 | + return $dataProvider; | ||
56 | + } | ||
57 | + | ||
58 | + $query->andFilterWhere([ | ||
59 | + 'job_id' => $this->job_id, | ||
60 | + 'date_start' => $this->date_start, | ||
61 | + 'date_end' => $this->date_end, | ||
62 | + 'user_id' => $this->user_id, | ||
63 | + 'total_count' => $this->total_count, | ||
64 | + 'complete_count' => $this->complete_count, | ||
65 | + 'current' => $this->current, | ||
66 | + ]); | ||
67 | + | ||
68 | + $query->andFilterWhere(['like', 'name', $this->name]) | ||
69 | + ->andFilterWhere(['like', 'link', $this->link]) | ||
70 | + ->andFilterWhere(['like', 'position', $this->position]); | ||
71 | + | ||
72 | + return $dataProvider; | ||
73 | + } | ||
74 | +} |
common/models/User.php
@@ -31,6 +31,9 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface | @@ -31,6 +31,9 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface | ||
31 | const STATUS_DELETED = 0; | 31 | const STATUS_DELETED = 0; |
32 | const STATUS_ACTIVE = 10; | 32 | const STATUS_ACTIVE = 10; |
33 | public $profile; | 33 | public $profile; |
34 | + public $old_password; | ||
35 | + public $new_password; | ||
36 | + public $password_reply; | ||
34 | 37 | ||
35 | /** | 38 | /** |
36 | * @inheritdoc | 39 | * @inheritdoc |
@@ -58,6 +61,8 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface | @@ -58,6 +61,8 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface | ||
58 | return [ | 61 | return [ |
59 | ['status', 'default', 'value' => self::STATUS_ACTIVE], | 62 | ['status', 'default', 'value' => self::STATUS_ACTIVE], |
60 | ['status', 'in', 'range' => [self::STATUS_ACTIVE, self::STATUS_DELETED]], | 63 | ['status', 'in', 'range' => [self::STATUS_ACTIVE, self::STATUS_DELETED]], |
64 | + [['username', 'lastname', 'firstname', 'middlename'], 'string', 'max' => 255], | ||
65 | + [['type'], 'in', 'range' => [1, 2]], | ||
61 | ]; | 66 | ]; |
62 | } | 67 | } |
63 | 68 | ||
@@ -263,4 +268,14 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface | @@ -263,4 +268,14 @@ class User extends ActiveRecord implements IdentityInterface, UserRbacInterface | ||
263 | public function getUserInfo(){ | 268 | public function getUserInfo(){ |
264 | return $this->hasOne(UserInfo::className(), ['user_id' => 'id']); | 269 | return $this->hasOne(UserInfo::className(), ['user_id' => 'id']); |
265 | } | 270 | } |
271 | + | ||
272 | + public function getIsPerformer() | ||
273 | + { | ||
274 | + return true; | ||
275 | + } | ||
276 | + | ||
277 | + public function getIsCustomer() | ||
278 | + { | ||
279 | + return true; | ||
280 | + } | ||
266 | } | 281 | } |
common/models/UserInfo.php
@@ -25,9 +25,28 @@ use Yii; | @@ -25,9 +25,28 @@ use Yii; | ||
25 | * @property integer $delivery | 25 | * @property integer $delivery |
26 | * @property double $prepayment | 26 | * @property double $prepayment |
27 | * @property string $about | 27 | * @property string $about |
28 | + * @property integer $type | ||
28 | */ | 29 | */ |
29 | class UserInfo extends \yii\db\ActiveRecord | 30 | class UserInfo extends \yii\db\ActiveRecord |
30 | { | 31 | { |
32 | + // Константа обознащающая физическое лицо | ||
33 | + const USER_TYPE_FIZ = 1; | ||
34 | + | ||
35 | + // Константа обозначающая компанию | ||
36 | + const USER_TYPE_COMPANY = 2; | ||
37 | + | ||
38 | + // Константа обозначающая, что компания/физ.лицо свободно | ||
39 | + const USER_STATUS_FREE = 1; | ||
40 | + | ||
41 | + // Константа обозначающая, что компания/физ.лицо занято | ||
42 | + const USER_STATUS_BUSY = 2; | ||
43 | + | ||
44 | + // Константа обозначающая, что компания/физ.лицо хочет стать членом МФП | ||
45 | + const USER_MEMBER_FALSE = 1; | ||
46 | + | ||
47 | + // Константа обозначающая, что компания/физ.лицо не хочет стать членом МФП | ||
48 | + const USER_MEMBER_TRUE = 2; | ||
49 | + | ||
31 | /** | 50 | /** |
32 | * @inheritdoc | 51 | * @inheritdoc |
33 | */ | 52 | */ |
@@ -44,10 +63,11 @@ class UserInfo extends \yii\db\ActiveRecord | @@ -44,10 +63,11 @@ class UserInfo extends \yii\db\ActiveRecord | ||
44 | return [ | 63 | return [ |
45 | [['user_id', 'view_count', 'contract', 'estimate', 'purchase', 'delivery'], 'integer'], | 64 | [['user_id', 'view_count', 'contract', 'estimate', 'purchase', 'delivery'], 'integer'], |
46 | [['date_visit'], 'safe'], | 65 | [['date_visit'], 'safe'], |
47 | - [['experience', 'soft', 'guarantee', 'about'], 'string'], | 66 | + [['experience', 'soft', 'guarantee', 'about', 'city', 'country'], 'string'], |
48 | [['prepayment'], 'number'], | 67 | [['prepayment'], 'number'], |
49 | - [['busy', 'rank', 'location'], 'string', 'max' => 50], | ||
50 | - [['salary', 'job'], 'string', 'max' => 255] | 68 | + [['rank', 'location'], 'string', 'max' => 50], |
69 | + [['salary', 'job'], 'string', 'max' => 255], | ||
70 | + [['busy', 'member'], 'boolean'], | ||
51 | ]; | 71 | ]; |
52 | } | 72 | } |
53 | 73 |
console/migrations/m160202_090343_user_add_fields.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +use yii\db\Schema; | ||
4 | +use yii\db\Migration; | ||
5 | + | ||
6 | +class m160202_090343_user_add_fields extends Migration | ||
7 | +{ | ||
8 | + public function up() | ||
9 | + { | ||
10 | + $this->addColumn('user', 'type', $this->smallInteger()); | ||
11 | + $this->addColumn('user_info', 'image', $this->integer()); | ||
12 | + $this->addColumn('user_info', 'poster', $this->integer()); | ||
13 | + $this->addColumn('user_info', 'member', $this->smallInteger()); | ||
14 | + | ||
15 | + $this->createTable('{{%company_info}}', [ | ||
16 | + 'company_info_id' => $this->primaryKey(), | ||
17 | + 'name' => $this->string(255)->notNull(), | ||
18 | + 'staff' => $this->integer(), | ||
19 | + 'street' => $this->string(255), | ||
20 | + 'house' => $this->string(255), | ||
21 | + 'hide_mail' => $this->smallInteger(), | ||
22 | + 'user_id' => $this->integer(), | ||
23 | + ], null); | ||
24 | + } | ||
25 | + | ||
26 | + public function down() | ||
27 | + { | ||
28 | + $this->dropColumn('user', 'type'); | ||
29 | + $this->dropColumn('user_info', 'image'); | ||
30 | + $this->dropColumn('user_info', 'poster'); | ||
31 | + $this->dropColumn('user_info', 'member'); | ||
32 | + $this->dropTable('company_info'); | ||
33 | + } | ||
34 | +} |
console/migrations/m160202_094943_user_info_country_city.php
0 → 100644
1 | +<?php | ||
2 | + | ||
3 | +use yii\db\Schema; | ||
4 | +use yii\db\Migration; | ||
5 | + | ||
6 | +class m160202_094943_user_info_country_city extends Migration | ||
7 | +{ | ||
8 | + public function up() | ||
9 | + { | ||
10 | + $this->addColumn('user_info', 'country', $this->string(255)); | ||
11 | + $this->addColumn('user_info', 'city', $this->string(255)); | ||
12 | + } | ||
13 | + | ||
14 | + public function down() | ||
15 | + { | ||
16 | + $this->dropColumn('user_info', 'country'); | ||
17 | + $this->dropColumn('user_info', 'city'); | ||
18 | + } | ||
19 | + | ||
20 | + /* | ||
21 | + // Use safeUp/safeDown to run migration code within a transaction | ||
22 | + public function safeUp() | ||
23 | + { | ||
24 | + } | ||
25 | + | ||
26 | + public function safeDown() | ||
27 | + { | ||
28 | + } | ||
29 | + */ | ||
30 | +} |
console/migrations/m160203_082111_jobs.php
@@ -18,6 +18,7 @@ class m160203_082111_jobs extends Migration | @@ -18,6 +18,7 @@ class m160203_082111_jobs extends Migration | ||
18 | 'user_id' => $this->integer(), | 18 | 'user_id' => $this->integer(), |
19 | 'total_count' => $this->integer(), | 19 | 'total_count' => $this->integer(), |
20 | 'complete_count' => $this->integer(), | 20 | 'complete_count' => $this->integer(), |
21 | + 'current' => $this->smallInteger(), | ||
21 | ], $tableOptions); | 22 | ], $tableOptions); |
22 | 23 | ||
23 | } | 24 | } |
frontend/controllers/AccountsController.php
1 | <?php | 1 | <?php |
2 | namespace frontend\controllers; | 2 | namespace frontend\controllers; |
3 | 3 | ||
4 | +use common\models\CompanyInfo; | ||
4 | use common\models\Fields; | 5 | use common\models\Fields; |
6 | +use common\models\Job; | ||
5 | use common\models\Language; | 7 | use common\models\Language; |
6 | use Yii; | 8 | use Yii; |
7 | use common\models\User; | 9 | use common\models\User; |
@@ -28,7 +30,7 @@ class AccountsController extends Controller | @@ -28,7 +30,7 @@ class AccountsController extends Controller | ||
28 | 'class' => AccessControl::className(), | 30 | 'class' => AccessControl::className(), |
29 | 'rules' => [ | 31 | 'rules' => [ |
30 | [ | 32 | [ |
31 | - 'actions' => ['cabinet','change-password', 'bookmarks'], | 33 | + //'actions' => ['cabinet','change-password', 'bookmarks', 'projects'], |
32 | 'allow' => true, | 34 | 'allow' => true, |
33 | 'roles' => ['@'], | 35 | 'roles' => ['@'], |
34 | ], | 36 | ], |
@@ -75,6 +77,127 @@ class AccountsController extends Controller | @@ -75,6 +77,127 @@ class AccountsController extends Controller | ||
75 | return $this->render('bookmarks'); | 77 | return $this->render('bookmarks'); |
76 | } | 78 | } |
77 | 79 | ||
80 | + public function actionGeneral() | ||
81 | + { | ||
82 | + $user_info = UserInfo::find()->where(['user_id' => \Yii::$app->user->getId()])->one(); | ||
83 | + $company_info = CompanyInfo::find()->where(['user_id' => \Yii::$app->user->getId()])->one(); | ||
84 | + $user = \Yii::$app->user->identity; | ||
85 | + if(empty($user_info)) | ||
86 | + { | ||
87 | + $user_info = new UserInfo(['user_id' => \Yii::$app->user->getId()]); | ||
88 | + } | ||
89 | + if(empty($company_info)) | ||
90 | + { | ||
91 | + $company_info = new CompanyInfo(['user_id' => \Yii::$app->user->getId()]); | ||
92 | + } | ||
93 | + $post = \Yii::$app->request->post(); | ||
94 | + if(!empty($post)) | ||
95 | + { | ||
96 | + $user_info->load($post); | ||
97 | + $company_info->load($post); | ||
98 | + $user->load($post); | ||
99 | + if($user_info->save() && $user->save() && $company_info->save()) | ||
100 | + { | ||
101 | + \Yii::$app->session->setFlash('userinfoupdate', 'Информация успешно обновлена'); | ||
102 | + } else { | ||
103 | + \Yii::$app->session->setFlash('userinfoupdate', 'Ошибка обновления. Проверьте форму'); | ||
104 | + } | ||
105 | + } | ||
106 | + return $this->render('general', ['user_info' => $user_info, 'user' => $user, 'company_info' => $company_info]); | ||
107 | + } | ||
108 | + | ||
109 | + public function actionPortfolio() | ||
110 | + { | ||
111 | + | ||
112 | + } | ||
113 | + | ||
114 | + /** | ||
115 | + * $user User | ||
116 | + */ | ||
117 | + public function actionSetting() | ||
118 | + { | ||
119 | + $user = \Yii::$app->user->identity; | ||
120 | + $post = \Yii::$app->request->post('User'); | ||
121 | + if(!empty($post)) { | ||
122 | + if(empty($post['new_password'])) { | ||
123 | + $user->addError('new_password', 'Введите новый пароль'); | ||
124 | + } else { | ||
125 | + $user->new_password = $post['new_password']; | ||
126 | + } | ||
127 | + if(empty($post['old_password'])) { | ||
128 | + $user->addError('old_password', 'Введите новый пароль'); | ||
129 | + } else { | ||
130 | + $user->old_password = $post['old_password']; | ||
131 | + } | ||
132 | + if(empty($post['password_reply']) || $post['password_reply'] !== $post['new_password']) { | ||
133 | + $user->addError('password_reply', 'Неправильный повтор пароля'); | ||
134 | + } else { | ||
135 | + $user->password_reply = $post['password_reply']; | ||
136 | + } | ||
137 | + if(!$user->hasErrors()) { | ||
138 | + if($user->validatePassword($user->old_password)) { | ||
139 | + $user->setPassword($user->new_password); | ||
140 | + $user->generateAuthKey(); | ||
141 | + if($user->save()) { | ||
142 | + \Yii::$app->session->setFlash('passwordupdate', 'Пароль успешно обновлен'); | ||
143 | + } | ||
144 | + } else { | ||
145 | + $user->addError('old_password', 'Неправильный старый пароль'); | ||
146 | + } | ||
147 | + } | ||
148 | + } | ||
149 | + return $this->render('setting', ['user' => $user]); | ||
150 | + } | ||
151 | + | ||
152 | + public function actionContacts() | ||
153 | + { | ||
154 | + $user_info = UserInfo::find()->where(['user_id' => \Yii::$app->user->getId()])->one(); | ||
155 | + if(empty($user_info)) { | ||
156 | + $user_info = new UserInfo(['user_id' => \Yii::$app->user->getId()]); | ||
157 | + } | ||
158 | + return $this->render('contacts', ['user_info' => $user_info]); | ||
159 | + } | ||
160 | + | ||
161 | + public function actionService() | ||
162 | + { | ||
163 | + return $this->render('service'); | ||
164 | + } | ||
165 | + | ||
166 | + public function actionAddSkills() | ||
167 | + { | ||
168 | + | ||
169 | + } | ||
170 | + | ||
171 | + public function actionEmployment() | ||
172 | + { | ||
173 | + $job = Job::find()->where(['user_id' => \Yii::$app->user->getId()])->orderBy(['current' => SORT_DESC])->all(); | ||
174 | + if(empty($job)) { | ||
175 | + $job[] = new Job(['user_id' => \Yii::$app->user->getId(), 'current' => 0]); | ||
176 | + } | ||
177 | + if(!$job[0]->current) { | ||
178 | + array_unshift($job, new Job(['user_id' => \Yii::$app->user->getId(), 'current' => 1])); | ||
179 | + } | ||
180 | + if(!empty(\Yii::$app->request->post())) { | ||
181 | + var_dump(\Yii::$app->request->post()); | ||
182 | + die(); | ||
183 | + } | ||
184 | + return $this->render('employment', ['job' => $job]); | ||
185 | + } | ||
186 | + | ||
187 | + public function actionProjects() | ||
188 | + { | ||
189 | + return $this->render('projects'); | ||
190 | + } | ||
191 | + | ||
192 | + public function actionGallery() | ||
193 | + { | ||
194 | + | ||
195 | + } | ||
196 | + | ||
197 | + public function actionGetForm($lastindex) | ||
198 | + { | ||
199 | + return $this->renderAjax('_job_form', ['index' => $lastindex+1]); | ||
200 | + } | ||
78 | 201 | ||
79 | /** | 202 | /** |
80 | * @param $id | 203 | * @param $id |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use common\models\CompanyInfo; | ||
7 | +use common\models\CompanyInfoSearch; | ||
8 | +use yii\web\Controller; | ||
9 | +use yii\web\NotFoundHttpException; | ||
10 | +use yii\filters\VerbFilter; | ||
11 | + | ||
12 | +/** | ||
13 | + * CompanyInfoController implements the CRUD actions for CompanyInfo model. | ||
14 | + */ | ||
15 | +class CompanyInfoController extends Controller | ||
16 | +{ | ||
17 | + public function behaviors() | ||
18 | + { | ||
19 | + return [ | ||
20 | + 'verbs' => [ | ||
21 | + 'class' => VerbFilter::className(), | ||
22 | + 'actions' => [ | ||
23 | + 'delete' => ['post'], | ||
24 | + ], | ||
25 | + ], | ||
26 | + ]; | ||
27 | + } | ||
28 | + | ||
29 | + /** | ||
30 | + * Lists all CompanyInfo models. | ||
31 | + * @return mixed | ||
32 | + */ | ||
33 | + public function actionIndex() | ||
34 | + { | ||
35 | + $searchModel = new CompanyInfoSearch(); | ||
36 | + $dataProvider = $searchModel->search(Yii::$app->request->queryParams); | ||
37 | + | ||
38 | + return $this->render('index', [ | ||
39 | + 'searchModel' => $searchModel, | ||
40 | + 'dataProvider' => $dataProvider, | ||
41 | + ]); | ||
42 | + } | ||
43 | + | ||
44 | + /** | ||
45 | + * Displays a single CompanyInfo model. | ||
46 | + * @param integer $id | ||
47 | + * @return mixed | ||
48 | + */ | ||
49 | + public function actionView($id) | ||
50 | + { | ||
51 | + return $this->render('view', [ | ||
52 | + 'model' => $this->findModel($id), | ||
53 | + ]); | ||
54 | + } | ||
55 | + | ||
56 | + /** | ||
57 | + * Creates a new CompanyInfo model. | ||
58 | + * If creation is successful, the browser will be redirected to the 'view' page. | ||
59 | + * @return mixed | ||
60 | + */ | ||
61 | + public function actionCreate() | ||
62 | + { | ||
63 | + $model = new CompanyInfo(); | ||
64 | + | ||
65 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
66 | + return $this->redirect(['view', 'id' => $model->company_info_id]); | ||
67 | + } else { | ||
68 | + return $this->render('create', [ | ||
69 | + 'model' => $model, | ||
70 | + ]); | ||
71 | + } | ||
72 | + } | ||
73 | + | ||
74 | + /** | ||
75 | + * Updates an existing CompanyInfo model. | ||
76 | + * If update is successful, the browser will be redirected to the 'view' page. | ||
77 | + * @param integer $id | ||
78 | + * @return mixed | ||
79 | + */ | ||
80 | + public function actionUpdate($id) | ||
81 | + { | ||
82 | + $model = $this->findModel($id); | ||
83 | + | ||
84 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
85 | + return $this->redirect(['view', 'id' => $model->company_info_id]); | ||
86 | + } else { | ||
87 | + return $this->render('update', [ | ||
88 | + 'model' => $model, | ||
89 | + ]); | ||
90 | + } | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Deletes an existing CompanyInfo model. | ||
95 | + * If deletion is successful, the browser will be redirected to the 'index' page. | ||
96 | + * @param integer $id | ||
97 | + * @return mixed | ||
98 | + */ | ||
99 | + public function actionDelete($id) | ||
100 | + { | ||
101 | + $this->findModel($id)->delete(); | ||
102 | + | ||
103 | + return $this->redirect(['index']); | ||
104 | + } | ||
105 | + | ||
106 | + /** | ||
107 | + * Finds the CompanyInfo model based on its primary key value. | ||
108 | + * If the model is not found, a 404 HTTP exception will be thrown. | ||
109 | + * @param integer $id | ||
110 | + * @return CompanyInfo the loaded model | ||
111 | + * @throws NotFoundHttpException if the model cannot be found | ||
112 | + */ | ||
113 | + protected function findModel($id) | ||
114 | + { | ||
115 | + if (($model = CompanyInfo::findOne($id)) !== null) { | ||
116 | + return $model; | ||
117 | + } else { | ||
118 | + throw new NotFoundHttpException('The requested page does not exist.'); | ||
119 | + } | ||
120 | + } | ||
121 | +} |
1 | +<?php | ||
2 | + | ||
3 | +namespace frontend\controllers; | ||
4 | + | ||
5 | +use Yii; | ||
6 | +use common\models\Job; | ||
7 | +use common\models\JobSearch; | ||
8 | +use yii\web\Controller; | ||
9 | +use yii\web\NotFoundHttpException; | ||
10 | +use yii\filters\VerbFilter; | ||
11 | + | ||
12 | +/** | ||
13 | + * JobController implements the CRUD actions for Job model. | ||
14 | + */ | ||
15 | +class JobController extends Controller | ||
16 | +{ | ||
17 | + public function behaviors() | ||
18 | + { | ||
19 | + return [ | ||
20 | + 'verbs' => [ | ||
21 | + 'class' => VerbFilter::className(), | ||
22 | + 'actions' => [ | ||
23 | + 'delete' => ['post'], | ||
24 | + ], | ||
25 | + ], | ||
26 | + ]; | ||
27 | + } | ||
28 | + | ||
29 | + /** | ||
30 | + * Lists all Job models. | ||
31 | + * @return mixed | ||
32 | + */ | ||
33 | + public function actionIndex() | ||
34 | + { | ||
35 | + $searchModel = new JobSearch(); | ||
36 | + $dataProvider = $searchModel->search(Yii::$app->request->queryParams); | ||
37 | + | ||
38 | + return $this->render('index', [ | ||
39 | + 'searchModel' => $searchModel, | ||
40 | + 'dataProvider' => $dataProvider, | ||
41 | + ]); | ||
42 | + } | ||
43 | + | ||
44 | + /** | ||
45 | + * Displays a single Job model. | ||
46 | + * @param integer $id | ||
47 | + * @return mixed | ||
48 | + */ | ||
49 | + public function actionView($id) | ||
50 | + { | ||
51 | + return $this->render('view', [ | ||
52 | + 'model' => $this->findModel($id), | ||
53 | + ]); | ||
54 | + } | ||
55 | + | ||
56 | + /** | ||
57 | + * Creates a new Job model. | ||
58 | + * If creation is successful, the browser will be redirected to the 'view' page. | ||
59 | + * @return mixed | ||
60 | + */ | ||
61 | + public function actionCreate() | ||
62 | + { | ||
63 | + $model = new Job(); | ||
64 | + | ||
65 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
66 | + return $this->redirect(['view', 'id' => $model->job_id]); | ||
67 | + } else { | ||
68 | + return $this->render('create', [ | ||
69 | + 'model' => $model, | ||
70 | + ]); | ||
71 | + } | ||
72 | + } | ||
73 | + | ||
74 | + /** | ||
75 | + * Updates an existing Job model. | ||
76 | + * If update is successful, the browser will be redirected to the 'view' page. | ||
77 | + * @param integer $id | ||
78 | + * @return mixed | ||
79 | + */ | ||
80 | + public function actionUpdate($id) | ||
81 | + { | ||
82 | + $model = $this->findModel($id); | ||
83 | + | ||
84 | + if ($model->load(Yii::$app->request->post()) && $model->save()) { | ||
85 | + return $this->redirect(['view', 'id' => $model->job_id]); | ||
86 | + } else { | ||
87 | + return $this->render('update', [ | ||
88 | + 'model' => $model, | ||
89 | + ]); | ||
90 | + } | ||
91 | + } | ||
92 | + | ||
93 | + /** | ||
94 | + * Deletes an existing Job model. | ||
95 | + * If deletion is successful, the browser will be redirected to the 'index' page. | ||
96 | + * @param integer $id | ||
97 | + * @return mixed | ||
98 | + */ | ||
99 | + public function actionDelete($id) | ||
100 | + { | ||
101 | + $this->findModel($id)->delete(); | ||
102 | + | ||
103 | + return $this->redirect(['index']); | ||
104 | + } | ||
105 | + | ||
106 | + /** | ||
107 | + * Finds the Job model based on its primary key value. | ||
108 | + * If the model is not found, a 404 HTTP exception will be thrown. | ||
109 | + * @param integer $id | ||
110 | + * @return Job the loaded model | ||
111 | + * @throws NotFoundHttpException if the model cannot be found | ||
112 | + */ | ||
113 | + protected function findModel($id) | ||
114 | + { | ||
115 | + if (($model = Job::findOne($id)) !== null) { | ||
116 | + return $model; | ||
117 | + } else { | ||
118 | + throw new NotFoundHttpException('The requested page does not exist.'); | ||
119 | + } | ||
120 | + } | ||
121 | +} |
1 | +<?php | ||
2 | + /** | ||
3 | + * @var integer $index | ||
4 | + */ | ||
5 | + use common\models\Job; | ||
6 | + use yii\jui\DatePicker; | ||
7 | + use yii\widgets\ActiveForm; | ||
8 | + | ||
9 | + $model = new Job(['user_id' => \Yii::$app->user->getId (), 'current' => 0]); | ||
10 | + $form = ActiveForm::begin (); | ||
11 | + echo "<div class='ajax-loaded'><div class='prev_job_inputs'>"; | ||
12 | + echo $form->field ($model, '[' . $index . ']name') | ||
13 | + ->label ('Название') | ||
14 | + ->textInput (); | ||
15 | + echo $form->field ($model, '[' . $index . ']link') | ||
16 | + ->label ('Ссылка на компанию на сайте МФП') | ||
17 | + ->textInput (); | ||
18 | + echo $form->field ($model, '[' . $index . ']date_start') | ||
19 | + ->label ('Дата начала работы') | ||
20 | + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); | ||
21 | + echo $form->field ($model, '[' . $index . ']date_end') | ||
22 | + ->label ('Дата окончания работы') | ||
23 | + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); | ||
24 | + echo $form->field ($model, '[' . $index . ']position') | ||
25 | + ->label ('Должность') | ||
26 | + ->textInput (); | ||
27 | + echo $form->field ($model, '[' . $index . ']total_count') | ||
28 | + ->label ('Количество проектов, в которых принимали участие') | ||
29 | + ->input ('number'); | ||
30 | + echo $form->field ($model, '[' . $index . ']complete_count') | ||
31 | + ->label ('из них реализовано') | ||
32 | + ->input ('number'); | ||
33 | + echo "</div></div>"; | ||
34 | + $form->end (); | ||
35 | +?> |
1 | +<?php | ||
2 | +use common\models\Option; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | +use \common\widgets\MultiLangForm; | ||
6 | + | ||
7 | + $this->title = 'Мой профиль'; | ||
8 | + $this->params['breadcrumbs'][] = $this->title; | ||
9 | +?> | ||
10 | + | ||
11 | +<h1><?= $this->title ?></h1> | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | +<?php | ||
16 | + | ||
17 | +$form = $this->render('_form', [ | ||
18 | + 'user' => $user, | ||
19 | + 'user_info' => $user_info, | ||
20 | +]); | ||
21 | + | ||
22 | +echo MultiLangForm::widget(['form'=>$form]); | ||
23 | + | ||
24 | +?> | ||
25 | + | ||
26 | + |
1 | +<?php | ||
2 | +use common\models\Option; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | +use \common\widgets\MultiLangForm; | ||
6 | + | ||
7 | + $this->title = 'Мой профиль'; | ||
8 | + $this->params['breadcrumbs'][] = $this->title; | ||
9 | +?> | ||
10 | + | ||
11 | +<h1><?= $this->title ?></h1> | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | +<?php | ||
16 | + | ||
17 | +$form = $this->render('_form', [ | ||
18 | + 'user' => $user, | ||
19 | + 'user_info' => $user_info, | ||
20 | +]); | ||
21 | + | ||
22 | +echo MultiLangForm::widget(['form'=>$form]); | ||
23 | + | ||
24 | +?> | ||
25 | + | ||
26 | + |
1 | +<?php | ||
2 | + /** | ||
3 | + * @var Job[] $job | ||
4 | + */ | ||
5 | + use common\models\Job; | ||
6 | + use yii\helpers\Html; | ||
7 | + use yii\jui\DatePicker; | ||
8 | + use yii\widgets\ActiveForm; | ||
9 | + | ||
10 | + $this->title = 'Трудовой стаж'; | ||
11 | + $this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | + <h1><?= $this->title ?></h1> | ||
14 | +<?php | ||
15 | + $form = ActiveForm::begin (); | ||
16 | + $current = array_shift ($job); | ||
17 | +?> | ||
18 | + <div class="current_job_container"> | ||
19 | + <p>Текущее место работы:</p> | ||
20 | + <div class="current_job_inputs"> | ||
21 | + <?php | ||
22 | + echo $form->field ($current, '[0]current') | ||
23 | + ->label (false) | ||
24 | + ->hiddenInput (['value' => 1]); | ||
25 | + echo $form->field ($current, '[0]name') | ||
26 | + ->label ('Название') | ||
27 | + ->textInput (); | ||
28 | + echo $form->field ($current, '[0]link') | ||
29 | + ->label ('Ссылка на компанию на сайте МФП') | ||
30 | + ->textInput (); | ||
31 | + echo $form->field ($current, '[0]date_start') | ||
32 | + ->label ('Дата начала работы') | ||
33 | + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); | ||
34 | + echo $form->field ($current, '[0]position') | ||
35 | + ->label ('Должность') | ||
36 | + ->textInput (); | ||
37 | + echo $form->field ($current, '[0]total_count') | ||
38 | + ->label ('Количество проектов, в которых принимали участие') | ||
39 | + ->input ('number'); | ||
40 | + echo $form->field ($current, '[0]complete_count') | ||
41 | + ->label ('из них реализовано') | ||
42 | + ->input ('number'); | ||
43 | + ?> | ||
44 | + </div> | ||
45 | + </div> | ||
46 | + <div class="prev_job_container"> | ||
47 | + <p>Предыдущие места работы</p> | ||
48 | + <?php | ||
49 | + foreach ($job as $index => $job_model) | ||
50 | + { | ||
51 | + echo "<div class='prev_job_inputs'>"; | ||
52 | + echo $form->field ($job_model, '['. ($index + 1) .']name') | ||
53 | + ->label ('Название') | ||
54 | + ->textInput (); | ||
55 | + echo $form->field ($job_model, '['. ($index + 1) .']link') | ||
56 | + ->label ('Ссылка на компанию на сайте МФП') | ||
57 | + ->textInput (); | ||
58 | + echo $form->field ($job_model, '['. ($index + 1) .']date_start') | ||
59 | + ->label ('Дата начала работы') | ||
60 | + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); | ||
61 | + echo $form->field ($job_model, '['. ($index + 1) .']date_end') | ||
62 | + ->label ('Дата окончания работы') | ||
63 | + ->widget (DatePicker::className (), ['language' => 'ru', 'dateFormat' => 'dd-MM-yyyy']); | ||
64 | + echo $form->field ($job_model, '['. ($index + 1) .']position') | ||
65 | + ->label ('Должность') | ||
66 | + ->textInput (); | ||
67 | + echo $form->field ($job_model, '['. ($index + 1) .']total_count') | ||
68 | + ->label ('Количество проектов, в которых принимали участие') | ||
69 | + ->input ('number'); | ||
70 | + echo $form->field ($job_model, '['. ($index + 1) .']complete_count') | ||
71 | + ->label ('из них реализовано') | ||
72 | + ->input ('number'); | ||
73 | + echo "</div>"; | ||
74 | + } | ||
75 | + ?> | ||
76 | + </div> | ||
77 | +<?php | ||
78 | + echo Html::button('Добавить место работы', ['id' => 'add_job_button']); | ||
79 | + $form->end (); | ||
80 | +?> | ||
81 | +<script> | ||
82 | + $(function() { | ||
83 | + var regexp = /^[\w]+\[(\d+)\].*$/; | ||
84 | + $(document).on('click', '#add_job_button', function() { | ||
85 | + var inputs = $('.prev_job_inputs').last(); | ||
86 | + var name = $(inputs).find('input, textarea').first().attr('name'); | ||
87 | + var lastindex = regexp.exec(name)[1]; | ||
88 | + $.get('/accounts/get-form', { lastindex: lastindex }, function(data) { | ||
89 | + $('.prev_job_container').append($(data).find('.ajax-loaded').first().html()); | ||
90 | + $(data).filter('script').appendTo('body'); | ||
91 | + }); | ||
92 | + }); | ||
93 | + }); | ||
94 | +</script> |
1 | +<?php | ||
2 | +use common\models\Option; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | +use \common\widgets\MultiLangForm; | ||
6 | + | ||
7 | + $this->title = 'Мой профиль'; | ||
8 | + $this->params['breadcrumbs'][] = $this->title; | ||
9 | +?> | ||
10 | + | ||
11 | +<h1><?= $this->title ?></h1> | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | +<?php | ||
16 | + | ||
17 | +$form = $this->render('_form', [ | ||
18 | + 'user' => $user, | ||
19 | + 'user_info' => $user_info, | ||
20 | +]); | ||
21 | + | ||
22 | +echo MultiLangForm::widget(['form'=>$form]); | ||
23 | + | ||
24 | +?> | ||
25 | + | ||
26 | + |
1 | +<?php | ||
2 | + /** | ||
3 | + * @var UserInfo $user_info | ||
4 | + * @var User $user | ||
5 | + * @var CompanyInfo $company_info | ||
6 | + */ | ||
7 | + use common\models\CompanyInfo; | ||
8 | + use common\models\Option; | ||
9 | + use common\models\User; | ||
10 | + use common\models\UserInfo; | ||
11 | + use yii\helpers\Html; | ||
12 | + use yii\widgets\ActiveForm; | ||
13 | + use \common\widgets\MultiLangForm; | ||
14 | + | ||
15 | + $this->title = 'Учетные данные'; | ||
16 | + $this->params['breadcrumbs'][] = $this->title; | ||
17 | +?> | ||
18 | +<h1><?= $this->title ?></h1> | ||
19 | +<div class="" id="form_definition"> | ||
20 | + <?php | ||
21 | + $form = ActiveForm::begin (); | ||
22 | + echo $form->field ($user, 'isPerformer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) | ||
23 | + ->label ('Я - исполнитель') | ||
24 | + ->hint ('Отображается если указать специализации услуг в личном кабинете.') | ||
25 | + ->checkbox ([], false); | ||
26 | + echo $form->field ($user, 'isCustomer', ['template' => "{label}:\n{input}\n{hint}\n{error}"]) | ||
27 | + ->label ('Я - заказчик') | ||
28 | + ->hint ('Отображается если созданы заказы.') | ||
29 | + ->checkbox ([], false); | ||
30 | + echo $form->field ($user, 'type') | ||
31 | + ->label ('Кто вы') | ||
32 | + ->radioList ([1 => 'Частное лицо', 2 => 'Компания']); | ||
33 | + echo $form->field ($company_info, 'name', ['options' => ['class' => 'form-group company_info']]) | ||
34 | + ->label ('Название компании') | ||
35 | + ->textInput (); | ||
36 | + echo $form->field ($company_info, 'staff', ['options' => ['class' => 'form-group company_info']]) | ||
37 | + ->label ('Количество сотрудников') | ||
38 | + ->input ('number'); | ||
39 | + echo '<div class="company_info">Контакты представителя</div>'; | ||
40 | + echo $form->field ($user, 'lastname') | ||
41 | + ->label ('Фамилия') | ||
42 | + ->textInput (); | ||
43 | + echo $form->field ($user, 'firstname') | ||
44 | + ->label ('Имя') | ||
45 | + ->textInput (); | ||
46 | + echo $form->field ($user_info, 'country') | ||
47 | + ->label ('Ваша страна') | ||
48 | + ->textInput (); | ||
49 | + echo $form->field ($user_info, 'city') | ||
50 | + ->label ('Ваш город') | ||
51 | + ->textInput (); | ||
52 | + echo $form->field ($company_info, 'street', ['options' => ['class' => 'form-group company_info']]) | ||
53 | + ->label ('Улица') | ||
54 | + ->textInput (); | ||
55 | + echo $form->field ($company_info, 'house', ['options' => ['class' => 'form-group company_info']]) | ||
56 | + ->label ('Дом') | ||
57 | + ->textInput (); | ||
58 | + echo $form->field ($user, 'email') | ||
59 | + ->label ('Email') | ||
60 | + ->textInput (['disabled' => 'disabled']); | ||
61 | + echo $form->field ($company_info, 'hide_mail', ['options' => ['class' => 'form-group company_info'], 'template' => "{input}{label}\n{hint}\n{error}"]) | ||
62 | + ->label ('Не публиковать Email') | ||
63 | + ->checkbox ([], false); | ||
64 | + echo $form->field ($user_info, 'busy') | ||
65 | + ->label ('Статус') | ||
66 | + ->radioList ([0 => 'Свободен', 1 => 'Занят']); | ||
67 | + echo $form->field ($user_info, 'member') | ||
68 | + ->label ('Членство в МФП') | ||
69 | + ->hint ('Выберите если хотите стать членом МФП и наш менеджер свяжется с Вами.') | ||
70 | + ->radioList ([0 => 'Не хочу', 1 => 'Хочу стать']); | ||
71 | + echo Html::submitButton('Обновить', ['class' => 'btn btn-primary']); | ||
72 | + $form->end (); | ||
73 | + ?> | ||
74 | +</div> |
1 | +<?php | ||
2 | +use common\models\Option; | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | +use \common\widgets\MultiLangForm; | ||
6 | + | ||
7 | + $this->title = 'Мой профиль'; | ||
8 | + $this->params['breadcrumbs'][] = $this->title; | ||
9 | +?> | ||
10 | + | ||
11 | +<h1><?= $this->title ?></h1> | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | +<?php | ||
16 | + | ||
17 | +$form = $this->render('_form', [ | ||
18 | + 'user' => $user, | ||
19 | + 'user_info' => $user_info, | ||
20 | +]); | ||
21 | + | ||
22 | +echo MultiLangForm::widget(['form'=>$form]); | ||
23 | + | ||
24 | +?> | ||
25 | + | ||
26 | + |
1 | +<?php | ||
2 | + /** | ||
3 | + * @var User $user | ||
4 | + */ | ||
5 | + use common\models\Option; | ||
6 | + use common\models\User; | ||
7 | + use yii\helpers\Html; | ||
8 | + use yii\widgets\ActiveForm; | ||
9 | + use \common\widgets\MultiLangForm; | ||
10 | + | ||
11 | + $this->title = 'Настройки профиля'; | ||
12 | + $this->params['breadcrumbs'][] = $this->title; | ||
13 | +?> | ||
14 | + | ||
15 | +<h1><?= $this->title ?></h1> | ||
16 | + | ||
17 | +<?php | ||
18 | + if (\Yii::$app->session->hasFlash ('passwordupdate')) | ||
19 | + { | ||
20 | + ?> | ||
21 | + <div class="alert alert-warning alert-dismissible" role="alert"> | ||
22 | + <button type="button" class="close" data-dismiss="alert" aria-label="Close"> | ||
23 | + <span aria-hidden="true">×</span> | ||
24 | + </button> | ||
25 | + <p><?= \Yii::$app->session->getFlash ('passwordupdate') ?></p> | ||
26 | + </div> | ||
27 | + <? | ||
28 | + } | ||
29 | + $form = ActiveForm::begin (); | ||
30 | + echo "<p>Сменить пароль:</p>"; | ||
31 | + echo $form->field ($user, 'old_password', ['template' => "{input}{label}\n{hint}\n{error}"]) | ||
32 | + ->label ('Старый пароль') | ||
33 | + ->passwordInput (['value' => '']); | ||
34 | + echo $form->field ($user, 'new_password', ['template' => "{input}{label}\n{hint}\n{error}"]) | ||
35 | + ->label ('Новый пароль') | ||
36 | + ->passwordInput (['value' => '']); | ||
37 | + echo $form->field ($user, 'password_reply', ['template' => "{input}{label}\n{hint}\n{error}"]) | ||
38 | + ->label ('Повторите пароль') | ||
39 | + ->passwordInput (['value' => '']); | ||
40 | + echo Html::submitButton ('Обновить', ['class' => 'btn btn-primary']); | ||
41 | + $form->end (); | ||
42 | +?> | ||
43 | + | ||
44 | + |
frontend/views/chat/list.php
1 | <?php | 1 | <?php |
2 | use common\models\Option; | 2 | use common\models\Option; |
3 | + use yii\widgets\DetailView; | ||
3 | 4 | ||
4 | $this->title = 'Мой профиль'; | 5 | $this->title = 'Мой профиль'; |
5 | $this->params['breadcrumbs'][] = $this->title; | 6 | $this->params['breadcrumbs'][] = $this->title; |
6 | ?> | 7 | ?> |
7 | - | ||
8 | <div class="section-box content"> | 8 | <div class="section-box content"> |
9 | <div class="section-box-15"> | 9 | <div class="section-box-15"> |
10 | <div class="box-wr"> | 10 | <div class="box-wr"> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\CompanyInfo */ | ||
8 | +/* @var $form yii\widgets\ActiveForm */ | ||
9 | +?> | ||
10 | + | ||
11 | +<div class="company-info-form"> | ||
12 | + | ||
13 | + <?php $form = ActiveForm::begin(); ?> | ||
14 | + | ||
15 | + <?= $form->field($model, 'name')->textInput() ?> | ||
16 | + | ||
17 | + <?= $form->field($model, 'staff')->textInput() ?> | ||
18 | + | ||
19 | + <?= $form->field($model, 'street')->textInput() ?> | ||
20 | + | ||
21 | + <?= $form->field($model, 'house')->textInput() ?> | ||
22 | + | ||
23 | + <?= $form->field($model, 'hide_mail')->textInput() ?> | ||
24 | + | ||
25 | + <div class="form-group"> | ||
26 | + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | ||
27 | + </div> | ||
28 | + | ||
29 | + <?php ActiveForm::end(); ?> | ||
30 | + | ||
31 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\CompanyInfoSearch */ | ||
8 | +/* @var $form yii\widgets\ActiveForm */ | ||
9 | +?> | ||
10 | + | ||
11 | +<div class="company-info-search"> | ||
12 | + | ||
13 | + <?php $form = ActiveForm::begin([ | ||
14 | + 'action' => ['index'], | ||
15 | + 'method' => 'get', | ||
16 | + ]); ?> | ||
17 | + | ||
18 | + <?= $form->field($model, 'company_info_id') ?> | ||
19 | + | ||
20 | + <?= $form->field($model, 'name') ?> | ||
21 | + | ||
22 | + <?= $form->field($model, 'staff') ?> | ||
23 | + | ||
24 | + <?= $form->field($model, 'street') ?> | ||
25 | + | ||
26 | + <?= $form->field($model, 'house') ?> | ||
27 | + | ||
28 | + <?php // echo $form->field($model, 'hide_mail') ?> | ||
29 | + | ||
30 | + <div class="form-group"> | ||
31 | + <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?> | ||
32 | + <?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?> | ||
33 | + </div> | ||
34 | + | ||
35 | + <?php ActiveForm::end(); ?> | ||
36 | + | ||
37 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | + | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\CompanyInfo */ | ||
8 | + | ||
9 | +$this->title = Yii::t('app', 'Create Company Info'); | ||
10 | +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Company Infos'), 'url' => ['index']]; | ||
11 | +$this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | +<div class="company-info-create"> | ||
14 | + | ||
15 | + <h1><?= Html::encode($this->title) ?></h1> | ||
16 | + | ||
17 | + <?= $this->render('_form', [ | ||
18 | + 'model' => $model, | ||
19 | + ]) ?> | ||
20 | + | ||
21 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\grid\GridView; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $searchModel common\models\CompanyInfoSearch */ | ||
8 | +/* @var $dataProvider yii\data\ActiveDataProvider */ | ||
9 | + | ||
10 | +$this->title = Yii::t('app', 'Company Infos'); | ||
11 | +$this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | +<div class="company-info-index"> | ||
14 | + | ||
15 | + <h1><?= Html::encode($this->title) ?></h1> | ||
16 | + <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | ||
17 | + | ||
18 | + <p> | ||
19 | + <?= Html::a(Yii::t('app', 'Create Company Info'), ['create'], ['class' => 'btn btn-success']) ?> | ||
20 | + </p> | ||
21 | + | ||
22 | + <?= GridView::widget([ | ||
23 | + 'dataProvider' => $dataProvider, | ||
24 | + 'filterModel' => $searchModel, | ||
25 | + 'columns' => [ | ||
26 | + ['class' => 'yii\grid\SerialColumn'], | ||
27 | + | ||
28 | + 'company_info_id', | ||
29 | + 'name', | ||
30 | + 'staff', | ||
31 | + 'street', | ||
32 | + 'house', | ||
33 | + // 'hide_mail', | ||
34 | + | ||
35 | + ['class' => 'yii\grid\ActionColumn'], | ||
36 | + ], | ||
37 | + ]); ?> | ||
38 | + | ||
39 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | + | ||
5 | +/* @var $this yii\web\View */ | ||
6 | +/* @var $model common\models\CompanyInfo */ | ||
7 | + | ||
8 | +$this->title = Yii::t('app', 'Update {modelClass}: ', [ | ||
9 | + 'modelClass' => 'Company Info', | ||
10 | +]) . ' ' . $model->name; | ||
11 | +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Company Infos'), 'url' => ['index']]; | ||
12 | +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->company_info_id]]; | ||
13 | +$this->params['breadcrumbs'][] = Yii::t('app', 'Update'); | ||
14 | +?> | ||
15 | +<div class="company-info-update"> | ||
16 | + | ||
17 | + <h1><?= Html::encode($this->title) ?></h1> | ||
18 | + | ||
19 | + <?= $this->render('_form', [ | ||
20 | + 'model' => $model, | ||
21 | + ]) ?> | ||
22 | + | ||
23 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\DetailView; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\CompanyInfo */ | ||
8 | + | ||
9 | +$this->title = $model->name; | ||
10 | +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Company Infos'), 'url' => ['index']]; | ||
11 | +$this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | +<div class="company-info-view"> | ||
14 | + | ||
15 | + <h1><?= Html::encode($this->title) ?></h1> | ||
16 | + | ||
17 | + <p> | ||
18 | + <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->company_info_id], ['class' => 'btn btn-primary']) ?> | ||
19 | + <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->company_info_id], [ | ||
20 | + 'class' => 'btn btn-danger', | ||
21 | + 'data' => [ | ||
22 | + 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), | ||
23 | + 'method' => 'post', | ||
24 | + ], | ||
25 | + ]) ?> | ||
26 | + </p> | ||
27 | + | ||
28 | + <?= DetailView::widget([ | ||
29 | + 'model' => $model, | ||
30 | + 'attributes' => [ | ||
31 | + 'company_info_id', | ||
32 | + 'name', | ||
33 | + 'staff', | ||
34 | + 'street', | ||
35 | + 'house', | ||
36 | + 'hide_mail', | ||
37 | + ], | ||
38 | + ]) ?> | ||
39 | + | ||
40 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\Job */ | ||
8 | +/* @var $form yii\widgets\ActiveForm */ | ||
9 | +?> | ||
10 | + | ||
11 | +<div class="job-form"> | ||
12 | + | ||
13 | + <?php $form = ActiveForm::begin(); ?> | ||
14 | + | ||
15 | + <?= $form->field($model, 'name')->textInput(['maxlength' => true]) ?> | ||
16 | + | ||
17 | + <?= $form->field($model, 'link')->textInput(['maxlength' => true]) ?> | ||
18 | + | ||
19 | + <?= $form->field($model, 'date_start')->textInput() ?> | ||
20 | + | ||
21 | + <?= $form->field($model, 'date_end')->textInput() ?> | ||
22 | + | ||
23 | + <?= $form->field($model, 'position')->textInput(['maxlength' => true]) ?> | ||
24 | + | ||
25 | + <?= $form->field($model, 'user_id')->textInput() ?> | ||
26 | + | ||
27 | + <?= $form->field($model, 'total_count')->textInput() ?> | ||
28 | + | ||
29 | + <?= $form->field($model, 'complete_count')->textInput() ?> | ||
30 | + | ||
31 | + <?= $form->field($model, 'current')->textInput() ?> | ||
32 | + | ||
33 | + <div class="form-group"> | ||
34 | + <?= Html::submitButton($model->isNewRecord ? Yii::t('app', 'Create') : Yii::t('app', 'Update'), ['class' => $model->isNewRecord ? 'btn btn-success' : 'btn btn-primary']) ?> | ||
35 | + </div> | ||
36 | + | ||
37 | + <?php ActiveForm::end(); ?> | ||
38 | + | ||
39 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\ActiveForm; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\JobSearch */ | ||
8 | +/* @var $form yii\widgets\ActiveForm */ | ||
9 | +?> | ||
10 | + | ||
11 | +<div class="job-search"> | ||
12 | + | ||
13 | + <?php $form = ActiveForm::begin([ | ||
14 | + 'action' => ['index'], | ||
15 | + 'method' => 'get', | ||
16 | + ]); ?> | ||
17 | + | ||
18 | + <?= $form->field($model, 'job_id') ?> | ||
19 | + | ||
20 | + <?= $form->field($model, 'name') ?> | ||
21 | + | ||
22 | + <?= $form->field($model, 'link') ?> | ||
23 | + | ||
24 | + <?= $form->field($model, 'date_start') ?> | ||
25 | + | ||
26 | + <?= $form->field($model, 'date_end') ?> | ||
27 | + | ||
28 | + <?php // echo $form->field($model, 'position') ?> | ||
29 | + | ||
30 | + <?php // echo $form->field($model, 'user_id') ?> | ||
31 | + | ||
32 | + <?php // echo $form->field($model, 'total_count') ?> | ||
33 | + | ||
34 | + <?php // echo $form->field($model, 'complete_count') ?> | ||
35 | + | ||
36 | + <?php // echo $form->field($model, 'current') ?> | ||
37 | + | ||
38 | + <div class="form-group"> | ||
39 | + <?= Html::submitButton(Yii::t('app', 'Search'), ['class' => 'btn btn-primary']) ?> | ||
40 | + <?= Html::resetButton(Yii::t('app', 'Reset'), ['class' => 'btn btn-default']) ?> | ||
41 | + </div> | ||
42 | + | ||
43 | + <?php ActiveForm::end(); ?> | ||
44 | + | ||
45 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | + | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\Job */ | ||
8 | + | ||
9 | +$this->title = Yii::t('app', 'Create Job'); | ||
10 | +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Jobs'), 'url' => ['index']]; | ||
11 | +$this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | +<div class="job-create"> | ||
14 | + | ||
15 | + <h1><?= Html::encode($this->title) ?></h1> | ||
16 | + | ||
17 | + <?= $this->render('_form', [ | ||
18 | + 'model' => $model, | ||
19 | + ]) ?> | ||
20 | + | ||
21 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\grid\GridView; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $searchModel common\models\JobSearch */ | ||
8 | +/* @var $dataProvider yii\data\ActiveDataProvider */ | ||
9 | + | ||
10 | +$this->title = Yii::t('app', 'Jobs'); | ||
11 | +$this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | +<div class="job-index"> | ||
14 | + | ||
15 | + <h1><?= Html::encode($this->title) ?></h1> | ||
16 | + <?php // echo $this->render('_search', ['model' => $searchModel]); ?> | ||
17 | + | ||
18 | + <p> | ||
19 | + <?= Html::a(Yii::t('app', 'Create Job'), ['create'], ['class' => 'btn btn-success']) ?> | ||
20 | + </p> | ||
21 | + | ||
22 | + <?= GridView::widget([ | ||
23 | + 'dataProvider' => $dataProvider, | ||
24 | + 'filterModel' => $searchModel, | ||
25 | + 'columns' => [ | ||
26 | + ['class' => 'yii\grid\SerialColumn'], | ||
27 | + | ||
28 | + 'job_id', | ||
29 | + 'name', | ||
30 | + 'link', | ||
31 | + 'date_start', | ||
32 | + 'date_end', | ||
33 | + // 'position', | ||
34 | + // 'user_id', | ||
35 | + // 'total_count', | ||
36 | + // 'complete_count', | ||
37 | + // 'current', | ||
38 | + | ||
39 | + ['class' => 'yii\grid\ActionColumn'], | ||
40 | + ], | ||
41 | + ]); ?> | ||
42 | + | ||
43 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | + | ||
5 | +/* @var $this yii\web\View */ | ||
6 | +/* @var $model common\models\Job */ | ||
7 | + | ||
8 | +$this->title = Yii::t('app', 'Update {modelClass}: ', [ | ||
9 | + 'modelClass' => 'Job', | ||
10 | +]) . ' ' . $model->name; | ||
11 | +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Jobs'), 'url' => ['index']]; | ||
12 | +$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->job_id]]; | ||
13 | +$this->params['breadcrumbs'][] = Yii::t('app', 'Update'); | ||
14 | +?> | ||
15 | +<div class="job-update"> | ||
16 | + | ||
17 | + <h1><?= Html::encode($this->title) ?></h1> | ||
18 | + | ||
19 | + <?= $this->render('_form', [ | ||
20 | + 'model' => $model, | ||
21 | + ]) ?> | ||
22 | + | ||
23 | +</div> |
1 | +<?php | ||
2 | + | ||
3 | +use yii\helpers\Html; | ||
4 | +use yii\widgets\DetailView; | ||
5 | + | ||
6 | +/* @var $this yii\web\View */ | ||
7 | +/* @var $model common\models\Job */ | ||
8 | + | ||
9 | +$this->title = $model->name; | ||
10 | +$this->params['breadcrumbs'][] = ['label' => Yii::t('app', 'Jobs'), 'url' => ['index']]; | ||
11 | +$this->params['breadcrumbs'][] = $this->title; | ||
12 | +?> | ||
13 | +<div class="job-view"> | ||
14 | + | ||
15 | + <h1><?= Html::encode($this->title) ?></h1> | ||
16 | + | ||
17 | + <p> | ||
18 | + <?= Html::a(Yii::t('app', 'Update'), ['update', 'id' => $model->job_id], ['class' => 'btn btn-primary']) ?> | ||
19 | + <?= Html::a(Yii::t('app', 'Delete'), ['delete', 'id' => $model->job_id], [ | ||
20 | + 'class' => 'btn btn-danger', | ||
21 | + 'data' => [ | ||
22 | + 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'), | ||
23 | + 'method' => 'post', | ||
24 | + ], | ||
25 | + ]) ?> | ||
26 | + </p> | ||
27 | + | ||
28 | + <?= DetailView::widget([ | ||
29 | + 'model' => $model, | ||
30 | + 'attributes' => [ | ||
31 | + 'job_id', | ||
32 | + 'name', | ||
33 | + 'link', | ||
34 | + 'date_start', | ||
35 | + 'date_end', | ||
36 | + 'position', | ||
37 | + 'user_id', | ||
38 | + 'total_count', | ||
39 | + 'complete_count', | ||
40 | + 'current', | ||
41 | + ], | ||
42 | + ]) ?> | ||
43 | + | ||
44 | +</div> |
frontend/views/layouts/admin.php
@@ -25,7 +25,58 @@ $this->beginContent('@app/views/layouts/main.php'); | @@ -25,7 +25,58 @@ $this->beginContent('@app/views/layouts/main.php'); | ||
25 | <?= Breadcrumbs::widget([ | 25 | <?= Breadcrumbs::widget([ |
26 | 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], | 26 | 'links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : [], |
27 | ]) ?> | 27 | ]) ?> |
28 | - | 28 | + <div class="section-box menu-content-wr"> |
29 | + <div class="box-wr"> | ||
30 | + <div class="box-all"> | ||
31 | + <?php | ||
32 | + echo Menu::widget([ | ||
33 | + 'options' => [ | ||
34 | + 'class' => 'menu-content', | ||
35 | + ], | ||
36 | + 'activeCssClass' => 'active-menu-content', | ||
37 | + 'items' => [ | ||
38 | + [ | ||
39 | + 'label' => 'Общее', | ||
40 | + 'url' => ['accounts/general'], | ||
41 | + ], | ||
42 | + [ | ||
43 | + 'label' => 'Портфолио', | ||
44 | + 'url' => ['accounts/portfolio'], | ||
45 | + ], | ||
46 | + [ | ||
47 | + 'label' => 'Настройка аккаунта', | ||
48 | + 'url' => ['accounts/setting'], | ||
49 | + ], | ||
50 | + [ | ||
51 | + 'label' => 'Контакты', | ||
52 | + 'url' => ['accounts/contacts'], | ||
53 | + ], | ||
54 | + [ | ||
55 | + 'label' => 'Услуги', | ||
56 | + 'url' => ['accounts/service'], | ||
57 | + ], | ||
58 | + [ | ||
59 | + 'label' => 'Дополнительные навыки', | ||
60 | + 'url' => ['accounts/add-skills'], | ||
61 | + ], | ||
62 | + [ | ||
63 | + 'label' => 'Трудовой стаж', | ||
64 | + 'url' => ['accounts/employment'], | ||
65 | + ], | ||
66 | + [ | ||
67 | + 'label' => 'Проекты', | ||
68 | + 'url' => ['accounts/projects'], | ||
69 | + ], | ||
70 | + [ | ||
71 | + 'label' => 'Галерея', | ||
72 | + 'url' => ['accounts/gallery'], | ||
73 | + ], | ||
74 | + ], | ||
75 | + ]); | ||
76 | + ?> | ||
77 | + </div> | ||
78 | + </div> | ||
79 | + </div> | ||
29 | <div class="menu-location-index"> | 80 | <div class="menu-location-index"> |
30 | <?= $content ?> | 81 | <?= $content ?> |
31 | 82 | ||
@@ -33,6 +84,5 @@ $this->beginContent('@app/views/layouts/main.php'); | @@ -33,6 +84,5 @@ $this->beginContent('@app/views/layouts/main.php'); | ||
33 | 84 | ||
34 | </div> | 85 | </div> |
35 | </div> | 86 | </div> |
36 | -</div> | ||
37 | - | 87 | + </div> |
38 | <?php $this->endContent() ?> | 88 | <?php $this->endContent() ?> |
39 | \ No newline at end of file | 89 | \ No newline at end of file |
frontend/views/layouts/gallery.php
@@ -34,7 +34,7 @@ $this->beginContent('@app/views/layouts/main.php'); | @@ -34,7 +34,7 @@ $this->beginContent('@app/views/layouts/main.php'); | ||
34 | 'url' => ['performer/common'], | 34 | 'url' => ['performer/common'], |
35 | ], | 35 | ], |
36 | [ | 36 | [ |
37 | - 'label' => 'Выполненные работы', | 37 | + 'label' => 'Портфолио', |
38 | 'url' => ['performer/portfolio'], | 38 | 'url' => ['performer/portfolio'], |
39 | ], | 39 | ], |
40 | [ | 40 | [ |
frontend/views/layouts/performer.php
@@ -34,7 +34,7 @@ $this->beginContent('@app/views/layouts/main.php'); | @@ -34,7 +34,7 @@ $this->beginContent('@app/views/layouts/main.php'); | ||
34 | 'url' => ['performer/common'], | 34 | 'url' => ['performer/common'], |
35 | ], | 35 | ], |
36 | [ | 36 | [ |
37 | - 'label' => 'Выполненные работы', | 37 | + 'label' => 'Портфолио', |
38 | 'url' => ['performer/portfolio'], | 38 | 'url' => ['performer/portfolio'], |
39 | ], | 39 | ], |
40 | [ | 40 | [ |