<span class="label label-info"> <?php echo Yii::t('module_slider', 'Supported file: {supportExt}.', array('{supportExt}' => $model->supportExt)) . ''; ?> </span> </div> <?php echo $form->fileField($model, 'upload_img'); ?> <?php echo $form->error($model, 'upload_img'); ?> </div> <?php $bgUrl = Themes::getBgUrl($model->bg_image); if ($bgUrl) { echo CHtml::image($bgUrl, '', array('class' => 'width200')); echo ' ' . CHtml::link(tc('Delete'), array('deleteImg', 'id' => $model->id), array('class' => 'btn btn-mini')); } ?> <div class="rowold buttons"> <?php $this->widget('bootstrap.widgets.TbButton', array('buttonType' => 'submit', 'type' => 'primary', 'icon' => 'ok white', 'label' => $model->isNewRecord ? tc('Add') : tc('Save'))); ?> </div> <?php $this->endWidget(); ?>