Issue #23 resolved

Input add-ons (input-prepend) show on separate lines

PrplHaz4
created an issue

It appears that when you use the vertical form type, you cannot use input add-ons, as the "label" tag is generated in between the span and input tags.

{{{

!php

<div class="span3"> <div class="input-prepend"> <span class="add-on">$</span> <?php echo $form->textFieldRow($model,'amount',array('class'=>'input-small')); ?> </div> </div> }}}

renders: {{{

!php

<div class="span3"> <div class="input-prepend"> <span class="add-on">$</span> <label for="Share_amount" class="required">Amount <span class="required">*</span></label> <input class="input-small" name="Share[amount]" id="Share_amount" type="text" value="1.00"> <span class="help-inline" id="Share_amount_em_" style="display: none"></span> </div> </div> }}}

Comments (3)

  1. Log in to comment