diff --git a/common/models/Vacancy.php b/common/models/Vacancy.php index 3c65f4a..afe11d5 100644 --- a/common/models/Vacancy.php +++ b/common/models/Vacancy.php @@ -76,6 +76,11 @@ 'safe', ], [ + [ 'employmentInput', 'specializationInput' ], + 'default', + 'value' => [], + ], + [ [ 'view_count' ], 'default', 'value' => 0, diff --git a/frontend/views/accounts/_blog_form.php b/frontend/views/accounts/_blog_form.php index a900bbd..2347f8a 100644 --- a/frontend/views/accounts/_blog_form.php +++ b/frontend/views/accounts/_blog_form.php @@ -66,10 +66,24 @@ use yii\helpers\Html; ?> -
-
- 'input-blocks-wrapper button']) ?> - ' remove input-blocks-wrapper button']) ?> +
+
+ isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?> + isNewRecord) { + echo Html::a('Удалить', [ + 'accounts/blog-delete', + 'id' => $blog->blog_id, + ], [ + 'title' => 'Удалить', + 'aria-label' => 'Удалить', + 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', + 'data-method' => 'post', + 'data-pjax' => 0, + ]); + } + ?> +
diff --git a/frontend/views/accounts/_gallery_form.php b/frontend/views/accounts/_gallery_form.php index 1e29a62..5c2013a 100644 --- a/frontend/views/accounts/_gallery_form.php +++ b/frontend/views/accounts/_gallery_form.php @@ -53,8 +53,23 @@
-
- 'input-blocks-wrapper button']) ?> +
+ isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?> + isNewRecord) { + echo Html::a('Удалить', [ + 'accounts/gallery-delete', + 'id' => $gallery->gallery_id, + ], [ + 'title' => 'Удалить', + 'aria-label' => 'Удалить', + 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', + 'data-method' => 'post', + 'data-pjax' => 0, + ]); + } + ?> +
diff --git a/frontend/views/accounts/_portfolio_form.php b/frontend/views/accounts/_portfolio_form.php index 1f88185..b8ebea0 100644 --- a/frontend/views/accounts/_portfolio_form.php +++ b/frontend/views/accounts/_portfolio_form.php @@ -145,10 +145,24 @@ use yii\web\JsExpression;
-
-
- 'input-blocks-wrapper button']) ?> - ' remove input-blocks-wrapper button']) ?> +
+
+ isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?> + isNewRecord) { + echo Html::a('Удалить', [ + 'accounts/portfolio-delete', + 'id' => $portfolio->portfolio_id, + ], [ + 'title' => 'Удалить', + 'aria-label' => 'Удалить', + 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', + 'data-method' => 'post', + 'data-pjax' => 0, + ]); + } + ?> +
'Месяц', ]) ?> - +
+
+ isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?> + isNewRecord) { + echo Html::a('Удалить', [ + 'accounts/projects-delete', + 'id' => $project->project_id, + ], [ + 'title' => 'Удалить', + 'aria-label' => 'Удалить', + 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', + 'data-method' => 'post', + 'data-pjax' => 0, + ]); + } + ?> + +
+
end(); diff --git a/frontend/views/accounts/_team_form.php b/frontend/views/accounts/_team_form.php index 3e984f6..18580d1 100644 --- a/frontend/views/accounts/_team_form.php +++ b/frontend/views/accounts/_team_form.php @@ -140,18 +140,15 @@ $form->end(); ?> diff --git a/frontend/views/accounts/_vacancy_form.php b/frontend/views/accounts/_vacancy_form.php index 8c69b4b..b5c2dc8 100644 --- a/frontend/views/accounts/_vacancy_form.php +++ b/frontend/views/accounts/_vacancy_form.php @@ -161,7 +161,22 @@
- + isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?> + isNewRecord) { + echo Html::a('Удалить', [ + 'accounts/vacancy-delete', + 'id' => $vacancy->vacancy_id, + ], [ + 'title' => 'Удалить', + 'aria-label' => 'Удалить', + 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', + 'data-method' => 'post', + 'data-pjax' => 0, + ]); + } + ?> +
diff --git a/frontend/views/accounts/description.php b/frontend/views/accounts/description.php index 13fbf80..9bed8b2 100644 --- a/frontend/views/accounts/description.php +++ b/frontend/views/accounts/description.php @@ -27,7 +27,7 @@
- 'input-blocks-wrapper button']) ?> + 'input-blocks-wrapper button']) ?>
diff --git a/frontend/views/accounts/general.php b/frontend/views/accounts/general.php index b5855d3..63f7deb 100755 --- a/frontend/views/accounts/general.php +++ b/frontend/views/accounts/general.php @@ -270,7 +270,7 @@
- 'input-blocks-wrapper button']); + 'input-blocks-wrapper button']); $form->end (); ?>
-- libgit2 0.21.4