<p> <?php echo $form->field($model, 'photo_gallery_id')->dropDownList(\yii\helpers\ArrayHelper::map(dmstr\modules\news\models\ImageGallery::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Select')]); ?> <?php echo $form->field($model, 'image')->widget('hrzg\\moxiecode\\moxiemanager\\widgets\\FilePicker', ["model" => $model, "attribute" => "image", "options" => ["class" => "form-control", "placeholder" => \Yii::t("app", "Click Select to insert a file..."), "readonly" => true, "edit" => true, "preview" => true]]); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => 45]); ?> <?php echo $form->field($model, 'text_html')->widget(\dosamigos\tinymce\TinyMce::className(), ['options' => ['rows' => 15, 'paste_remove_styles' => true], 'language' => 'de', 'clientOptions' => ['forced_root_block' => 'div', 'plugins' => ["advlist autolink lists link charmap print preview anchor", "searchreplace visualblocks fullscreen", "insertdatetime media table contextmenu paste", "image media preview code"], 'toolbar' => "undo redo | styleselect | bold italic | alignleft aligncenter alignright alignjustify | bullist numlist outdent indent | link image | pastetext", 'menubar' => false]]); ?> <?php echo $form->field($model, 'published_at')->widget(\zhuravljov\widgets\DateTimePicker::className(), ['options' => ['class' => 'form-control', 'style' => 'width:145px;'], 'clientOptions' => ['autoclose' => true, 'todayHighlight' => true, 'format' => 'yyyy-mm-dd hh:ii']]); ?> <?php echo $form->field($model, 'source')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'tags')->textInput(['maxlength' => 45]); ?> </p> <?php $this->endBlock(); ?> <?php echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'Image', 'content' => $this->blocks['main'], 'active' => true]]]); ?>
$this->beginBlock('main'); ?> <p> <?php echo $form->field($model, 'customer_id')->dropDownList(\yii\helpers\ArrayHelper::map(app\modules\sakila\models\Customer::find()->all(), 'customer_id', 'label'), ['prompt' => Yii::t('app', 'Select')]); ?> <?php echo $form->field($model, 'staff_id')->dropDownList(\yii\helpers\ArrayHelper::map(app\modules\sakila\models\Staff::find()->all(), 'staff_id', 'label'), ['prompt' => Yii::t('app', 'Select')]); ?> <?php echo $form->field($model, 'amount')->textInput(['maxlength' => 5]); ?> <?php echo $form->field($model, 'payment_date')->widget(\zhuravljov\widgets\DateTimePicker::className(), ['options' => ['class' => 'form-control'], 'clientOptions' => ['autoclose' => true, 'todayHighlight' => true]]); ?> <?php echo $form->field($model, 'rental_id')->dropDownList(\yii\helpers\ArrayHelper::map(app\modules\sakila\models\Rental::find()->all(), 'rental_id', 'rental_id'), ['prompt' => Yii::t('app', 'Select')]); ?> </p> <?php $this->endBlock(); ?> <?php echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'Payment', 'content' => $this->blocks['main'], 'active' => true]]]); ?> <hr/> <?php