<?php $form = ActiveForm::begin(['id' => 'ImageGallery', 'layout' => 'horizontal', 'enableClientValidation' => false]); ?> <div class=""> <?php echo $form->errorSummary($model); ?> <?php $this->beginBlock('main'); ?> <p> <?php echo $form->field($model, 'news_id')->dropDownList(\yii\helpers\ArrayHelper::map(dmstr\modules\news\models\News::find()->all(), 'id', 'title'), ['prompt' => Yii::t('app', 'Select')]); ?> <?php echo $form->field($model, 'name')->textInput(['maxlength' => 100]); ?> </p> <?php $this->endBlock(); ?> <?php echo Tabs::widget(['encodeLabels' => false, 'items' => [['label' => 'ImageGallery', 'content' => $this->blocks['main'], 'active' => true]]]); ?> <hr/> <?php
<div class="news-default-index"> <?php echo dmstr\modules\news\widgets\DashboardWidget::widget(['box_info' => dmstr\modules\news\models\News::find()->count(), 'box_title' => 'News', 'box_style' => 'light-blue-gradient', 'bg_icon' => 'ion-android-drawer', 'link_text' => 'Verwalten', 'rel_url' => '../news/news', 'col_xs' => '12', 'col_md' => '6', 'col_lg' => '4']); ?> <?php echo dmstr\modules\news\widgets\DashboardWidget::widget(['box_info' => dmstr\modules\news\models\TextBlock::find()->count(), 'box_title' => 'TextBlock', 'box_style' => 'light-blue-gradient', 'bg_icon' => 'ion-android-drawer', 'link_text' => 'Verwalten', 'rel_url' => '../news/text-block', 'col_xs' => '12', 'col_md' => '6', 'col_lg' => '4']); ?> <?php echo dmstr\modules\news\widgets\DashboardWidget::widget(['box_info' => dmstr\modules\news\models\VideoGallery::find()->count(), 'box_title' => 'VideoGallery', 'box_style' => 'light-blue-gradient', 'bg_icon' => 'ion-android-drawer', 'link_text' => 'Verwalten', 'rel_url' => '../news/video-gallery', 'col_xs' => '12', 'col_md' => '6', 'col_lg' => '4']); ?> <?php echo dmstr\modules\news\widgets\DashboardWidget::widget(['box_info' => dmstr\modules\news\models\ImageGallery::find()->count(), 'box_title' => 'ImageGallery', 'box_style' => 'light-blue-gradient', 'bg_icon' => 'ion-android-drawer', 'link_text' => 'Verwalten', 'rel_url' => '../news/image-gallery', 'col_xs' => '12', 'col_md' => '6', 'col_lg' => '4']); ?> </div>