From 1b93fcb58d4b37aad08e8a805e31d4120fef9f10 Mon Sep 17 00:00:00 2001 From: Qiang Xue Date: Wed, 19 Jun 2013 08:37:11 -0400 Subject: [PATCH] Added ActiveForm::mfield(). --- views/site/contact.php | 11 ++++++----- views/site/login.php | 11 +++++++---- 2 files changed, 13 insertions(+), 9 deletions(-) diff --git a/views/site/contact.php b/views/site/contact.php index 14a82bc..9c0b6b0 100644 --- a/views/site/contact.php +++ b/views/site/contact.php @@ -24,14 +24,15 @@ $this->params['breadcrumbs'][] = $this->title;

$model, 'options' => array('class' => 'form-horizontal'), 'fieldConfig' => array('inputOptions' => array('class' => 'input-xlarge')), )); ?> - field($model, 'name')->textInput(); ?> - field($model, 'email')->textInput(); ?> - field($model, 'subject')->textInput(); ?> - field($model, 'body')->textArea(array('rows' => 6)); ?> - field($model, 'verifyCode')->widget(Captcha::className(), array( + field('name')->textInput(); ?> + field('email')->textInput(); ?> + field('subject')->textInput(); ?> + field('body')->textArea(array('rows' => 6)); ?> + field('verifyCode')->widget(Captcha::className(), array( 'options' => array('class' => 'input-medium'), )); ?>
diff --git a/views/site/login.php b/views/site/login.php index f676b98..98ebbf6 100644 --- a/views/site/login.php +++ b/views/site/login.php @@ -14,10 +14,13 @@ $this->params['breadcrumbs'][] = $this->title;

Please fill out the following fields to login:

- array('class' => 'form-horizontal'))); ?> - field($model, 'username')->textInput(); ?> - field($model, 'password')->passwordInput(); ?> - field($model, 'rememberMe')->checkbox(); ?> + $model, + 'options' => array('class' => 'form-horizontal'), +)); ?> + field('username')->textInput(); ?> + field('password')->passwordInput(); ?> + field('rememberMe')->checkbox(); ?>
'btn btn-primary')); ?>