Esempio n. 1
0
                <?php 
echo $form->field($model, 'passwordRepeat')->passwordInput();
?>

                <?php 
echo $form->field($model, 'captcha')->widget(\yii\captcha\Captcha::classname(), []);
?>

                <div class="form-group">
                    <?php 
echo Html::submitButton('Регистрация', ['class' => 'btn btn-primary', 'name' => 'signup-button']);
?>
                </div>

                <?php 
ActiveForm::end();
?>
            </div>

            <div class="ext-auth"><h4>Через социальные сети:</h4>
                <?php 
echo \app\components\widgets\AuthChoice::widget();
?>
            </div>

        </div>
        <div class="clear"></div>
    </div>
</div>
Esempio n. 2
0
                <?php 
    echo $form->field($model, 'rememberMe')->checkbox();
    ?>

                <div class="form-group">
                    <?php 
    echo Html::submitButton('Войти', ['class' => 'btn btn-primary', 'name' => 'login-button']);
    ?>
                </div>
            <?php 
    ActiveForm::end();
    ?>
                <div class="ext-auth-small">
                    <div style="text-align: center">Войти через социальные сети:</div>
                    <?php 
    echo \app\components\widgets\AuthChoice::widget(['inlineForm' => true]);
    ?>
                </div>
        </div></div>

    <?php 
}
?>

    <?php 
if (!Yii::$app->user->isGuest) {
    $user = Yii::$app->user->identity;
    echo Html::tag('div', 'Привет, ' . $user->username . '!');
    if ($user->status == User::STATUS_NOT_ACTIVE) {
        echo Html::a('Активировать', ['site/confirm-email']);
    }