<?php $form = ActiveForm::begin(['id' => 'MemeVidmage', 'layout' => 'horizontal', 'enableClientValidation' => true, 'errorSummaryCssClass' => 'error-summary alert alert-error']); ?> <div class=""> <?php $this->beginBlock('main'); ?> <p> <?php echo $form->field($model, 'meme_id')->dropDownList(Meme::getMappedArray()); ?> <?php echo $form->field($model, 'vidmage_id')->dropDownList(Vidmage::getMappedArray()); ?> <?php echo $form->field($model, 'is_the_origin')->checkBox(); ?> <?php echo $form->field($model, 'likes')->textInput(); ?> </p> <?php $this->endBlock(); ?> <?php echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'MemeVidmage', 'content' => $this->blocks['main'], 'active' => true]]]); ?>
Vidmage Origin </label> <div class="col-sm-6"> <?php echo Select2::widget(['name' => 'memeVidmageOrigin', 'data' => Vidmage::getMappedArray(), 'value' => $model->originMemeVidmageAsArray, 'options' => ['placeholder' => 'Select Vidmage Origin ...', 'multiple' => false], 'pluginOptions' => ['tags' => false]]); ?> </div> </div> <div class="form-group"> <label class="control-label col-sm-3" for="meme-memevidmages"> Vidmages </label> <div class="col-sm-6"> <?php echo Select2::widget(['name' => 'memeVidmages', 'data' => Vidmage::getMappedArray(), 'value' => ArrayHelper::getColumn($model->notOriginMemeVidmages, 'vidmage_id'), 'options' => ['placeholder' => 'Select a Vidmage ...', 'multiple' => true], 'pluginOptions' => ['tags' => true]]); ?> </div> </div> <?php echo $form->field($model, 'description')->widget(Summernote::className(), ['clientOptions' => []]); ?> <?php echo $form->field($model, 'url_info')->textInput(['maxlength' => true]); ?> </p> <?php $this->endBlock(); ?>