2019-11-18 16:14:06 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
use kartik\select2\Select2;
|
|
|
|
use yii\helpers\Html;
|
|
|
|
use yii\widgets\ActiveForm;
|
|
|
|
use common\models\Skill;
|
|
|
|
use yii\helpers\ArrayHelper;
|
|
|
|
|
|
|
|
/* @var $this yii\web\View */
|
|
|
|
/* @var $model frontend\modules\card\models\UserCard */
|
|
|
|
/* @var $form yii\widgets\ActiveForm */
|
|
|
|
?>
|
|
|
|
|
|
|
|
<div class="user-card-form">
|
|
|
|
|
|
|
|
<?php $form = ActiveForm::begin(); ?>
|
|
|
|
|
2020-01-21 17:46:03 +03:00
|
|
|
<?= $form->field($model, 'fio')->textInput(['maxlength' => true]) ?>
|
|
|
|
|
|
|
|
<?= $form->field($model, 'dob')->input(
|
|
|
|
'date',
|
|
|
|
[
|
|
|
|
'placeholder' => 'Zadejte svůj Datum narození',
|
|
|
|
'language' => 'en',
|
|
|
|
"data-format" => "DD MMMM YYYY",
|
|
|
|
|
|
|
|
]
|
|
|
|
) ?>
|
2019-11-18 16:14:06 +03:00
|
|
|
<div class="row">
|
|
|
|
<div class="col-xs-12">
|
|
|
|
<?= $form->field($model, 'skill')->widget(
|
|
|
|
Select2::class,
|
|
|
|
[
|
|
|
|
'data' => ArrayHelper::map(Skill::find()->all(), 'id', 'name'),
|
|
|
|
'options' => ['placeholder' => '...', 'class' => 'form-control', 'multiple' => true],
|
|
|
|
]
|
|
|
|
)->label('Навыки'); ?>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
<?= Html::submitButton('Save', ['class' => 'btn btn-success']) ?>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
|
|
|
|
</div>
|