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,22 +1,12 @@
<?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\User $model
* @var dektrium\user\models\Account $account
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var \Da\User\Model\User $model
* @var \Da\User\Model\SocialNetworkAccount $account
*/
$this->title = Yii::t('user', 'Sign in');
@ -37,9 +27,11 @@ $this->params['breadcrumbs'][] = $this->title;
) ?>:
</p>
</div>
<?php $form = ActiveForm::begin([
'id' => 'connect-account-form',
]); ?>
<?php $form = ActiveForm::begin(
[
'id' => $model->formName(),
]
); ?>
<?= $form->field($model, 'email') ?>

View File

@ -13,9 +13,10 @@ use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
* @var yii\web\View $this
* @var dektrium\user\models\User $user
* @var dektrium\user\Module $module
* @var yii\web\View $this
* @var \Da\User\Form\RegistrationForm $model
* @var \Da\User\Model\User $user
* @var \Da\User\Module $module
*/
$this->title = Yii::t('user', 'Sign up');
@ -28,17 +29,19 @@ $this->params['breadcrumbs'][] = $this->title;
<h3 class="panel-title"><?= Html::encode($this->title) ?></h3>
</div>
<div class="panel-body">
<?php $form = ActiveForm::begin([
'id' => 'registration-form',
'enableAjaxValidation' => true,
'enableClientValidation' => false,
]); ?>
<?php $form = ActiveForm::begin(
[
'id' => $model->formName(),
'enableAjaxValidation' => true,
'enableClientValidation' => false,
]
); ?>
<?= $form->field($model, 'email') ?>
<?= $form->field($model, 'username') ?>
<?php if ($module->enableGeneratingPassword == false): ?>
<?php if ($module->generatePasswords == false): ?>
<?= $form->field($model, 'password')->passwordInput() ?>
<?php endif ?>

View File

@ -1,20 +1,10 @@
<?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 dektrium\user\models\ResendForm $model
/**
* @var yii\web\View $this
* @var \Da\User\Form\ResendForm $model
*/
$this->title = Yii::t('user', 'Request new confirmation message');
@ -27,11 +17,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' => 'resend-form',
'enableAjaxValidation' => true,
'enableClientValidation' => false,
]); ?>
<?php $form = ActiveForm::begin(
[
'id' => $model->formName(),
'enableAjaxValidation' => true,
'enableClientValidation' => false,
]
); ?>
<?= $form->field($model, 'email')->textInput(['autofocus' => true]) ?>