Added empty line Yii textFieldRow

243 views
Skip to first unread message

Sardor Dushamov

unread,
Jul 23, 2013, 2:02:24 AM7/23/13
to yii-bo...@googlegroups.com
I created form with yii booster, but added one empty line before textFieldRow label.
There is my code:

    <div class="form">
        <?php
        $form=$this->beginWidget('bootstrap.widgets.TbActiveForm', array(
            'id'=>'location-form',
            'type'=>'horizontal',
        ));?>
   
        <fieldset>
            <pre><span class="note text-info"><?php echo Yii::t('Site', 'requiredFieldsHint'); ?></span></pre>
                <?php echo $form->textFieldRow($promocode,'code',
                array('maxlength'=>200,'id'=>'code'));?>
               
            <div id='username_availability_result'></div>
        </fieldset>
        <fieldset>
                <?php echo $form->textFieldRow($promocode,'code',array('maxlength'=>200,'id'=>'code'));?>
                <?php echo $form->textFieldRow($promocode,'code',array('maxlength'=>200,'id'=>'code'));?>
                <?php echo $form->textFieldRow($company,'isActive',array('maxlength'=>180,'id'=>'code'));?>
                <?php echo $form->textFieldRow($company,'name',array('maxlength'=>180,'id'=>'code'));?>            
                <?php echo $form->textFieldRow($company,'name',array('maxlength'=>180,'id'=>'code'));?>           
                <?php echo $form->textFieldRow($promocode,'code',array('maxlength'=>200,'id'=>'code'));?>
                <?php echo $form->textFieldRow($promocode,'code',array('maxlength'=>200,'id'=>'code'));?>
        </fieldset>   
   
        <div class="form-actions">
            <?php $this->widget('bootstrap.widgets.TbButton', array(
                'buttonType'=>'submit',
                'type'=>'primary',
                'label'=>Yii::t('actions', 'Submit'),
                'htmlOptions' => array('style'=>'align:center;padding: 4px 58px;'),
            ));
            ?>
        </div>
       <?php $this->endWidget(); ?>
    </div>

Result:

Reply all
Reply to author
Forward
0 new messages