Example #1
0
                <?php 
echo $form->field($model, 'password_repeat')->passwordInput(['placeholder' => Yii::t('podium/view', 'Repeat Password')])->label(false);
?>
            </div>
            <div class="form-group">
                <?php 
echo $form->field($model, 'tos')->checkBox()->label('<small>' . Yii::t('podium/view', 'I have read and agree to the Terms and Conditions') . ' <span class="glyphicon glyphicon-circle-arrow-right"></span></small>');
?>
            </div>
<?php 
if (Config::getInstance()->get('use_captcha')) {
    if (Config::getInstance()->get('recaptcha_sitekey') !== '' && Config::getInstance()->get('recaptcha_secretkey') !== '') {
        ?>
            <div class="form-group">
                <?php 
        echo $form->field($model, 'captcha')->widget(Recaptcha::className(), ['clientOptions' => ['data-sitekey' => Config::getInstance()->get('recaptcha_sitekey')]]);
        ?>
            </div>
<?php 
    } else {
        ?>
            <div class="form-group">
                <?php 
        echo $form->field($model, 'captcha')->widget(Captcha::classname(), ['captchaAction' => ['account/captcha'], 'options' => ['class' => 'form-control', 'placeholder' => Yii::t('podium/view', 'Type the CAPTCHA text'), 'data-container' => 'body', 'data-toggle' => 'popover', 'data-placement' => 'right', 'data-content' => Yii::t('podium/view', 'Type the CAPTCHA text displayed above. Click the image to generate another CAPTCHA code.'), 'data-trigger' => 'focus']]);
        ?>
            </div>
<?php 
    }
}
?>
            <?php 
Example #2
0
			</div>
			<div class="form-group">
				<?php 
echo $form->field($model, 'password')->passwordInput(['class' => 'form-control']);
?>
			</div>
			<div class="checkbox">
				<?php 
echo $form->field($model, 'rememberMe')->checkbox();
?>
			</div>
			<hr>

			<div class="form-group">
				<?php 
echo $form->field($model, 'captcha')->widget(Recaptcha::className(), ['clientOptions' => ['data-sitekey' => Yii::$app->config->get(Enum::RECAPTCHA_SITE_KEY)]]);
?>
			</div>

			<hr/>

			<div class="row">
				<div class="col-md-4">
					<?php 
echo Html::submitButton(Yii::t('user', 'Sign In'), ['class' => 'btn btn-large btn-primary']);
?>
				</div>

				<?php 
if ($canRecoverPassword == 1) {
    ?>