diff --git a/frontend/views/accounts/_portfolio_form.php b/frontend/views/accounts/_portfolio_form.php
index 7dc0d73..30279de 100644
--- a/frontend/views/accounts/_portfolio_form.php
+++ b/frontend/views/accounts/_portfolio_form.php
@@ -1,35 +1,35 @@
title = 'Портфолио';
- $this->params[ 'breadcrumbs' ][] = $this->title;
+$this->title = 'Портфолио';
+$this->params[ 'breadcrumbs' ][] = $this->title;
?>
= !empty( $portfolio->date_add ) ? "Дата создания: $portfolio->date_add" : "" ?>
@@ -40,7 +40,7 @@
@@ -71,13 +71,13 @@
= $form->field($portfolio, "specializationInput[{$child_second->specialization_id}]", [
'template' => '{input}{label}{hint}{error}',
])
- ->label('
' . $child_second->specialization_name)
- ->checkbox([
- 'value' => $child_second->specialization_id,
- 'label' => NULL,
- 'uncheck' => NULL,
- 'class' => 'custom-check',
- ], false) ?>
+ ->label('
' . $child_second->specialization_name)
+ ->checkbox([
+ 'value' => $child_second->specialization_id,
+ 'label' => NULL,
+ 'uncheck' => NULL,
+ 'class' => 'custom-check',
+ ], false) ?>
@@ -105,126 +105,126 @@
Фото главное
= $form->field($portfolio, 'cover')
- ->widget(ImageUploaderInput::className(), [
- 'size' => [
- [
- 'width' => 720,
- 'height' => 280,
- ],
- [
- 'width' => 318,
- 'height' => 228,
- ],
- [
- 'width' => 152,
- 'height' => 108,
- ],
- [
- 'width' => 210,
- 'height' => 150,
- ],
- ],
- 'multi' => false,
- 'gallery' => $portfolio->cover,
- 'name' => 'Загрузить фото',
- ]); ?>
+ ->widget(ImageUploaderInput::className(), [
+ 'size' => [
+ [
+ 'width' => 720,
+ 'height' => 280,
+ ],
+ [
+ 'width' => 318,
+ 'height' => 228,
+ ],
+ [
+ 'width' => 152,
+ 'height' => 108,
+ ],
+ [
+ 'width' => 210,
+ 'height' => 150,
+ ],
+ ],
+ 'multi' => false,
+ 'gallery' => $portfolio->cover,
+ 'name' => 'Загрузить фото',
+ ]); ?>
@@ -234,18 +234,18 @@
= Html::submitButton($portfolio->isNewRecord ? Yii::t('app', 'add') : 'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?>
isNewRecord) {
- echo Html::a(Yii::t('app', 'delete'), [
- 'accounts/portfolio-delete',
- 'id' => $portfolio->portfolio_id,
- ], [
- 'title' => Yii::t('app', 'delete'),
- 'aria-label' => Yii::t('app', 'delete'),
- 'data-confirm' => Yii::t('app', 'delete_confirm'),
- 'data-method' => 'post',
- 'data-pjax' => 0,
- ]);
- }
+ if(!$portfolio->isNewRecord) {
+ echo Html::a(Yii::t('app', 'delete'), [
+ 'accounts/portfolio-delete',
+ 'id' => $portfolio->portfolio_id,
+ ], [
+ 'title' => Yii::t('app', 'delete'),
+ 'aria-label' => Yii::t('app', 'delete'),
+ 'data-confirm' => Yii::t('app', 'delete_confirm'),
+ 'data-method' => 'post',
+ 'data-pjax' => 0,
+ ]);
+ }
?>
@@ -255,12 +255,11 @@
end();
+$form->end();
?>
diff --git a/frontend/views/ajax/project_user.php b/frontend/views/ajax/project_user.php
index a2517c3..95e4b64 100644
--- a/frontend/views/ajax/project_user.php
+++ b/frontend/views/ajax/project_user.php
@@ -10,30 +10,50 @@
use yii\web\View;
?>
-