fix formatting

This commit is contained in:
Antonio Ramirez
2016-12-14 02:50:12 +01:00
parent f3f4b31bb4
commit 3ba01b4674
140 changed files with 512 additions and 523 deletions

View File

@ -5,7 +5,7 @@ use yii\bootstrap\Alert;
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/**
/*
* @var $model \Da\User\Model\Assignment
* @var $availableItems string[]
*/
@ -16,7 +16,7 @@ use yii\widgets\ActiveForm;
<?= Alert::widget([
'options' => [
'class' => 'alert-success'
'class' => 'alert-success',
],
'body' => Yii::t('user', 'Assignments have been updated'),
]) ?>
@ -25,7 +25,7 @@ use yii\widgets\ActiveForm;
<?php $form = ActiveForm::begin([
'enableClientValidation' => false,
'enableAjaxValidation' => false,
'enableAjaxValidation' => false,
]) ?>
<?= Html::activeHiddenInput($model, 'user_id') ?>
@ -34,7 +34,7 @@ use yii\widgets\ActiveForm;
'data' => $availableItems,
'options' => [
'id' => 'items',
'multiple' => true
'multiple' => true,
],
]) ?>

View File

@ -13,7 +13,7 @@ use yii\helpers\Url;
use yii\widgets\ActiveForm;
use yii\helpers\Html;
/**
/*
* @var yii\web\View $this
* @var yii\widgets\ActiveForm $form
* @var dektrium\user\models\LoginForm $model
@ -24,13 +24,13 @@ use yii\helpers\Html;
<?php if (Yii::$app->user->isGuest): ?>
<?php $form = ActiveForm::begin([
'id' => 'login-widget-form',
'action' => Url::to(['/user/security/login']),
'enableAjaxValidation' => true,
'id' => 'login-widget-form',
'action' => Url::to(['/user/security/login']),
'enableAjaxValidation' => true,
'enableClientValidation' => false,
'validateOnBlur' => false,
'validateOnType' => false,
'validateOnChange' => false,
'validateOnBlur' => false,
'validateOnType' => false,
'validateOnChange' => false,
]) ?>
<?= $form->field($model, 'login')->textInput(['placeholder' => 'Login']) ?>
@ -44,7 +44,7 @@ use yii\helpers\Html;
<?php ActiveForm::end(); ?>
<?php else: ?>
<?= Html::a(Yii::t('user', 'Logout'), ['/user/security/logout'], [
'class' => 'btn btn-danger btn-block',
'data-method' => 'post'
'class' => 'btn btn-danger btn-block',
'data-method' => 'post',
]) ?>
<?php endif ?>