* * For the full copyright and license information, please view * the LICENSE file that was distributed with this source code. */ use yii\helpers\Html; use yii\helpers\Url; use yii\widgets\ActiveForm; /** * @var yii\web\View $this * @var yii\widgets\ActiveForm $form * @var \Da\User\Form\SettingsForm $model */ $this->title = Yii::t('usuario', 'Account settings'); $this->params['breadcrumbs'][] = $this->title; /** @var \Da\User\Module $module */ $module = Yii::$app->getModule('user'); ?>
render('/shared/_alert', ['module' => Yii::$app->getModule('user')]) ?>
render('_menu') ?>

title) ?>

$model->formName(), 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => [ 'template' => "{label}\n
{input}
\n
{error}\n{hint}
", 'labelOptions' => ['class' => 'col-lg-3 control-label'], ], 'enableAjaxValidation' => true, 'enableClientValidation' => false, ] ); ?> field($model, 'email') ?> field($model, 'username') ?> field($model, 'new_password')->passwordInput() ?>
field($model, 'current_password')->passwordInput() ?>
'btn btn-block btn-success']) ?>
enableTwoFactorAuthentication): ?>

.

$model->getUser()->id], [ 'id' => 'disable_tf_btn', 'class' => 'btn btn-warning ' . ($model->getUser()->auth_tf_enabled ? '' : 'hide'), 'data-method' => 'post', 'data-confirm' => Yii::t('usuario', 'This will disable two factor authentication. Are you sure?'), ] ) ?> 'enable_tf_btn', 'class' => 'btn btn-info ' . ($model->getUser()->auth_tf_enabled ? 'hide' : ''), 'data-toggle' => 'modal', 'data-target' => '#tfmodal' ] ) ?>
module->allowAccountDelete): ?>

. . .

'btn btn-danger', 'data-method' => 'post', 'data-confirm' => Yii::t('usuario', 'Are you sure? There is no going back'), ] ) ?>
enableTwoFactorAuthentication): ?> $model->getUser()->id]); $verify = Url::to(['two-factor-enable', 'id' => $model->getUser()->id]); $js = <<registerJs($js); ?>