title = 'Вакансии'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
title ?>
Редактирование:
field($vacancy, 'name') ->textInput (['class'=> 'custom-input-2']); ?>
field($vacancy, 'user_name') ->textInput (['class'=> 'custom-input-2']); ?> Вы
field($vacancy, 'phone') ->textInput (['class'=> 'custom-input-2']); ?> Ваш
field($vacancy, 'city')->widget(Select2::classname(), [ 'options' => ['placeholder' => 'Выбор города ...'], '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($vacancy, 'salary', [ 'template' => "{label}
от{input}\n{hint}\n{error}", 'options' => [ 'class' => 'form-inline' ], ]) ->label('Заработная плата') ->textInput (['class'=> 'custom-input-2 custom-input-2-date','type'=>'number']); ?>
field($vacancy, 'salary_currency', [ 'template' => "{input}\n{hint}\n{error}", ]) ->label(false) ->dropDownList($currencies) ?>
Необходимо выбрать хотя бы одну «специализацию».
field($vacancy, 'employmentInput') ->checkboxList($employment, [ 'item' => function($index, $label, $name, $checked, $value) { $return = '
'; $return .= ''; $return .= ''; $return .= '
'; return $return; } ] ) ?>
'requirements', 'item_id' => $vacancy->vacancy_id, 'model' => 'common\models\Vacancy', 'language' => 'ru', ] ); ?>
field($vacancy, 'description')->widget(CKEditor::className()) ?>
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, ]); } ?>
request->referrer)?\Yii::$app->request->referrer:['accounts/vacancy' ]) ?>
end(); ?>