Exemplo n.º 1
0
?>
</h3>

        <div class="box-tools pull-right">
            <button class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-plus"></i></button>
        </div>
    </div>

    <?php 
$form = ActiveForm::begin(['action' => ['index'], 'method' => 'get', 'layout' => 'horizontal', 'fieldClass' => RadiataField::className()]);
?>

    <div class="box-body">

        <?php 
echo $form->field($model, 'locale')->dropDownList(Lang::getLangForDropDown(), ['prompt' => Yii::t('b/radiata/forms', 'Choose value')]);
?>

        <?php 
echo $form->field($model, 'place_id')->dropDownList(BannerPlace::getPlacesForDropDown(), ['prompt' => Yii::t('b/radiata/forms', 'Choose value')]);
?>

        <?php 
echo $form->field($model, 'date_start')->dateInput();
?>

        <?php 
echo $form->field($model, 'date_end')->dateInput();
?>

        <?php 
Exemplo n.º 2
0
?>

    <?php 
echo FieldHelper::showErrors($model);
?>

    <?php 
echo $form->field($model, 'title')->textInput(['maxlength' => true]);
?>

    <?php 
echo $form->field($model, 'place_id')->dropDownList(BannerPlace::getPlacesForDropDown(), ['prompt' => Yii::t('b/radiata/forms', 'Choose value')]);
?>

    <?php 
echo $form->field($model, 'locale')->dropDownList(Lang::getLangForDropDown(), ['prompt' => Yii::t('b/banner', 'All languages')]);
?>

    <?php 
echo $form->field($model, 'date_start')->dateInput();
?>

    <?php 
echo $form->field($model, 'date_end')->dateInput();
?>

    <?php 
echo $form->field($model, 'html')->textarea(['rows' => 6]);
?>

    <?php