Пример #1
0
<?php 
$form = $this->beginWidget('booster.widgets.TbActiveForm', array('id' => 'commercial-form', 'type' => 'horizontal'));
?>

<fieldset>
    <?php 
echo $form->errorSummary($model);
?>
    
    <?php 
echo $form->textFieldGroup($model, 'name', array('wrapperHtmlOptions' => array('class' => 'col-sm-5')));
?>

    <?php 
echo $form->dropDownListGroup($model, 'yeshuv_id', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('data' => Yeshuv::model()->getYeshuvOptions(), 'htmlOptions' => array())));
?>
    

    <?php 
echo $form->textFieldGroup($model, 'file_name', array('wrapperHtmlOptions' => array('class' => 'col-sm-5'), 'widgetOptions' => array('htmlOptions' => array('onClick' => 'js:openKCFinder(this)', 'style' => 'direction:ltr', 'readonly' => true, 'class' => 'default-cursor'))));
?>
</fieldset>        

<div class="form-actions">
        <?php 
$this->widget('booster.widgets.TbButton', array('buttonType' => 'submit', 'context' => 'primary', 'label' => YII::t('default', 'Submit')));
?>
        <?php 
$this->widget('booster.widgets.TbButton', array('buttonType' => 'reset', 'label' => YII::t('default', 'Reset')));
?>
Пример #2
0
 public function getYeshuvOptions()
 {
     return CHtml::listData(Yeshuv::model()->findAll(array('order' => 'name_heb')), 'id', 'name_heb');
 }