user card edit form

This commit is contained in:
akosse 2020-01-21 17:46:03 +03:00
parent 6880eaa2ba
commit cb10af1bce
2 changed files with 18 additions and 2 deletions

View File

@ -15,6 +15,22 @@ use yii\helpers\ArrayHelper;
<?php $form = ActiveForm::begin(); ?> <?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="row">
<div class="col-xs-12"> <div class="col-xs-12">
<?= $form->field($model, 'skill')->widget( <?= $form->field($model, 'skill')->widget(

View File

@ -57,8 +57,6 @@ $this->title = 'Профиль';
<?php foreach ($skills as $skill) : ?> <?php foreach ($skills as $skill) : ?>
<span class="btn btn-default btn-sm"><?= $skill['skill']->name; ?></span> <span class="btn btn-default btn-sm"><?= $skill['skill']->name; ?></span>
<?php endforeach; ?> <?php endforeach; ?>
<br><br>
<?= Html::a('Добавить', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success']); ?>
<h2>Дополнительные сведения</h2> <h2>Дополнительные сведения</h2>
@ -80,4 +78,6 @@ $this->title = 'Профиль';
], ],
]); ?> ]); ?>
<?= Html::a('Изменить', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success']); ?>
</div> </div>