Hi guys
I’ve got this little form with 4 different submit buttons:
<div class="form">
<?php
$form=$this->beginWidget('CActiveForm', array(
'id'=>'login-form',
'enableAjaxValidation'=>false,
'enableClientValidation'=>false,
'clientOptions'=>array(
'validateOnSubmit'=>true,
),
));
?>
<?php echo $form->errorSummary($loginModel); ?>
<div>
<?php echo $form->labelEx($loginModel,'usrF1_username'); ?>
<?php echo $form->textField($loginModel,'usrF1_username',
array('autocomplete' => 'on')); ?>
</div>
<div>
<?php echo $form->labelEx($loginModel,'usrF1_password'); ?>
<?php echo $form->passwordField($loginModel,'usrF1_password',
array('autocomplete' => 'off')); ?>
</div>
<!-- Buttons -->
<div>
<!-- Yii Booster Button Group -->
<?php
this->widget('common.extensions.bootstrap.widgets.TbButtonGroup', array(
'buttons'=>array(
array('label'=>'Submit', 'url' => Yii::app()->createUrl("site/login"),),
),
)); ?>
<!-- Yii Booster Single Button -->
<?php $this->widget('bootstrap.widgets.TbButton',array(
'label' => 'Submit', 'url' => Yii::app()->createUrl("site/login"),
)); ?>
<!-- Yii CHtml::link Button -->
<?php
echo CHtml::link('Submit','#', array('submit'=>$this->createUrl('site/login'),)
); ?>
<!-- Twitter Bootstrap Button -->
<div class="btn-toolbar">
<div class="btn-group">
<button class="btn">Submit</button>
</div>
</div>
</div>
<?php $this->endWidget(); ?>
</div>
All 4 buttons find the correct controller/action, but only the last 2 buttons (Yii CHtml and Twitter Bootstrap) results in the errorSummary being displayed.
With the first 2 buttons (Yii Booster), the errorSummary is not displayed.
Any ideas?
Thanx