user card edit form
This commit is contained in:
parent
6880eaa2ba
commit
cb10af1bce
@ -15,6 +15,22 @@ use yii\helpers\ArrayHelper;
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
|
||||
<?= $form->field($model, 'fio')->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",
|
||||
|
||||
]
|
||||
) ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<?= $form->field($model, 'skill')->widget(
|
||||
|
@ -57,8 +57,6 @@ $this->title = 'Профиль';
|
||||
<?php foreach ($skills as $skill) : ?>
|
||||
<span class="btn btn-default btn-sm"><?= $skill['skill']->name; ?></span>
|
||||
<?php endforeach; ?>
|
||||
<br><br>
|
||||
<?= Html::a('Добавить', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success']); ?>
|
||||
|
||||
<h2>Дополнительные сведения</h2>
|
||||
|
||||
@ -80,4 +78,6 @@ $this->title = 'Профиль';
|
||||
],
|
||||
]); ?>
|
||||
|
||||
<?= Html::a('Изменить', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success']); ?>
|
||||
|
||||
</div>
|
||||
|
Loading…
Reference in New Issue
Block a user