refactored ActiveField.
This commit is contained in:
parent
7680b40168
commit
35ab0787c7
@ -29,9 +29,9 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-5">
|
<div class="col-lg-5">
|
||||||
<?php $form = ActiveForm::begin(array('id' => 'contact-form')); ?>
|
<?php $form = ActiveForm::begin(array('id' => 'contact-form')); ?>
|
||||||
<?php echo $form->field($model, 'name')->textInput(); ?>
|
<?php echo $form->field($model, 'name'); ?>
|
||||||
<?php echo $form->field($model, 'email')->textInput(); ?>
|
<?php echo $form->field($model, 'email'); ?>
|
||||||
<?php echo $form->field($model, 'subject')->textInput(); ?>
|
<?php echo $form->field($model, 'subject'); ?>
|
||||||
<?php echo $form->field($model, 'body')->textArea(array('rows' => 6)); ?>
|
<?php echo $form->field($model, 'body')->textArea(array('rows' => 6)); ?>
|
||||||
<?php echo $form->field($model, 'verifyCode')->widget(Captcha::className(), array(
|
<?php echo $form->field($model, 'verifyCode')->widget(Captcha::className(), array(
|
||||||
'options' => array('class' => 'form-control'),
|
'options' => array('class' => 'form-control'),
|
||||||
|
@ -18,7 +18,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-lg-3">
|
<div class="col-lg-3">
|
||||||
<?php $form = ActiveForm::begin(array('id' => 'login-form')); ?>
|
<?php $form = ActiveForm::begin(array('id' => 'login-form')); ?>
|
||||||
<?php echo $form->field($model, 'username')->textInput(); ?>
|
<?php echo $form->field($model, 'username'); ?>
|
||||||
<?php echo $form->field($model, 'password')->passwordInput(); ?>
|
<?php echo $form->field($model, 'password')->passwordInput(); ?>
|
||||||
<?php echo $form->field($model, 'rememberMe')->checkbox(); ?>
|
<?php echo $form->field($model, 'rememberMe')->checkbox(); ?>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
Loading…
Reference in New Issue
Block a user