change password
This commit is contained in:
@ -17,10 +17,6 @@ use yii\helpers\ArrayHelper;
|
||||
|
||||
<?= $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',
|
||||
[
|
||||
@ -30,7 +26,6 @@ use yii\helpers\ArrayHelper;
|
||||
|
||||
]
|
||||
) ?>
|
||||
|
||||
<div class="row">
|
||||
<div class="col-xs-12">
|
||||
<?= $form->field($model, 'skill')->widget(
|
||||
|
21
frontend/modules/card/views/user-card/password.php
Normal file
21
frontend/modules/card/views/user-card/password.php
Normal file
@ -0,0 +1,21 @@
|
||||
<?php
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
?>
|
||||
|
||||
<?php $form = ActiveForm::begin([
|
||||
'id' => 'password-form',
|
||||
'enableClientValidation' => true,
|
||||
'enableAjaxValidation' => false,
|
||||
'method' => 'post',
|
||||
]); ?>
|
||||
|
||||
<h4>Введите новый пароль</h4>
|
||||
|
||||
<?= Html::input('text', 'password', '', ['class' => 'form-control custom-input']) ?>
|
||||
|
||||
<br>
|
||||
|
||||
<?= Html::submitButton('Сохранить', ['class' => 'btn btn-success']) ?>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
@ -12,10 +12,11 @@ use yii\widgets\DetailView;
|
||||
$this->title = 'Профиль';
|
||||
?>
|
||||
<div class="user-card-view">
|
||||
|
||||
<h3>Личная информация</h3>
|
||||
<?php
|
||||
echo DetailView::widget([
|
||||
echo Html::a('Изменить профиль', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success'])
|
||||
. ' ' . Html::a('Изменить пароль', ['/card/user-card/password', 'id' => $model->id], ['class' => 'btn btn-success']);
|
||||
echo DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' => [
|
||||
['label' => 'ФИО', 'attribute' => 'fio',],
|
||||
@ -77,7 +78,4 @@ $this->title = 'Профиль';
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
<?= Html::a('Изменить', ['/card/user-card/update', 'id' => $model->id], ['class' => 'btn btn-success']); ?>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user