Ejemplo n.º 1
0
                 <?php 
     echo Html::hiddenInput('change', 'password');
     ?>
                 <?php 
     echo $form->field($model, 'password')->passwordInput(['value' => '']);
     ?>
                 <?php 
     echo $form->field($model, 'pass1')->passwordInput(['value' => '']);
     ?>
                 <?php 
     echo $form->field($model, 'pass2')->passwordInput(['value' => '']);
     ?>
             </div>
             <div class="col-md-8">
                 <?php 
     echo $form->field($model, 'verifyCode')->widget(yii\captcha\Captcha::className(), ['captchaAction' => '/user/captcha', 'template' => '<div class="row"><div class="col-md-3">{image}</div><div class="col-md-3">{input}</div></div>', 'imageOptions' => ['alt' => '图片无法加载', 'title' => '点击换图', 'style' => 'cursor:pointer']]);
     ?>
                 <div class="form-group">
                     <?php 
     echo Html::submitButton('更 改', ['class' => 'btn btn-primary']);
     ?>
                 </div>
             </div>
             <?php 
     ActiveForm::end();
     ?>
 <?php 
     break;
 case 'mobile':
     break;
 case 'email':
Ejemplo n.º 2
0
                        <?php 
$attribute = 'password';
$name = $model->getAttributeLabel($attribute);
$input = Html::activePasswordInput($model, $attribute, ['enter' => 'totab', 'placeholder' => $name, 'autocomplete' => 'off']);
echo Html::label("<span></span>" . $input, Html::getInputId($model, $attribute), ['class' => 'clear']);
?>
                  
                    </li>
                    <li class="admin-caphe clear">
                        <?php 
$attribute = 'verifyCode';
$name = $model->getAttributeLabel($attribute);
$input = Html::activeTextInput($model, $attribute, ['enter' => 'totab', 'placeholder' => $name, 'autocomplete' => 'off']);
echo Html::label("<span></span>" . $input, Html::getInputId($model, $attribute), ['class' => 'clear']);
echo Html::beginTag('div');
echo yii\captcha\Captcha::widget(['name' => 'captchaimage', 'imageOptions' => ['id' => 'captchaImg', 'title' => '换一个', 'alt' => '换一个', 'style' => 'cursor:pointer;'], 'template' => '{image}']);
echo Html::endTag('div');
?>
                    </li>
                    <li class="error-message" <?php 
echo empty($message) ? '' : 'style="display: block;"';
?>
>
                        <?php 
echo $message;
?>
                    </li>
                    <li class="admin-submit">
                        <?php 
echo Html::submitInput(LsYii::gT('Login'), ['class' => 'btn btn-default']);
?>
Ejemplo n.º 3
0
    <?php 
echo $form->field($model, 'file')->fileInput()->hint('Send us a screenshot, it helps to solve Your problem!') . "</br>";
?>

    <?php 
echo $form->field($model, 'website')->hint('Please, input URL of Your site') . "</br>";
?>

    <?php 
echo $form->field($model, 'additionalServices')->checkboxlist(['Computer repairing', 'Web design', 'Hosting', 'Nothing'])->hint('Which of our additional services do You want to use?') . "</br>";
?>

    <?php 
echo $form->field($model, 'estimation')->hint('Please, estimate our service from 1 to 5') . "</br>";
?>

    <?php 
echo $form->field($model, 'verifyCode')->widget(yii\captcha\Captcha::className(), ['template' => '<div class="row><div class="col-xs-3">{image}</div><div class="col-xs-4">{input}</div></div>'])->hint('Push a button to renew') . "</br>";
?>

    <div class="form-group">
        <?php 
echo Html::submitButton('Send', ['class' => 'btn btn-primary']);
?>
    </div>

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

Ejemplo n.º 4
0
    $properties = Property::getForGroupId($group->id);
    ?>
            <?php 
    foreach ($properties as $property) {
        ?>
                <?php 
        echo $property->handler($form, $model->abstractModel, [], 'frontend_edit_view');
        ?>
            <?php 
    }
    ?>
        <?php 
}
?>

        <?php 
if ($useCaptcha) {
    echo $form->field($review, 'captcha')->widget(yii\captcha\Captcha::className(), ['template' => '<div class="row"><div class="col-lg-4">{image}</div><div class="col-lg-8">{input}</div></div>', 'captchaAction' => '/default/captcha']);
}
?>
        <div class="form-group no-margin">
            <?php 
echo Html::submitButton(Yii::t('app', 'Your review'), ['class' => 'btn btn-success']);
?>
        </div>
        <?php 
ActiveForm::end();
?>
    </div>
</div>
Ejemplo n.º 5
0
			<h2 class="login-title">
				<?php 
echo Html::encode($this->title);
?>
			</h2>
			<?php 
$form = ActiveForm::begin(['id' => 'form-login', 'layout' => 'horizontal', 'action' => 'index.php?r=login/login']);
?>
				<?php 
echo $form->field($model, 'username');
?>
				<?php 
echo $form->field($model, 'password')->passwordInput();
?>
				<?php 
echo $form->field($model, 'captcha')->widget(yii\captcha\Captcha::className(), ['captchaAction' => 'login/captcha']);
?>
				<?php 
echo $form->field($model, 'rememberme')->checkbox();
?>
				<div class="form-group">
					<label class="col-sm-offset-4"></label>
					<?php 
echo Html::submitButton('登录', ['class' => 'btn btn-primary btn-lg', 'name' => 'btn-login']);
?>
				</div>
			<?php 
ActiveForm::end();
?>
		</div>
		<div class="col-lg-3">