= $form->field($model, 'fio')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'passport')->textInput(['maxlength' => true]) ?>
add_a_test_task_completion_date_to_ucer_card
'ru',
'controller' => 'elfinder',
// вставляем название контроллера, по умолчанию равен elfinder
'filter' => 'image',
// фильтр файлов, можно задать массив фильтров https://github.com/Studio-42/elFinder/wiki/Client-con..
'name' => 'UserCard[photo]',
'id' => 'usercard-photo',
'template' => '
{input}{button}
',
'options' => ['class' => 'form-control itemImg', 'maxlength' => '255'],
'buttonOptions' => ['class' => 'btn btn-primary'],
'value' => $model->photo,
'buttonName' => 'Выбрать изображение',
]);
?>
'ru',
'controller' => 'elfinder',
// вставляем название контроллера, по умолчанию равен elfinder
//'filter' => ['image', 'application/zip', 'application/csv', 'application/pdf', 'application/msword', 'application/vnd.openxmlformats-officedocument.wordprocessingml.document'],
// фильтр файлов, можно задать массив фильтров https://github.com/Studio-42/elFinder/wiki/Client-con..
'name' => 'UserCard[resume]',
'id' => 'usercard-resume',
'template' => '
{input}{button}
',
'options' => ['class' => 'form-control itemImg', 'maxlength' => '255'],
'buttonOptions' => ['class' => 'btn btn-primary'],
'value' => $model->resume,
'buttonName' => 'Выбрать резюме',
]);
?>
= $form->field($model, 'city')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'link_vk')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'link_telegram')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'email')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'gender')->dropDownList(
$model->genders,
[
'prompt' => 'Выберите'
]
) ?>
= $form->field($model, 'dob')->input(
'date',
[
'placeholder' => 'Zadejte svůj Datum narození',
'language' => 'en',
"data-format" => "DD MMMM YYYY",
]
) ?>
= $form->field($model, 'status')
->dropDownList(
\common\models\Status::getStatusesArray(\common\models\UseStatus::USE_PROFILE),
[
'prompt' => 'Выберите'
]
) ?>
user->can('confidential_information')): ?>
= $form->field($model, 'salary')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'position_id')->dropDownList(
\yii\helpers\ArrayHelper::map(\backend\modules\settings\models\Position::find()->all(), 'id', 'name'),
['prompt' => '...']
) ?>
= $form->field($model, 'level')->dropDownList(
\common\models\UserCard::getLevelList(),
['prompt' => '...']
) ?>
= $form->field($model, 'specification')->textInput(['maxlength' => true]) ?>
= $form->field($model, 'years_of_exp')->input('number') ?>
= $form->field($model, 'skill')->widget(
Select2::class,
[
'data' => \yii\helpers\ArrayHelper::map(\common\models\Skill::find()->all(), 'id', 'name'),
'options' => ['placeholder' => '...', 'class' => 'form-control', 'multiple' => true],
'pluginOptions' => [
'allowClear' => true
],
]
)->label('Навыки'); ?>
= $form->field($model, 'vc_text_short')->textarea() ?>
= $form->field($model, 'vc_text')->widget(EditorClassic::className(), [
'clientOptions' => [
'language' => 'ru',
]
]); ?>
= $form->field($model, 'test_task_getting_date')->input(
'date',
[
'language' => 'en',
"data-format" => "DD MMMM YYYY",
]
) ?>
= $form->field($model, 'test_task_complete_date')->input(
'date',
[
'language' => 'en',
"data-format" => "DD MMMM YYYY",
]
) ?>
= $form->field($model, 'achievements')->widget(Select2::class,
[
'data' => \yii\helpers\ArrayHelper::map(Achievement::find()->where(['status' => Achievement::STATUS_ACTIVE])->all(),'id', 'title'),
'options' => ['placeholder' => '...','class' => 'form-control', 'multiple' => true],
'pluginOptions' => [
'allowClear' => true
],
]
); ?>
= $form->field($model, 'fields')->widget(MultipleInput::class, [
'cloneButton' => true,
'columns' => [
[
'name' => 'field_id',
'type' => 'dropDownList',
'title' => 'Поле',
'defaultValue' => null,
'items' => \yii\helpers\ArrayHelper::map(
\backend\modules\settings\models\AdditionalFields::find()
->joinWith('useFields')
->where(['`use_field`.`use`' => \common\models\UseStatus::USE_PROFILE])
->all(),
'id',
'name'
),
'options' => ['prompt' => 'Выберите']
],
[
'name' => 'value',
'title' => 'Значение',
'type' => InputFile::className(),
'options' => [
'language' => 'ru',
'controller' => 'elfinder',
// вставляем название контроллера, по умолчанию равен elfinder
// фильтр файлов, можно задать массив фильтров https://github.com/Studio-42/elFinder/wiki/Client-con..
'name' => 'fields[value]',
'id' => 'fields-value',
'options' => ['class' => 'form-control itemImg', 'maxlength' => '255'],
'buttonOptions' => ['class' => 'btn btn-primary'],
'value' => $model->fields[0]['value'],
'buttonName' => 'Выбрать файл',
],
],
[
'name' => 'order',
'title' => 'Приоритет',
'enableError' => true,
'options' => [
'class' => 'input-priority'
]
],
],
])->label('Дополнительно');
?>
= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>