<?php /** * @copyright Copyright © Kartik Visweswaran, communityii, 2014 - 2015 * @package communityii/yii2-user * @version 1.0.0 * @see https://github.com/communityii/yii2-user */ use comyii\user\widgets\LoginForm; use comyii\user\widgets\Logo; /** * @var yii\web\View $this * @var LoginForm $model * @var string $loginTitle * @var string $authTitle * @var bool $hasSocialAuth */ ?> <div class="text-center"> <?php echo Logo::widget(); ?> </div> <div class="y2u-box"> <?php echo LoginForm::widget(['model' => $model, 'title' => $loginTitle, 'hasSocialAuth' => $hasSocialAuth, 'authTitle' => $authTitle]); ?> </div>
use comyii\user\Module; use comyii\user\widgets\Logo; use kartik\helpers\Html; use kartik\form\ActiveForm; /** * @var yii\web\View $this * @var comyii\user\models\InstallForm $model * @var kartik\form\ActiveForm $form */ $model->action = Module::SCN_ACCESS; $hints = $model->attributeHints(); $this->params['install-mode'] = true; ?> <div class="text-center"> <?php echo Logo::widget(['title' => "communityii\\yii2-user"]); ?> </div> <p class="text-info text-center"> <b><?php echo Yii::t('user', 'Welcome!'); ?> </b> <?php echo Yii::t('user', 'You are 2 steps away to start using the yii2-user module.'); ?> </p> <?php $form = ActiveForm::begin(); ?> <div class="y2u-box">