コード例 #1
0
ファイル: update.php プロジェクト: lzpfmh/dotplant2
<?php 
$form = ActiveForm::begin();
?>
<div class="row">
    <div class="col-xs-12 col-sm-6 col-md-6 col-lg-6">

        <?php 
BackendWidget::begin(['icon' => 'tag', 'title' => Yii::t('app', 'Slider'), 'footer' => $this->blocks['submit']]);
?>
        <?php 
echo $form->field($model, 'name')->textInput(['maxlength' => 255]);
?>

        <?php 
echo $form->field($model, 'slider_handler_id')->dropDownList(\app\components\Helper::getModelMap(\app\models\SliderHandler::className(), 'id', 'name'));
?>

        <?php 
echo $form->field($model, 'image_width');
?>
        <?php 
echo $form->field($model, 'image_height');
?>
        <?php 
echo $form->field($model, 'resize_big_images')->checkbox();
?>
        <?php 
echo $form->field($model, 'resize_small_images')->checkbox();
?>