Location A Label Of An Input Object (Form Builder)

Hello everyone!

Could you explain me how can I do customize location a label of an input object in the Form Builder, so that the label would display in front of the input object? [label]-[obj]

if it’s possible…

Here is my code where I want to do it:


    

'elements'=>array(

        'yearFrom'=>array(

	    'id'=>'yearFrom',

            'type'=>'dropdownlist',

            'length'=>100,

            'maxlength'=>32,

            'label' => 'Year:',

            'items' => OModel::model()->getYearOption(),

            'ajax' => array(

               'type' => 'POST', 

               'url' => CController::createUrl('/order/brand'),

               'data' => array('year' => 'js:$(this).val()'),

               'update'=>'#brand' 

            ) 

        ),

...

Thanks!

Does this help?

Yes, it does,thanks!

I just thought, maybe there are some parameters in the form builder directly.

I don’t think there are, but if you use the YiiBooster or Bootstrap extensions, various form layouts are included by default, including the layout you’re looking for.

If you want to use a Bootstrap theme for your site, this is a good way to go.

thanks a lot!

I have gone to smoke the Bootstrap )