Пример #1
0
                    <?php 
echo $form->field($model, 'password2')->passwordInput();
?>
                    <div class="hr-line"></div>

                    <div class="publish-ad-button">
                        <button class="btn form-submit" id="edit-submit" name="op" value="<?php 
echo \Yii::t('site', 'Publish Ad');
?>
" type="submit"><?php 
echo \Yii::t('site', 'Зарегистрироваться');
?>
</button>
                    </div>
                    <?php 
$form->end();
?>
                </div>
                <?php 
if (\Yii::$app->params['enableSocialAuth']) {
    ?>
                <div class="one_half social-links">
                    <div class="register-page-title">
                        <?php 
    echo \Yii::t('site', 'Войти через социальные сети');
    ?>
                    </div>

                        <?php 
    /**
     * Detect plugin. For use on Front End only.
Пример #2
0
        <h1><?php 
    echo yii\helpers\Html::encode($this->title);
    ?>
</h1>

        <?php 
    $form = yii\bootstrap\ActiveForm::begin(['id' => 'forgot-form', 'options' => ['class' => 'form-horizontal'], 'fieldConfig' => ['template' => "{label}\n<div class=\"col-lg-4\">{input}\n{hint}</div>\n<div class=\"col-lg-4\">{error}</div>", 'labelOptions' => ['class' => 'col-lg-1 control-label']]]);
    ?>

        <?php 
    echo $form->field($model, 'email')->hint(Yii::t('app', 'Enter your email. We\'ll send further instructions to recover your password'));
    ?>

        <div class="form-group">
            <div class="col-lg-offset-1 col-lg-11">
                <?php 
    echo yii\helpers\Html::submitButton(Yii::t('app', 'Send'), ['class' => 'btn btn-primary', 'name' => 'login-button']);
    ?>
            </div>
        </div>

        <?php 
    yii\bootstrap\ActiveForm::end();
    ?>
    <?php 
}
?>

</div>