title = 'Команда'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
Редактирование:
field($team, 'lastname') ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($team, 'firstname') ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($team, 'middlename') ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($team, 'link') ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($team, 'position') ->textInput([ 'class' => 'custom-input-2' ]) ?>
field($team, 'department_id') ->dropDownList($department) ?>
field($team, 'experience_from', [ 'template' => "{label},лет
с{input}года \n{hint}\n{error}" ]) ->textInput([ 'class' => 'custom-input-2 custom-input-2-date', 'type' => 'number', 'min' => 1950, 'max' => date('Y'), ]) ?>
field($team, 'country_id') ->widget(Select2::classname(), [ 'options' => [ 'placeholder' => 'Выбор страны ...' ], 'pluginOptions' => [ 'allowClear' => true, 'minimumInputLength' => 3, 'ajax' => [ 'url' => \yii\helpers\Url::to([ 'site/country' ]), 'dataType' => 'json', 'data' => new JsExpression('function(params) { return {q:params.term}; }'), ], 'escapeMarkup' => new JsExpression('function (markup) { return markup; }'), 'templateResult' => new JsExpression('function(country) { return country.text; }'), 'templateSelection' => new JsExpression('function (country) { return country.text; }'), ], ]); ?>
$team, 'field' => 'photo', 'width' => 100, 'height' => 100, 'multi' => false, 'gallery' => $team->photo, 'name' => 'Загрузить фото', ]); ?>
isNewRecord?'Добавить':'Обновить', [ 'class' => 'input-blocks-wrapper button' ]) ?>
isNewRecord) { echo Html::a('Удалить', [ 'accounts/team-delete', 'id' => $team->team_id, ], [ 'title' => 'Удалить', 'aria-label' => 'Удалить', 'data-confirm' => 'Вы уверены, что хотите удалить этот элемент?', 'data-method' => 'post', 'data-pjax' => 0, ]); } ?>
end(); ?>