checkBoxControlGroup

Issue #13 resolved
Spyros Solda created an issue

checkboxControlGroup creates instead of the form->error part something like this:

<input error="&lt;p id=&quot;User_policy_em_&quot; style=&quot;display:none&quot; class=&quot;help-block&quot;&gt;&lt;/p&gt;" name="User[policy]" id="User_policy" value="1" type="checkbox">

Comments (5)

  1. Spyros Solda reporter

    This is the form

    <?php
    $form = $this->beginWidget('BsActiveForm', array(
        'id' => 'signUp-form',
        'layout' => BSHtml::FORM_LAYOUT_VERTICAL,
        'htmlOptions' => array('role' => 'form'),
        'enableClientValidation' => true,
        'clientOptions' => array(
            'validateOnSubmit' => true,
        ),
            ));
    ?>
    
    <?php echo $form->textFieldControlGroup($model, 'username', array('placeholder' => 'Username')); ?>
    <?php echo $form->emailFieldControlGroup($model, 'email', array('placeholder' => 'Email')); ?>
    <?php echo $form->passwordFieldControlGroup($model, 'password', array('placeholder' => 'Password')); ?>
    <?php echo $form->checkboxControlGroup($model, 'policy'); ?>
    <?php echo BSHtml::submitButton('Sign Up', array('color' => BSHtml::BUTTON_COLOR_PRIMARY)); ?>
    <?php $this->endWidget(); ?>
    
  2. Log in to comment