Esempio n. 1
0
echo $form->error($model, 'alias');
?>
            </div>
        </div>
    </div>
    
    <div class="row form-group">
        <div class="col-3 form-collabel">
            <?php 
echo Yii::t('app', 'Поместить в');
?>
        </div>
        <div class="col-9">
            <?/*=$form->dropDownList($model,'parent_id', ShopCategories::model()->getAssocList(), array('class'=>'form-input')); */?>
            <?php 
echo CHtml::activeListBox($model, 'category_id', ShopCategories::getAssocList()->list, array('options' => ShopCategories::getAssocList()->listOptions, 'class' => 'form-input', 'size' => 0));
?>
        </div>
    </div>
    
    <div class="row form-group">
        <div class="col-3 form-collabel">
            <?php 
echo Yii::t('app', 'Цена');
?>
 <span class="required">*</span>
        </div>
        <div class="col-9">
            <?php 
echo $form->textField($model, 'price', array('class' => 'form-input'));
?>