title = 'Портфолио'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
date_add ) ? "Дата создания: $portfolio->date_add" : "" ?>
field($portfolio, 'name') ->textInput([ 'class' => 'custom-input-2 fix-input-2' ]); ?>
field($portfolio, 'link') ->textInput([ 'class' => 'custom-input-2 fix-input-2' ]); ?>
Необходимо выбрать хотя бы одну «специализацию».
Фото главное
$portfolio, 'field' => 'cover', 'width' => 210, 'height' => 150, 'multi' => false, 'gallery' => $portfolio->cover, 'name' => 'Загрузить фото', ]); ?>
field($portfolio, 'gallery_id') ->hint("

Для создания галереи перейдите по " . Html::a('ссылке', [ 'accounts/gallery-create' ], [ 'target' => '_BLANK' ]) . "

") ->dropDownList($galleries, [ 'prompt' => 'Выберите галерею' ]) ?>
field($portfolio, 'city') ->widget(Select2::classname(), [ 'options' => [ 'class' => 'Выбор города ...' ], 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 3, 'ajax' => [ 'url' => \yii\helpers\Url::to([ 'site/city' ]), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }'), ], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function(city) { return city.text; }'), 'templateSelection' => new JsExpression('function (city) { return city.text; }'), ], ]); ?>
field($portfolio, 'street', [ 'options' => [ 'class' => 'form-group company_info' ] ]) ->label('Улица') ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($portfolio, 'house', [ 'options' => [ 'class' => 'form-group company_info' ] ]) ->label('Дом') ->textInput([ 'class' => 'custom-input-2' ]); ?>
field($portfolio, 'preview') ->widget(CKEditor::className(), [ 'editorOptions' => [ 'preset' => 'basic' ] ]) ?>
field($portfolio, 'description') ->widget(CKEditor::className()) ?>
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, ]); } ?>
request->referrer)?\Yii::$app->request->referrer:['accounts/portfolio' ]) ?>
end(); ?>