Exemple #1
0
<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>
Exemple #2
0
    <?php 
$form = ActiveForm::begin(['id' => 'Image', 'layout' => 'horizontal', 'enableClientValidation' => false]);
?>

    <div class="">
        <?php 
echo $form->errorSummary($model);
?>
        <?php 
$this->beginBlock('main');
?>

        <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]);