Esempio 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':
Esempio n. 2
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();
?>

Esempio n. 3
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>
Esempio n. 4
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">