</div> </div> <!--Left column END--> <!--Right column START--> <div class="col-md-3"> <div class="panel panel-default"> <div class="panel-body"> <div id="thumbnail-container"><?php echo $model->getThumbnailImage('original'); ?> </div> <?php echo $form->field($model, 'thumbnail')->widget(FileInput::className(), ['thumb' => 'original', 'template' => '<div class="input-group">{input}<span class="btn-group">{button}{reset-button}</span></div>', 'pasteData' => FileInput::DATA_ID, 'buttonName' => Module::t('main', 'Set thumbnail'), 'imageContainer' => '#thumbnail-container']); ?> <?php echo $form->field($model, 'publish_status')->dropDownList(Post::getStatuses()); ?> <?php if ($model->type->show_category) { ?> <?php echo $form->field($model, 'category_id')->dropDownList(Category::getList()); ?> <?php } ?>
<div class="panel-heading"> <?php echo Html::decode(Yii::t('Goods', 'brand_form_title')); ?> </div> <div class="panel-body"> <?php echo $form->field($model, 'name')->textInput(['maxlength' => true])->hint(Yii::t('Goods', 'brand_form_name_hint')); ?> <?php echo $form->field($model, 'url')->textInput(['maxlength' => true])->hint(Yii::t('Goods', 'brand_form_url_hint')); ?> <?php echo $form->field($model, 'logo')->widget(FileInput::className(), ['buttonTag' => 'button', 'buttonName' => '<i class="fa fa-image"></i> 选择图片', 'buttonOptions' => ['class' => 'btn btn-default'], 'options' => ['class' => 'form-control'], 'template' => '<div class="input-group col-sm-8">{input}<span class="input-group-btn">{button}</span></div>', 'imageContainer' => '#js-images-container']); ?> <div class="form-group"> <label class="col-sm-2 control-label" for="brand-logo"></label> <div class="col-sm-10" id="js-images-container"> <?php if (!$model->isNewRecord) { ?> <?php echo Html::img($model->logo, ['title' => $model->name]); ?> <?php } ?> </div>