backend change password
This commit is contained in:
22
backend/modules/card/views/user-card/password.php
Normal file
22
backend/modules/card/views/user-card/password.php
Normal file
@ -0,0 +1,22 @@
|
||||
<?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 echo ' ' . Html::button('Сгенерировать', ['class' => 'btn btn-success generate']); ?>
|
||||
|
||||
<?php ActiveForm::end(); ?>
|
@ -12,6 +12,9 @@ $this->params['breadcrumbs'][] = 'Редактировать';
|
||||
?>
|
||||
<div class="user-card-update">
|
||||
|
||||
<?php echo Html::a('Изменить пароль', ['password', 'id' => $model->id], ['class' => 'btn btn-success']);
|
||||
?>
|
||||
|
||||
<?= $this->render('_form', [
|
||||
'model' => $model,
|
||||
]) ?>
|
||||
|
Reference in New Issue
Block a user