Added ActiveForm::mfield().
This commit is contained in:
parent
0ff3347548
commit
1b93fcb58d
@ -24,14 +24,15 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php $form = ActiveForm::begin(array(
|
<?php $form = ActiveForm::begin(array(
|
||||||
|
'model' => $model,
|
||||||
'options' => array('class' => 'form-horizontal'),
|
'options' => array('class' => 'form-horizontal'),
|
||||||
'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')),
|
'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')),
|
||||||
)); ?>
|
)); ?>
|
||||||
<?php echo $form->field($model, 'name')->textInput(); ?>
|
<?php echo $form->field('name')->textInput(); ?>
|
||||||
<?php echo $form->field($model, 'email')->textInput(); ?>
|
<?php echo $form->field('email')->textInput(); ?>
|
||||||
<?php echo $form->field($model, 'subject')->textInput(); ?>
|
<?php echo $form->field('subject')->textInput(); ?>
|
||||||
<?php echo $form->field($model, 'body')->textArea(array('rows' => 6)); ?>
|
<?php echo $form->field('body')->textArea(array('rows' => 6)); ?>
|
||||||
<?php echo $form->field($model, 'verifyCode')->widget(Captcha::className(), array(
|
<?php echo $form->field('verifyCode')->widget(Captcha::className(), array(
|
||||||
'options' => array('class' => 'input-medium'),
|
'options' => array('class' => 'input-medium'),
|
||||||
)); ?>
|
)); ?>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
|
@ -14,10 +14,13 @@ $this->params['breadcrumbs'][] = $this->title;
|
|||||||
|
|
||||||
<p>Please fill out the following fields to login:</p>
|
<p>Please fill out the following fields to login:</p>
|
||||||
|
|
||||||
<?php $form = ActiveForm::begin(array('options' => array('class' => 'form-horizontal'))); ?>
|
<?php $form = ActiveForm::begin(array(
|
||||||
<?php echo $form->field($model, 'username')->textInput(); ?>
|
'model' => $model,
|
||||||
<?php echo $form->field($model, 'password')->passwordInput(); ?>
|
'options' => array('class' => 'form-horizontal'),
|
||||||
<?php echo $form->field($model, 'rememberMe')->checkbox(); ?>
|
)); ?>
|
||||||
|
<?php echo $form->field('username')->textInput(); ?>
|
||||||
|
<?php echo $form->field('password')->passwordInput(); ?>
|
||||||
|
<?php echo $form->field('rememberMe')->checkbox(); ?>
|
||||||
<div class="form-actions">
|
<div class="form-actions">
|
||||||
<?php echo Html::submitButton('Login', null, null, array('class' => 'btn btn-primary')); ?>
|
<?php echo Html::submitButton('Login', null, null, array('class' => 'btn btn-primary')); ?>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
Reference in New Issue
Block a user