Beispiel #1
0
echo $form->field($model, 'password')->passwordInput();
?>
                <?php 
echo $form->field($model, 'rememberMe')->checkbox();
?>
                <div style="color:#999;margin:1em 0">
                    <?php 
echo Yii::t('users', 'YOU_CAN_RESET_PASSWORD', ['url' => Url::toRoute('/user/user/request-password-reset')]);
?>
                </div>
                <div class="form-group">
                    <?php 
echo Html::submitButton(Yii::t('users', 'LOGIN'), ['class' => 'btn btn-primary', 'name' => 'login-button']);
?>
                </div>
            <?php 
ActiveForm::end();
?>
        </div>
        <div class="col-lg-7">
            <p><?php 
echo Yii::t('users', 'YOU_CAN_ENTER_VIA_SOCIAL_NETWORKS');
?>
</p>
            <?php 
echo AuthChoice::widget(['baseAuthUrl' => ['/user/auth/index'], 'clientCssClass' => 'col-xs-1']);
?>
        </div>
    </div>
</div>
use yii\bootstrap\ActiveForm;
use vovmog\users\components\AuthChoice;
?>
<div class="panel panel-default">
    <div class="panel-heading"><?php 
echo Yii::t('users', 'AUTHORISATION');
?>
</div>
    <div class="panel-body">
        <p><?php 
echo Yii::t('users', 'VIA_SOCIAL_NETWORKS');
?>
</p>
        <p>
            <?php 
echo AuthChoice::widget(['baseAuthUrl' => ['/user/auth/index']]);
?>
        </p>
        <p><?php 
echo Yii::t('users', 'OR_BY_PASSWORD');
?>
</p>

        <?php 
$form = ActiveForm::begin(['id' => 'login-widget-form', 'action' => Url::toRoute('/login')]);
?>
            <div class="row">
                <div class="col-xs-6 col-sm-12">
                    <?php 
echo $form->field($model, 'email');
?>