fix views

This commit is contained in:
Antonio Ramirez
2016-12-11 00:56:05 +01:00
parent 005ab4f1b8
commit 1ebe58d2ce
25 changed files with 238 additions and 302 deletions

View File

@ -1,21 +1,11 @@
<?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\widgets\ActiveForm;
/*
/**
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var dektrium\user\models\RecoveryForm $model
* @var \Da\User\Form\RecoveryForm $model
*/
$this->title = Yii::t('user', 'Recover your password');
@ -28,11 +18,13 @@ $this->params['breadcrumbs'][] = $this->title;
<h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
</div>
<div class="panel-body">
<?php $form = ActiveForm::begin([
'id' => 'password-recovery-form',
'enableAjaxValidation' => true,
'enableClientValidation' => false,
]); ?>
<?php $form = ActiveForm::begin(
[
'id' => $model->formName(),
'enableAjaxValidation' => true,
'enableClientValidation' => false,
]
); ?>
<?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?>