<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>
<?php $form = ActiveForm::begin(['id' => 'Video', 'layout' => 'horizontal', 'enableClientValidation' => false]); ?> <div class=""> <?php echo $form->errorSummary($model); ?> <?php $this->beginBlock('main'); ?> <p> <?php echo $form->field($model, 'video_gallery_id')->dropDownList(\yii\helpers\ArrayHelper::map(dmstr\modules\news\models\VideoGallery::find()->all(), 'id', 'name'), ['prompt' => Yii::t('app', 'Select')]); ?> <?php echo $form->field($model, 'title')->textInput(['maxlength' => 255]); ?> <?php echo $form->field($model, 'youtube_url')->textInput(['maxlength' => 255]); ?> <?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']]); ?> </p> <?php $this->endBlock(); ?>