diff --git a/.bowerrc b/.bowerrc
old mode 100644
new mode 100755
diff --git a/.gitignore b/.gitignore
old mode 100644
new mode 100755
diff --git a/.htaccess b/.htaccess
old mode 100644
new mode 100755
diff --git a/LICENSE.md b/LICENSE.md
old mode 100644
new mode 100755
diff --git a/README.md b/README.md
old mode 100644
new mode 100755
diff --git a/Vagrantfile b/Vagrantfile
old mode 100644
new mode 100755
diff --git a/backend/assets/AppAsset.php b/backend/assets/AppAsset.php
old mode 100644
new mode 100755
diff --git a/backend/codeception.yml b/backend/codeception.yml
old mode 100644
new mode 100755
diff --git a/backend/config/.gitignore b/backend/config/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/config/bootstrap.php b/backend/config/bootstrap.php
old mode 100644
new mode 100755
diff --git a/backend/config/main.php b/backend/config/main.php
old mode 100644
new mode 100755
index 454bbf5..1bc988e
--- a/backend/config/main.php
+++ b/backend/config/main.php
@@ -29,6 +29,9 @@ return [
'hh' => [
'class' => 'backend\modules\hh\Hh',
],
+ 'balance' => [
+ 'class' => 'backend\modules\balance\Balance',
+ ],
],
'components' => [
'request' => [
diff --git a/backend/config/params.php b/backend/config/params.php
old mode 100644
new mode 100755
diff --git a/backend/config/test.php b/backend/config/test.php
old mode 100644
new mode 100755
diff --git a/backend/controllers/SiteController.php b/backend/controllers/SiteController.php
old mode 100644
new mode 100755
diff --git a/backend/models/.gitkeep b/backend/models/.gitkeep
old mode 100644
new mode 100755
diff --git a/backend/modules/balance/Balance.php b/backend/modules/balance/Balance.php
new file mode 100644
index 0000000..9e9bc27
--- /dev/null
+++ b/backend/modules/balance/Balance.php
@@ -0,0 +1,24 @@
+search();
+
+ return $this->render('index',[
+ 'searchModel' => $searchModel,
+ 'dataProvider' => $dataProvider,
+ ]);
+ }
+
+ public function actionView($id)
+ {
+ return $this->render('view',[
+ 'model' => $this->findModel($id),
+ ]);
+ }
+
+ public function actionCreate()
+ {
+ $model = new Balance();
+
+ if ($model->load(Yii::$app->request->post())) {
+ $model->dt_add = strtotime($model->dt_add);
+ $model->save();
+// Debug::dd($model);
+
+ Yii::$app->session->addFlash('success', 'Баланса добавлен');
+
+ return $this->redirect(['index']);
+ }
+
+ return $this->render('create', [
+ 'model' => $model,
+ ]);
+ }
+
+ public function actionUpdate($id)
+ {
+ $model = $this->findModel($id);
+
+ if ($model->load(Yii::$app->request->post()) && $model->save()) {
+ return $this->redirect(['view', 'id' => $model->id]);
+ }
+
+ return $this->render('update',[
+ 'model' => $model,
+ ]);
+ }
+
+ public function actionDelete($id)
+ {
+ $this->findModel($id)->delete();
+
+ return $this->redirect(['index']);
+ }
+
+ protected function findModel($id)
+ {
+ if (($model = Balance::findOne($id)) !== null) {
+ return $model;
+ }
+
+ throw new NotFoundHttpException('The requested page does not exist.');
+ }
+}
\ No newline at end of file
diff --git a/backend/modules/balance/models/Balance.php b/backend/modules/balance/models/Balance.php
new file mode 100644
index 0000000..8179aa2
--- /dev/null
+++ b/backend/modules/balance/models/Balance.php
@@ -0,0 +1,48 @@
+where(
+ [
+ 'balance_id' => \Yii::$app->request->get('id'),
+ 'card_id' => null,
+ 'company_id' => null,
+ ])
+ ->all();
+ $array = [];
+ if (!empty($fieldValue)) {
+ foreach ($fieldValue as $item) {
+ array_push($array, ['field_id' => $item->field_id, 'value' => $item->value, 'order' => $item->order]);
+ }
+ $this->fields = $array;
+ } else {
+ $this->fields = [
+ [
+ 'field_id' => null,
+ 'value' => null,
+ 'order' => null,
+ ],
+ ];
+ }
+
+ $user = ArrayHelper::getColumn(ProjectUser::find()->where(['project_id' => \Yii::$app->request->get('id')])->all(),
+ 'card_id');
+
+ if (!empty($user)) {
+ $this->user = $user;
+
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/modules/balance/models/BalanceSearch.php b/backend/modules/balance/models/BalanceSearch.php
new file mode 100644
index 0000000..0d83a55
--- /dev/null
+++ b/backend/modules/balance/models/BalanceSearch.php
@@ -0,0 +1,30 @@
+ $query,
+ ]);
+
+ if($this->validate())
+ {
+ return $dataProvider;
+ }
+ }
+}
\ No newline at end of file
diff --git a/backend/modules/balance/views/balance/_form.php b/backend/modules/balance/views/balance/_form.php
new file mode 100644
index 0000000..97ba809
--- /dev/null
+++ b/backend/modules/balance/views/balance/_form.php
@@ -0,0 +1,85 @@
+
+
+
diff --git a/backend/modules/balance/views/balance/create.php b/backend/modules/balance/views/balance/create.php
new file mode 100644
index 0000000..2bb25ef
--- /dev/null
+++ b/backend/modules/balance/views/balance/create.php
@@ -0,0 +1,18 @@
+title = 'Добавить баланс';
+$this->params['breadcrumbs'][] = ['label' => 'Список балансов', 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+?>
+
+
+ = $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+
diff --git a/backend/modules/balance/views/balance/index.php b/backend/modules/balance/views/balance/index.php
new file mode 100644
index 0000000..fdf801a
--- /dev/null
+++ b/backend/modules/balance/views/balance/index.php
@@ -0,0 +1,30 @@
+title = 'Список балансов';
+$this->params['breadcrumps'][] = $this->title;
+?>
+
+
+ = Html::a('Добавить', ['create'], ['class' => 'btn btn-success']) ?>
+
+ = GridView::widget([
+ 'dataProvider' => $dataProvider,
+ 'filterModel' => $searchModel,
+ 'columns' => [
+ ['class' => 'yii\grid\SerialColumn'],
+ 'type',
+ 'summ',
+ 'dt_add',
+ ['class' => 'yii\grid\ActionColumn'],
+ ],
+ ]); ?>
+
diff --git a/backend/modules/balance/views/balance/update.php b/backend/modules/balance/views/balance/update.php
new file mode 100644
index 0000000..7396701
--- /dev/null
+++ b/backend/modules/balance/views/balance/update.php
@@ -0,0 +1,19 @@
+title = 'Редактировать баланс №' . $model->id;
+$this->params['breadcrumbs'][] = ['label' => 'Список балансов', 'url' => ['index']];
+$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
+$this->params['breadcrumbs'][] = 'Редактировать';
+?>
+
+
+ = $this->render('_form', [
+ 'model' => $model,
+ ]) ?>
+
+
diff --git a/backend/modules/balance/views/balance/view.php b/backend/modules/balance/views/balance/view.php
new file mode 100644
index 0000000..a54782f
--- /dev/null
+++ b/backend/modules/balance/views/balance/view.php
@@ -0,0 +1,35 @@
+title = 'Баланс №' . $model->id;
+$this->params['breadcrumbs'][] = ['label' => 'Список балансов', 'url' => ['index']];
+$this->params['breadcrumbs'][] = $this->title;
+?>
+
+
+ = Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
+ = Html::a('Delete', ['delete', 'id' => $model->id], [
+ 'class' => 'btn btn-danger',
+ 'data' => [
+ 'confirm' => 'Are you sure you want to delete this item?',
+ 'method' => 'post',
+ ],
+ ]) ?>
+
+
+ = DetailView::widget([
+ 'model' => $model,
+ 'attributes' => [
+ 'id',
+ 'type',
+ 'summ',
+ 'dt_add',
+ ],
+ ]) ?>
+
+
diff --git a/backend/modules/card/Card.php b/backend/modules/card/Card.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/controllers/UserCardController.php b/backend/modules/card/controllers/UserCardController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/models/UserCard.php b/backend/modules/card/models/UserCard.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/models/UserCardSearch.php b/backend/modules/card/models/UserCardSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/views/user-card/_form.php b/backend/modules/card/views/user-card/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/views/user-card/_search.php b/backend/modules/card/views/user-card/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/views/user-card/create.php b/backend/modules/card/views/user-card/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/views/user-card/index.php b/backend/modules/card/views/user-card/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/views/user-card/update.php b/backend/modules/card/views/user-card/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/card/views/user-card/view.php b/backend/modules/card/views/user-card/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/Company.php b/backend/modules/company/Company.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/controllers/CompanyController.php b/backend/modules/company/controllers/CompanyController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/models/Company.php b/backend/modules/company/models/Company.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/models/CompanySearch.php b/backend/modules/company/models/CompanySearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/views/company/_form.php b/backend/modules/company/views/company/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/views/company/_search.php b/backend/modules/company/views/company/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/views/company/create.php b/backend/modules/company/views/company/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/views/company/index.php b/backend/modules/company/views/company/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/views/company/update.php b/backend/modules/company/views/company/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/company/views/company/view.php b/backend/modules/company/views/company/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/Hh.php b/backend/modules/hh/Hh.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/controllers/DefaultController.php b/backend/modules/hh/controllers/DefaultController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/controllers/HhController.php b/backend/modules/hh/controllers/HhController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/controllers/HhJobController.php b/backend/modules/hh/controllers/HhJobController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/models/Hh.php b/backend/modules/hh/models/Hh.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/models/HhJob.php b/backend/modules/hh/models/HhJob.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/models/HhJobSearch.php b/backend/modules/hh/models/HhJobSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/models/HhSearch.php b/backend/modules/hh/models/HhSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/default/index.php b/backend/modules/hh/views/default/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh-job/_form.php b/backend/modules/hh/views/hh-job/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh-job/_search.php b/backend/modules/hh/views/hh-job/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh-job/create.php b/backend/modules/hh/views/hh-job/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh-job/index.php b/backend/modules/hh/views/hh-job/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh-job/update.php b/backend/modules/hh/views/hh-job/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh-job/view.php b/backend/modules/hh/views/hh-job/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh/_form.php b/backend/modules/hh/views/hh/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh/_search.php b/backend/modules/hh/views/hh/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh/create.php b/backend/modules/hh/views/hh/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh/index.php b/backend/modules/hh/views/hh/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh/update.php b/backend/modules/hh/views/hh/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/hh/views/hh/view.php b/backend/modules/hh/views/hh/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/Project.php b/backend/modules/project/Project.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/controllers/ProjectController.php b/backend/modules/project/controllers/ProjectController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/models/Project.php b/backend/modules/project/models/Project.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/models/ProjectSearch.php b/backend/modules/project/models/ProjectSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/views/project/_form.php b/backend/modules/project/views/project/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/views/project/_search.php b/backend/modules/project/views/project/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/views/project/create.php b/backend/modules/project/views/project/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/views/project/index.php b/backend/modules/project/views/project/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/views/project/update.php b/backend/modules/project/views/project/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/project/views/project/view.php b/backend/modules/project/views/project/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/Settings.php b/backend/modules/settings/Settings.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/controllers/AdditionalFieldsController.php b/backend/modules/settings/controllers/AdditionalFieldsController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/controllers/PositionController.php b/backend/modules/settings/controllers/PositionController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/controllers/SkillController.php b/backend/modules/settings/controllers/SkillController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/controllers/StatusController.php b/backend/modules/settings/controllers/StatusController.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/AdditionalFields.php b/backend/modules/settings/models/AdditionalFields.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/AdditionalFieldsSearch.php b/backend/modules/settings/models/AdditionalFieldsSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/Position.php b/backend/modules/settings/models/Position.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/PositionSearch.php b/backend/modules/settings/models/PositionSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/Skill.php b/backend/modules/settings/models/Skill.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/SkillSearch.php b/backend/modules/settings/models/SkillSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/Status.php b/backend/modules/settings/models/Status.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/models/StatusSearch.php b/backend/modules/settings/models/StatusSearch.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/additional-fields/_form.php b/backend/modules/settings/views/additional-fields/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/additional-fields/_search.php b/backend/modules/settings/views/additional-fields/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/additional-fields/create.php b/backend/modules/settings/views/additional-fields/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/additional-fields/index.php b/backend/modules/settings/views/additional-fields/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/additional-fields/update.php b/backend/modules/settings/views/additional-fields/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/additional-fields/view.php b/backend/modules/settings/views/additional-fields/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/position/_form.php b/backend/modules/settings/views/position/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/position/_search.php b/backend/modules/settings/views/position/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/position/create.php b/backend/modules/settings/views/position/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/position/index.php b/backend/modules/settings/views/position/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/position/update.php b/backend/modules/settings/views/position/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/position/view.php b/backend/modules/settings/views/position/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/skill/_form.php b/backend/modules/settings/views/skill/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/skill/_search.php b/backend/modules/settings/views/skill/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/skill/create.php b/backend/modules/settings/views/skill/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/skill/index.php b/backend/modules/settings/views/skill/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/skill/update.php b/backend/modules/settings/views/skill/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/skill/view.php b/backend/modules/settings/views/skill/view.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/status/_form.php b/backend/modules/settings/views/status/_form.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/status/_search.php b/backend/modules/settings/views/status/_search.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/status/create.php b/backend/modules/settings/views/status/create.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/status/index.php b/backend/modules/settings/views/status/index.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/status/update.php b/backend/modules/settings/views/status/update.php
old mode 100644
new mode 100755
diff --git a/backend/modules/settings/views/status/view.php b/backend/modules/settings/views/status/view.php
old mode 100644
new mode 100755
diff --git a/backend/runtime/.gitignore b/backend/runtime/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/tests/_bootstrap.php b/backend/tests/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/backend/tests/_data/.gitignore b/backend/tests/_data/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/tests/_data/login_data.php b/backend/tests/_data/login_data.php
old mode 100644
new mode 100755
diff --git a/backend/tests/_output/.gitignore b/backend/tests/_output/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/tests/_support/.gitignore b/backend/tests/_support/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/tests/_support/FunctionalTester.php b/backend/tests/_support/FunctionalTester.php
old mode 100644
new mode 100755
diff --git a/backend/tests/_support/UnitTester.php b/backend/tests/_support/UnitTester.php
old mode 100644
new mode 100755
diff --git a/backend/tests/functional.suite.yml b/backend/tests/functional.suite.yml
old mode 100644
new mode 100755
diff --git a/backend/tests/functional/LoginCest.php b/backend/tests/functional/LoginCest.php
old mode 100644
new mode 100755
diff --git a/backend/tests/functional/_bootstrap.php b/backend/tests/functional/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/backend/tests/unit.suite.yml b/backend/tests/unit.suite.yml
old mode 100644
new mode 100755
diff --git a/backend/tests/unit/_bootstrap.php b/backend/tests/unit/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/backend/views/layouts/content.php b/backend/views/layouts/content.php
old mode 100644
new mode 100755
diff --git a/backend/views/layouts/header.php b/backend/views/layouts/header.php
old mode 100644
new mode 100755
diff --git a/backend/views/layouts/left.php b/backend/views/layouts/left.php
old mode 100644
new mode 100755
index 1d31b74..a1ca583
--- a/backend/views/layouts/left.php
+++ b/backend/views/layouts/left.php
@@ -33,7 +33,8 @@
['label' => 'Компании', 'icon' => 'building', 'url' => ['/hh/hh']],
['label' => 'Вакансии', 'icon' => 'user-md', 'url' => ['/hh/hh-job']],
],
- ]
+ ],
+ ['label' => 'Баланс', 'icon' => 'dollar', 'url' => ['/balance/balance']],
/*['label' => 'Gii', 'icon' => 'file-code-o', 'url' => ['/gii']],
['label' => 'Debug', 'icon' => 'dashboard', 'url' => ['/debug']],
diff --git a/backend/views/layouts/main-login.php b/backend/views/layouts/main-login.php
old mode 100644
new mode 100755
diff --git a/backend/views/layouts/main.php b/backend/views/layouts/main.php
old mode 100644
new mode 100755
diff --git a/backend/views/site/error.php b/backend/views/site/error.php
old mode 100644
new mode 100755
diff --git a/backend/views/site/index.php b/backend/views/site/index.php
old mode 100644
new mode 100755
diff --git a/backend/views/site/login.php b/backend/views/site/login.php
old mode 100644
new mode 100755
diff --git a/backend/web/.gitignore b/backend/web/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/web/.htaccess b/backend/web/.htaccess
old mode 100644
new mode 100755
diff --git a/backend/web/assets/.gitignore b/backend/web/assets/.gitignore
old mode 100644
new mode 100755
diff --git a/backend/web/css/site.css b/backend/web/css/site.css
old mode 100644
new mode 100755
diff --git a/backend/web/favicon.ico b/backend/web/favicon.ico
old mode 100644
new mode 100755
diff --git a/codeception.yml b/codeception.yml
old mode 100644
new mode 100755
diff --git a/common/classes/Debug.php b/common/classes/Debug.php
old mode 100644
new mode 100755
diff --git a/common/codeception.yml b/common/codeception.yml
old mode 100644
new mode 100755
diff --git a/common/config/.gitignore b/common/config/.gitignore
old mode 100644
new mode 100755
diff --git a/common/config/bootstrap.php b/common/config/bootstrap.php
old mode 100644
new mode 100755
diff --git a/common/config/main.php b/common/config/main.php
old mode 100644
new mode 100755
diff --git a/common/config/params.php b/common/config/params.php
old mode 100644
new mode 100755
diff --git a/common/config/test.php b/common/config/test.php
old mode 100644
new mode 100755
diff --git a/common/fixtures/UserFixture.php b/common/fixtures/UserFixture.php
old mode 100644
new mode 100755
diff --git a/common/hhapi/.gitignore b/common/hhapi/.gitignore
old mode 100644
new mode 100755
diff --git a/common/hhapi/composer.json b/common/hhapi/composer.json
old mode 100644
new mode 100755
diff --git a/common/hhapi/core/lib/Company.php b/common/hhapi/core/lib/Company.php
old mode 100644
new mode 100755
diff --git a/common/hhapi/core/lib/Vacancy.php b/common/hhapi/core/lib/Vacancy.php
old mode 100644
new mode 100755
diff --git a/common/hhapi/core/request/Request.php b/common/hhapi/core/request/Request.php
old mode 100644
new mode 100755
diff --git a/common/hhapi/core/service/HHService.php b/common/hhapi/core/service/HHService.php
old mode 100644
new mode 100755
diff --git a/common/hhapi/index.php b/common/hhapi/index.php
old mode 100644
new mode 100755
diff --git a/common/mail/layouts/html.php b/common/mail/layouts/html.php
old mode 100644
new mode 100755
diff --git a/common/mail/layouts/text.php b/common/mail/layouts/text.php
old mode 100644
new mode 100755
diff --git a/common/mail/passwordResetToken-html.php b/common/mail/passwordResetToken-html.php
old mode 100644
new mode 100755
diff --git a/common/mail/passwordResetToken-text.php b/common/mail/passwordResetToken-text.php
old mode 100644
new mode 100755
diff --git a/common/models/AdditionalFields.php b/common/models/AdditionalFields.php
old mode 100644
new mode 100755
diff --git a/common/models/Balance.php b/common/models/Balance.php
new file mode 100644
index 0000000..5f801db
--- /dev/null
+++ b/common/models/Balance.php
@@ -0,0 +1,45 @@
+ 'id',
+ 'type' => 'Тип',
+ 'summ' => 'Сумма',
+ 'dt_add' => 'Дата добавления',
+ ];
+ }
+
+ public function afterFind()
+ {
+ parent::afterFind(); // TODO: Change the autogenerated stub
+ $this->dt_add = date('d-m-Y',$this->dt_add);
+ }
+}
\ No newline at end of file
diff --git a/common/models/CardSkill.php b/common/models/CardSkill.php
old mode 100644
new mode 100755
diff --git a/common/models/Company.php b/common/models/Company.php
old mode 100644
new mode 100755
diff --git a/common/models/FieldsValue.php b/common/models/FieldsValue.php
old mode 100644
new mode 100755
index 940484f..fba2215
--- a/common/models/FieldsValue.php
+++ b/common/models/FieldsValue.php
@@ -37,12 +37,13 @@ class FieldsValue extends \yii\db\ActiveRecord
{
return [
[['field_id', 'value'], 'required'],
- [['card_id', 'field_id', 'order', 'project_id', 'company_id'], 'integer'],
+ [['card_id', 'field_id', 'order', 'project_id', 'company_id','balance_id'], 'integer'],
[['value'], 'string', 'max' => 255],
[['field_id'], 'exist', 'skipOnError' => true, 'targetClass' => AdditionalFields::class, 'targetAttribute' => ['field_id' => 'id']],
[['company_id'], 'exist', 'skipOnError' => true, 'targetClass' => Company::class, 'targetAttribute' => ['company_id' => 'id']],
[['project_id'], 'exist', 'skipOnError' => true, 'targetClass' => Project::class, 'targetAttribute' => ['project_id' => 'id']],
[['card_id'], 'exist', 'skipOnError' => true, 'targetClass' => UserCard::class, 'targetAttribute' => ['card_id' => 'id']],
+ [['balance_id'],'exist', 'skipOnError' => true, 'targetClass' => Balance::class, 'targetAttribute' => ['balance_id' => 'id']],
];
}
diff --git a/common/models/Hh.php b/common/models/Hh.php
old mode 100644
new mode 100755
diff --git a/common/models/HhJob.php b/common/models/HhJob.php
old mode 100644
new mode 100755
diff --git a/common/models/LoginForm.php b/common/models/LoginForm.php
old mode 100644
new mode 100755
diff --git a/common/models/Position.php b/common/models/Position.php
old mode 100644
new mode 100755
diff --git a/common/models/Project.php b/common/models/Project.php
old mode 100644
new mode 100755
diff --git a/common/models/ProjectUser.php b/common/models/ProjectUser.php
old mode 100644
new mode 100755
diff --git a/common/models/Skill.php b/common/models/Skill.php
old mode 100644
new mode 100755
diff --git a/common/models/Status.php b/common/models/Status.php
old mode 100644
new mode 100755
diff --git a/common/models/UseField.php b/common/models/UseField.php
old mode 100644
new mode 100755
index e1218e7..82d1af7
--- a/common/models/UseField.php
+++ b/common/models/UseField.php
@@ -21,6 +21,7 @@ class UseField extends \yii\db\ActiveRecord
const USE_PROFILE = 0;
const USE_PROJECT = 1;
const USE_COMPANY = 2;
+ const USE_BALANCE = 3;
/**
@@ -68,7 +69,8 @@ class UseField extends \yii\db\ActiveRecord
return [
self::USE_PROFILE => 'Профиль',
self::USE_PROJECT => 'Проект',
- self::USE_COMPANY => 'Компания'
+ self::USE_COMPANY => 'Компания',
+ self::USE_BALANCE => 'Баланс'
];
}
diff --git a/common/models/UseStatus.php b/common/models/UseStatus.php
old mode 100644
new mode 100755
index ffa0673..0e9b151
--- a/common/models/UseStatus.php
+++ b/common/models/UseStatus.php
@@ -21,6 +21,7 @@ class UseStatus extends \yii\db\ActiveRecord
const USE_PROFILE = 0;
const USE_PROJECT = 1;
const USE_COMPANY = 2;
+ const USE_BALANCE = 3;
/**
* {@inheritdoc}
@@ -67,7 +68,8 @@ class UseStatus extends \yii\db\ActiveRecord
return [
self::USE_PROFILE => 'Профиль',
self::USE_PROJECT => 'Проект',
- self::USE_COMPANY => 'Компания'
+ self::USE_COMPANY => 'Компания',
+ self::USE_BALANCE => 'Баланс'
];
}
diff --git a/common/models/User.php b/common/models/User.php
old mode 100644
new mode 100755
diff --git a/common/models/UserCard.php b/common/models/UserCard.php
old mode 100644
new mode 100755
diff --git a/common/tests/_bootstrap.php b/common/tests/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/common/tests/_data/user.php b/common/tests/_data/user.php
old mode 100644
new mode 100755
diff --git a/common/tests/_output/.gitignore b/common/tests/_output/.gitignore
old mode 100644
new mode 100755
diff --git a/common/tests/_support/.gitignore b/common/tests/_support/.gitignore
old mode 100644
new mode 100755
diff --git a/common/tests/_support/UnitTester.php b/common/tests/_support/UnitTester.php
old mode 100644
new mode 100755
diff --git a/common/tests/unit.suite.yml b/common/tests/unit.suite.yml
old mode 100644
new mode 100755
diff --git a/common/tests/unit/models/LoginFormTest.php b/common/tests/unit/models/LoginFormTest.php
old mode 100644
new mode 100755
diff --git a/common/widgets/Alert.php b/common/widgets/Alert.php
old mode 100644
new mode 100755
diff --git a/composer.json b/composer.json
old mode 100644
new mode 100755
index 5cee905..e4438ae
--- a/composer.json
+++ b/composer.json
@@ -22,7 +22,8 @@
"unclead/yii2-multiple-input": "~2.0",
"mihaildev/yii2-elfinder": "*",
"kartik-v/yii2-widget-select2": "@dev",
- "kavalar/hhapi": "@dev"
+ "kavalar/hhapi": "@dev",
+ "kartik-v/yii2-widget-datepicker": "@dev"
},
"require-dev": {
"yiisoft/yii2-debug": "~2.0.0",
diff --git a/composer.lock b/composer.lock
old mode 100644
new mode 100755
index 8824874..3fb278b
--- a/composer.lock
+++ b/composer.lock
@@ -4,19 +4,19 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "690fb4ff58b0c920877e5f27a7dd6165",
+ "content-hash": "7c8e337361e574ba82a9b37a944713b9",
"packages": [
{
"name": "almasaeed2010/adminlte",
"version": "v2.4.8",
"source": {
"type": "git",
- "url": "https://github.com/almasaeed2010/AdminLTE.git",
+ "url": "https://github.com/ColorlibHQ/AdminLTE.git",
"reference": "d9e68301848a95dff2e2dbef6569e617a9b3fa30"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/almasaeed2010/AdminLTE/zipball/d9e68301848a95dff2e2dbef6569e617a9b3fa30",
+ "url": "https://api.github.com/repos/ColorlibHQ/AdminLTE/zipball/d9e68301848a95dff2e2dbef6569e617a9b3fa30",
"reference": "d9e68301848a95dff2e2dbef6569e617a9b3fa30",
"shasum": ""
},
@@ -61,8 +61,7 @@
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twbs/bootstrap/zipball/0b9c4a4007c44201dce9a6cc1a38407005c26c86",
- "reference": "0b9c4a4007c44201dce9a6cc1a38407005c26c86",
- "shasum": null
+ "reference": "0b9c4a4007c44201dce9a6cc1a38407005c26c86"
},
"require": {
"bower-asset/jquery": ">=1.9.1,<4.0"
@@ -83,8 +82,7 @@
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/RobinHerbots/Inputmask/zipball/5e670ad62f50c738388d4dcec78d2888505ad77b",
- "reference": "5e670ad62f50c738388d4dcec78d2888505ad77b",
- "shasum": null
+ "reference": "5e670ad62f50c738388d4dcec78d2888505ad77b"
},
"require": {
"bower-asset/jquery": ">=1.7"
@@ -99,14 +97,13 @@
"version": "3.2.1",
"source": {
"type": "git",
- "url": "git@github.com:jquery/jquery-dist.git",
+ "url": "https://github.com/jquery/jquery-dist.git",
"reference": "77d2a51d0520d2ee44173afdf4e40a9201f5964e"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/jquery/jquery-dist/zipball/77d2a51d0520d2ee44173afdf4e40a9201f5964e",
- "reference": "77d2a51d0520d2ee44173afdf4e40a9201f5964e",
- "shasum": null
+ "reference": "77d2a51d0520d2ee44173afdf4e40a9201f5964e"
},
"type": "bower-asset",
"license": [
@@ -118,14 +115,13 @@
"version": "1.12.1",
"source": {
"type": "git",
- "url": "https://github.com/components/jqueryui.git",
+ "url": "git@github.com:components/jqueryui.git",
"reference": "44ecf3794cc56b65954cc19737234a3119d036cc"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/components/jqueryui/zipball/44ecf3794cc56b65954cc19737234a3119d036cc",
- "reference": "44ecf3794cc56b65954cc19737234a3119d036cc",
- "shasum": null
+ "reference": "44ecf3794cc56b65954cc19737234a3119d036cc"
},
"require": {
"bower-asset/jquery": ">=1.6"
@@ -146,8 +142,7 @@
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/bestiejs/punycode.js/zipball/38c8d3131a82567bfef18da09f7f4db68c84f8a3",
- "reference": "38c8d3131a82567bfef18da09f7f4db68c84f8a3",
- "shasum": null
+ "reference": "38c8d3131a82567bfef18da09f7f4db68c84f8a3"
},
"type": "bower-asset"
},
@@ -162,8 +157,7 @@
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/yiisoft/jquery-pjax/zipball/aef7b953107264f00234902a3880eb50dafc48be",
- "reference": "aef7b953107264f00234902a3880eb50dafc48be",
- "shasum": null
+ "reference": "aef7b953107264f00234902a3880eb50dafc48be"
},
"require": {
"bower-asset/jquery": ">=1.8"
@@ -713,6 +707,60 @@
],
"time": "2018-09-27T18:02:35+00:00"
},
+ {
+ "name": "kartik-v/yii2-widget-datepicker",
+ "version": "v1.4.6",
+ "source": {
+ "type": "git",
+ "url": "https://github.com/kartik-v/yii2-widget-datepicker.git",
+ "reference": "01a5940fb1b70b39b7916a4e68768f8626024ddc"
+ },
+ "dist": {
+ "type": "zip",
+ "url": "https://api.github.com/repos/kartik-v/yii2-widget-datepicker/zipball/01a5940fb1b70b39b7916a4e68768f8626024ddc",
+ "reference": "01a5940fb1b70b39b7916a4e68768f8626024ddc",
+ "shasum": ""
+ },
+ "require": {
+ "kartik-v/yii2-krajee-base": "~1.9"
+ },
+ "type": "yii2-extension",
+ "extra": {
+ "branch-alias": {
+ "dev-master": "1.4.x-dev"
+ }
+ },
+ "autoload": {
+ "psr-4": {
+ "kartik\\date\\": "src"
+ }
+ },
+ "notification-url": "https://packagist.org/downloads/",
+ "license": [
+ "BSD-3-Clause"
+ ],
+ "authors": [
+ {
+ "name": "Kartik Visweswaran",
+ "email": "kartikv2@gmail.com",
+ "homepage": "http://www.krajee.com/"
+ }
+ ],
+ "description": "Enhanced Yii2 wrapper for the bootstrap datepicker plugin (sub repo split from yii2-widgets).",
+ "homepage": "https://github.com/kartik-v/yii2-widget-datepicker",
+ "keywords": [
+ "date",
+ "extension",
+ "form",
+ "jquery",
+ "picker",
+ "plugin",
+ "select2",
+ "widget",
+ "yii2"
+ ],
+ "time": "2018-08-29T12:10:45+00:00"
+ },
{
"name": "kartik-v/yii2-widget-select2",
"version": "dev-master",
@@ -1448,8 +1496,7 @@
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/twitter/typeahead.js/zipball/588440f66559714280628a4f9799f0c4eb880a4a",
- "reference": "588440f66559714280628a4f9799f0c4eb880a4a",
- "shasum": null
+ "reference": "588440f66559714280628a4f9799f0c4eb880a4a"
},
"require": {
"bower-asset/jquery": ">=1.7"
@@ -3941,7 +3988,8 @@
"minimum-stability": "stable",
"stability-flags": {
"kartik-v/yii2-widget-select2": 20,
- "kavalar/hhapi": 20
+ "kavalar/hhapi": 20,
+ "kartik-v/yii2-widget-datepicker": 20
},
"prefer-stable": false,
"prefer-lowest": false,
diff --git a/console/config/.gitignore b/console/config/.gitignore
old mode 100644
new mode 100755
diff --git a/console/config/bootstrap.php b/console/config/bootstrap.php
old mode 100644
new mode 100755
diff --git a/console/config/main.php b/console/config/main.php
old mode 100644
new mode 100755
diff --git a/console/config/params.php b/console/config/params.php
old mode 100644
new mode 100755
diff --git a/console/controllers/.gitkeep b/console/controllers/.gitkeep
old mode 100644
new mode 100755
diff --git a/console/migrations/m130524_201442_init.php b/console/migrations/m130524_201442_init.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181003_070416_create_status_table.php b/console/migrations/m181003_070416_create_status_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181003_070636_create_user_card_table.php b/console/migrations/m181003_070636_create_user_card_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181003_082730_create_additional_fields_table.php b/console/migrations/m181003_082730_create_additional_fields_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181003_092319_create_fields_value_table.php b/console/migrations/m181003_092319_create_fields_value_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181004_095927_add_column_resume_to_user_card_table.php b/console/migrations/m181004_095927_add_column_resume_to_user_card_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181004_102703_add_column_order_to_fields_value_table.php b/console/migrations/m181004_102703_add_column_order_to_fields_value_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181005_114117_create_use_status_table.php b/console/migrations/m181005_114117_create_use_status_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181008_065248_create_use_field_table.php b/console/migrations/m181008_065248_create_use_field_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181008_090446_create_project_table.php b/console/migrations/m181008_090446_create_project_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181008_095803_add_project_id_field_to_fields_value.php b/console/migrations/m181008_095803_add_project_id_field_to_fields_value.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181008_105959_create_project_user_table.php b/console/migrations/m181008_105959_create_project_user_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181011_140628_create_company_table.php b/console/migrations/m181011_140628_create_company_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181011_140904_add_column_to_fields_value.php b/console/migrations/m181011_140904_add_column_to_fields_value.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181011_142555_add_column_to_user_card.php b/console/migrations/m181011_142555_add_column_to_user_card.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181011_143349_add_column_company_id_to_project_table.php b/console/migrations/m181011_143349_add_column_company_id_to_project_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181012_082916_create_position_table.php b/console/migrations/m181012_082916_create_position_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181012_093626_add_position_id_column_to_user_card_table.php b/console/migrations/m181012_093626_add_position_id_column_to_user_card_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181012_102422_create_skill_table.php b/console/migrations/m181012_102422_create_skill_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181106_082016_add_deleted_at_column_to_user_card_table.php b/console/migrations/m181106_082016_add_deleted_at_column_to_user_card_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181121_103329_create_hh_table.php b/console/migrations/m181121_103329_create_hh_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181121_112940_create_hh_job_table.php b/console/migrations/m181121_112940_create_hh_job_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181121_135329_add_hh_id_column_to_project_table.php b/console/migrations/m181121_135329_add_hh_id_column_to_project_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m181121_150057_add_schedule_column_to_hh_job_table.php b/console/migrations/m181121_150057_add_schedule_column_to_hh_job_table.php
old mode 100644
new mode 100755
diff --git a/console/migrations/m190621_094843_add_balance.php b/console/migrations/m190621_094843_add_balance.php
new file mode 100644
index 0000000..10624ac
--- /dev/null
+++ b/console/migrations/m190621_094843_add_balance.php
@@ -0,0 +1,45 @@
+createTable('balance',[
+ 'id' => $this->primaryKey(),
+ 'type' => $this->integer(1),
+ 'summ' => $this->integer(4),
+ 'dt_add' => $this->integer(11),
+ ]);
+ }
+
+ /**
+ * {@inheritdoc}
+ */
+ public function safeDown()
+ {
+ $this->dropTable('balance');
+ }
+
+ /*
+ // Use up()/down() to run migration code without a transaction.
+ public function up()
+ {
+
+ }
+
+ public function down()
+ {
+ echo "m190621_094843_add_balance cannot be reverted.\n";
+
+ return false;
+ }
+ */
+}
diff --git a/console/models/.gitkeep b/console/models/.gitkeep
old mode 100644
new mode 100755
diff --git a/console/runtime/.gitignore b/console/runtime/.gitignore
old mode 100644
new mode 100755
diff --git a/environments/dev/backend/config/main-local.php b/environments/dev/backend/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/backend/config/params-local.php b/environments/dev/backend/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/backend/config/test-local.php b/environments/dev/backend/config/test-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/backend/web/index-test.php b/environments/dev/backend/web/index-test.php
old mode 100644
new mode 100755
diff --git a/environments/dev/backend/web/index.php b/environments/dev/backend/web/index.php
old mode 100644
new mode 100755
diff --git a/environments/dev/backend/web/robots.txt b/environments/dev/backend/web/robots.txt
old mode 100644
new mode 100755
diff --git a/environments/dev/common/config/main-local.php b/environments/dev/common/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/common/config/params-local.php b/environments/dev/common/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/common/config/test-local.php b/environments/dev/common/config/test-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/console/config/main-local.php b/environments/dev/console/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/console/config/params-local.php b/environments/dev/console/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/frontend/config/main-local.php b/environments/dev/frontend/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/frontend/config/params-local.php b/environments/dev/frontend/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/frontend/config/test-local.php b/environments/dev/frontend/config/test-local.php
old mode 100644
new mode 100755
diff --git a/environments/dev/frontend/web/index-test.php b/environments/dev/frontend/web/index-test.php
old mode 100644
new mode 100755
diff --git a/environments/dev/frontend/web/index.php b/environments/dev/frontend/web/index.php
old mode 100644
new mode 100755
diff --git a/environments/dev/frontend/web/robots.txt b/environments/dev/frontend/web/robots.txt
old mode 100644
new mode 100755
diff --git a/environments/dev/yii b/environments/dev/yii
old mode 100644
new mode 100755
diff --git a/environments/dev/yii_test b/environments/dev/yii_test
old mode 100644
new mode 100755
diff --git a/environments/dev/yii_test.bat b/environments/dev/yii_test.bat
old mode 100644
new mode 100755
diff --git a/environments/index.php b/environments/index.php
old mode 100644
new mode 100755
diff --git a/environments/prod/backend/config/main-local.php b/environments/prod/backend/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/backend/config/params-local.php b/environments/prod/backend/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/backend/web/index.php b/environments/prod/backend/web/index.php
old mode 100644
new mode 100755
diff --git a/environments/prod/backend/web/robots.txt b/environments/prod/backend/web/robots.txt
old mode 100644
new mode 100755
diff --git a/environments/prod/common/config/main-local.php b/environments/prod/common/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/common/config/params-local.php b/environments/prod/common/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/console/config/main-local.php b/environments/prod/console/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/console/config/params-local.php b/environments/prod/console/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/frontend/config/main-local.php b/environments/prod/frontend/config/main-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/frontend/config/params-local.php b/environments/prod/frontend/config/params-local.php
old mode 100644
new mode 100755
diff --git a/environments/prod/frontend/web/index.php b/environments/prod/frontend/web/index.php
old mode 100644
new mode 100755
diff --git a/environments/prod/frontend/web/robots.txt b/environments/prod/frontend/web/robots.txt
old mode 100644
new mode 100755
diff --git a/environments/prod/yii b/environments/prod/yii
old mode 100644
new mode 100755
diff --git a/frontend/assets/AppAsset.php b/frontend/assets/AppAsset.php
old mode 100644
new mode 100755
diff --git a/frontend/codeception.yml b/frontend/codeception.yml
old mode 100644
new mode 100755
diff --git a/frontend/config/.gitignore b/frontend/config/.gitignore
old mode 100644
new mode 100755
diff --git a/frontend/config/bootstrap.php b/frontend/config/bootstrap.php
old mode 100644
new mode 100755
diff --git a/frontend/config/main.php b/frontend/config/main.php
old mode 100644
new mode 100755
index ea12607..d539bf9
--- a/frontend/config/main.php
+++ b/frontend/config/main.php
@@ -14,6 +14,7 @@ return [
'components' => [
'request' => [
'csrfParam' => '_csrf-frontend',
+ 'baseUrl' => '',
],
'user' => [
'identityClass' => 'common\models\User',
diff --git a/frontend/config/params.php b/frontend/config/params.php
old mode 100644
new mode 100755
diff --git a/frontend/config/test.php b/frontend/config/test.php
old mode 100644
new mode 100755
diff --git a/frontend/controllers/SiteController.php b/frontend/controllers/SiteController.php
old mode 100644
new mode 100755
diff --git a/frontend/models/ContactForm.php b/frontend/models/ContactForm.php
old mode 100644
new mode 100755
diff --git a/frontend/models/PasswordResetRequestForm.php b/frontend/models/PasswordResetRequestForm.php
old mode 100644
new mode 100755
diff --git a/frontend/models/ResetPasswordForm.php b/frontend/models/ResetPasswordForm.php
old mode 100644
new mode 100755
diff --git a/frontend/models/SignupForm.php b/frontend/models/SignupForm.php
old mode 100644
new mode 100755
diff --git a/frontend/runtime/.gitignore b/frontend/runtime/.gitignore
old mode 100644
new mode 100755
diff --git a/frontend/tests/_bootstrap.php b/frontend/tests/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/_data/login_data.php b/frontend/tests/_data/login_data.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/_data/user.php b/frontend/tests/_data/user.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/_output/.gitignore b/frontend/tests/_output/.gitignore
old mode 100644
new mode 100755
diff --git a/frontend/tests/_support/.gitignore b/frontend/tests/_support/.gitignore
old mode 100644
new mode 100755
diff --git a/frontend/tests/_support/FunctionalTester.php b/frontend/tests/_support/FunctionalTester.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/_support/UnitTester.php b/frontend/tests/_support/UnitTester.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/acceptance.suite.yml.example b/frontend/tests/acceptance.suite.yml.example
old mode 100644
new mode 100755
diff --git a/frontend/tests/acceptance/HomeCest.php b/frontend/tests/acceptance/HomeCest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/acceptance/_bootstrap.php b/frontend/tests/acceptance/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional.suite.yml b/frontend/tests/functional.suite.yml
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional/AboutCest.php b/frontend/tests/functional/AboutCest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional/ContactCest.php b/frontend/tests/functional/ContactCest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional/HomeCest.php b/frontend/tests/functional/HomeCest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional/LoginCest.php b/frontend/tests/functional/LoginCest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional/SignupCest.php b/frontend/tests/functional/SignupCest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/functional/_bootstrap.php b/frontend/tests/functional/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/unit.suite.yml b/frontend/tests/unit.suite.yml
old mode 100644
new mode 100755
diff --git a/frontend/tests/unit/_bootstrap.php b/frontend/tests/unit/_bootstrap.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/unit/models/ContactFormTest.php b/frontend/tests/unit/models/ContactFormTest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/unit/models/PasswordResetRequestFormTest.php b/frontend/tests/unit/models/PasswordResetRequestFormTest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/unit/models/ResetPasswordFormTest.php b/frontend/tests/unit/models/ResetPasswordFormTest.php
old mode 100644
new mode 100755
diff --git a/frontend/tests/unit/models/SignupFormTest.php b/frontend/tests/unit/models/SignupFormTest.php
old mode 100644
new mode 100755
diff --git a/frontend/views/layouts/main.php b/frontend/views/layouts/main.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/about.php b/frontend/views/site/about.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/contact.php b/frontend/views/site/contact.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/error.php b/frontend/views/site/error.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/index.php b/frontend/views/site/index.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/login.php b/frontend/views/site/login.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/requestPasswordResetToken.php b/frontend/views/site/requestPasswordResetToken.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/resetPassword.php b/frontend/views/site/resetPassword.php
old mode 100644
new mode 100755
diff --git a/frontend/views/site/signup.php b/frontend/views/site/signup.php
old mode 100644
new mode 100755
diff --git a/frontend/web/.gitignore b/frontend/web/.gitignore
old mode 100644
new mode 100755
diff --git a/frontend/web/.htaccess b/frontend/web/.htaccess
old mode 100644
new mode 100755
diff --git a/frontend/web/assets/.gitignore b/frontend/web/assets/.gitignore
old mode 100644
new mode 100755
diff --git a/frontend/web/css/site.css b/frontend/web/css/site.css
old mode 100644
new mode 100755
diff --git a/frontend/web/favicon.ico b/frontend/web/favicon.ico
old mode 100644
new mode 100755
diff --git a/frontend/web/media/upload/.gitignore b/frontend/web/media/upload/.gitignore
old mode 100644
new mode 100755
diff --git a/init.bat b/init.bat
old mode 100644
new mode 100755
diff --git a/requirements.php b/requirements.php
old mode 100644
new mode 100755
diff --git a/vagrant/config/.gitignore b/vagrant/config/.gitignore
old mode 100644
new mode 100755
diff --git a/vagrant/config/vagrant-local.example.yml b/vagrant/config/vagrant-local.example.yml
old mode 100644
new mode 100755
diff --git a/vagrant/nginx/app.conf b/vagrant/nginx/app.conf
old mode 100644
new mode 100755
diff --git a/vagrant/nginx/log/.gitignore b/vagrant/nginx/log/.gitignore
old mode 100644
new mode 100755
diff --git a/vagrant/provision/always-as-root.sh b/vagrant/provision/always-as-root.sh
old mode 100644
new mode 100755
diff --git a/vagrant/provision/common.sh b/vagrant/provision/common.sh
old mode 100644
new mode 100755
diff --git a/vagrant/provision/once-as-root.sh b/vagrant/provision/once-as-root.sh
old mode 100644
new mode 100755
diff --git a/vagrant/provision/once-as-vagrant.sh b/vagrant/provision/once-as-vagrant.sh
old mode 100644
new mode 100755
diff --git a/yii.bat b/yii.bat
old mode 100644
new mode 100755