| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364 |
- <?php
- /*
- * This file is part of the Dektrium project.
- *
- * (c) Dektrium project <http://github.com/dektrium>
- *
- * For the full copyright and license information, please view the LICENSE.md
- * file that was distributed with this source code.
- */
- use yii\helpers\Html;
- use yii\bootstrap4\ActiveForm;
- /**
- * @var yii\web\View $this
- * @var yii\widgets\ActiveForm $form
- * @var dektrium\user\models\SettingsForm $model
- */
- $this->title = Yii::t('user', 'Account settings');
- $this->params['breadcrumbs'][] = ['label' => 'Профіль', 'url' => ['index']];
- $this->params['breadcrumbs'][] = $this->title;
- ?>
- <? //echo $this->render('@app/views/user/_alert', ['module' => Yii::$app->getModule('user')]) ?>
- <!-- Profile Box -->
- <div class="card card-gray">
- <div class="card-header">
- <h3 class="card-title"><?= Html::encode($this->title) ?></h3>
- <div class="card-tools"><span data-toggle="tooltip" title="Номер договору" class="badge bg-white"># </span></div>
- </div>
- <div class="card-body box-profile">
- <?php $form = ActiveForm::begin([
- 'id' => 'account-form',
- 'options' => ['class' => 'form-horizontal'],
- 'fieldConfig' => [
- 'template' => "{label}\n<div class=\"col-lg-9\">{input}</div>\n<div class=\"col-sm-offset-3 col-lg-9\">{error}\n{hint}</div>",
- 'labelOptions' => ['class' => 'col-lg-3 control-label'],
- ],
- 'enableAjaxValidation' => true,
- 'enableClientValidation' => false,
- ]); ?>
- <?= $form->field($model, 'email') ?>
- <?/*= $form->field($model, 'username') */?>
- <?= $form->field($model, 'new_password')->passwordInput() ?>
- <hr/>
- <?= $form->field($model, 'current_password')->passwordInput() ?>
- <div class="form-group">
- <div class="col-lg-offset-3 col-lg-9">
- <?= Html::submitButton(Yii::t('user', 'Save'), ['class' => 'btn btn-block btn-success']) ?>
- </div>
- </div>
- <?php ActiveForm::end(); ?>
- </div>
- </div>
|