Ejemplo n.º 1
0
        echo $form->field($model, 'description')->textarea(['class' => 'form-control input-sm', 'readonly' => 'readonly']);
        ?>
    <?php 
    }
}
?>

<?php 
if ($model->isImage() && $mode == 'modal') {
    ?>
    <div class="form-group<?php 
    echo $strictThumb ? ' hidden' : '';
    ?>
">
        <?php 
    echo Html::label(Yii::t('yee/media', 'Select image size'), 'image', ['class' => 'control-label']);
    ?>
        <?php 
    echo Html::dropDownList('url', $model->getThumbUrl($strictThumb), $model->getImagesList($this->context->module), ['class' => 'form-control input-sm']);
    ?>
        <div class="help-block"></div>
    </div>
<?php 
} else {
    ?>
    <?php 
    echo Html::hiddenInput('url', $model->url);
}
?>

<?php