use yii\data\ActiveDataProvider; use kartik\grid\GridView; use yii\helpers\Html; use yii\web\View; use yii\widgets\Breadcrumbs; use yarcode\i18n\models\SourceMessageSearch; use yarcode\i18n\backend\Module; $this->title = Module::t('Translations'); echo Breadcrumbs::widget(['links' => [$this->title]]); ?> <div class="message-index"> <h3><?php echo Html::encode($this->title); ?> </h3> <?php echo yii\bootstrap\Nav::widget(['items' => $menuItems, 'options' => ['class' => 'nav-tabs']]); ?> <?php echo GridView::widget(['filterModel' => $searchModel, 'dataProvider' => $dataProvider, 'columns' => [['attribute' => 'source', 'format' => 'raw', 'value' => function ($model, $index, $widget) { return Html::a($model->sourceMessage->message, ['update', 'id' => $model->sourceMessage->id], ['data' => ['pjax' => 0]]); }], ['class' => kartik\grid\EditableColumn::className(), 'attribute' => 'translation', 'editableOptions' => ['size' => 'md', 'placement' => \kartik\popover\PopoverX::ALIGN_TOP, 'inputType' => \kartik\editable\Editable::INPUT_TEXTAREA, 'formOptions' => ['action' => \yii\helpers\Url::to(['save-translate'])], 'pluginEvents' => ["editableSuccess" => "function(val) {\n var id = val.currentTarget.id;\n var row = \$('#'+id).closest('tr');\n row.next().find('.kv-editable-link').trigger('click').parent().find('.kv-editable-input').focus();\n }"]]], ['attribute' => 'category', 'value' => function ($data) { return $data->sourceMessage->category; }], ['attribute' => 'translationStatus', 'value' => function ($data) { return empty($data->translation) ? \Yii::t('app', 'no') : ''; }, 'filter' => ['yes' => \Yii::t('app', 'yes'), 'no' => \Yii::t('app', 'no')], 'contentOptions' => ['class' => 'text-center']], ['class' => 'kartik\\grid\\ActionColumn', 'template' => '{delete}']]]); ?> </div>
echo yii\helpers\Html::encode($this->title); ?> </title> <?php $this->head(); ?> </head> <body> <?php $this->beginBody(); ?> <div class="wrap"> <?php yii\bootstrap\NavBar::begin(app\base\Module::getNavBarConfig()); echo yii\bootstrap\Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => \app\modules\frontend\Module::getMenuItems()]); yii\bootstrap\NavBar::end(); ?> <div class="container middle-layout"> <div id="page-loading"> <div class="show-loading"></div> <div class="img-load"></div> </div> <?php echo $content; ?> </div> </div> <footer class="footer">
<h3 class="box-title"> จัดการประเภทเมนู </h3> <div class="box-tools"> <button type="button" class="btn btn-box-tool" data-widget="collapse"><i class="fa fa-minus"></i> </button> </div> </div> <div class="box-body no-padding"> <?php $menu = []; $menu[] = ['label' => 'ประเภททั้งหมด', 'encode' => false, 'url' => ['category/index']]; //$nav = new common\models\Navigate(); echo yii\bootstrap\Nav::widget(['options' => ['class' => 'nav nav-pills nav-stacked'], 'items' => $menu]); ?> </div> <!-- /.box-body --> </div> </div> <!-- /.col --> <div class="col-md-9"> <?php echo $content;
<?php use yii\helpers\Html; use yii\widgets\ListView; $this->title = $category->title; $this->params['breadcrumbs'][] = $this->title; $this->registerMetaTag(['name' => 'keywords', 'content' => $category->keywords]); $this->registerMetaTag(['name' => 'description', 'content' => $category->description]); ?> <h1><?php echo $this->title; ?> </h1> <?php echo yii\bootstrap\Nav::widget(['options' => ['class' => 'nav nav-tabs nav-justified'], 'items' => app\modules\category\models\Category::getMenuItems()]); ?> <div class="widget ads"> <?php echo ListView::widget(['dataProvider' => $dataProvider, 'layout' => "{items}\n{pager}", 'itemView' => '_index_item', 'options' => ['class' => 'blog'], 'itemOptions' => ['class' => 'blog-item', 'tag' => 'article']]); ?> </div>
</head> <body> <?php $this->beginBody(); ?> <div class="wrap frontend-wrapper"> <?php yii\bootstrap\NavBar::begin(app\base\Module::getNavBarConfig()); echo yii\bootstrap\Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => \app\modules\frontend\Module::getNavbarItems()]); yii\bootstrap\NavBar::end(); ?> <div class="container"> <div class="top-menu"> <?php echo yii\bootstrap\Nav::widget(['options' => ['class' => 'nav nav-tabs nav-justified'], 'items' => \app\modules\frontend\Module::getMenuItems()]); ?> </div> <div id="page-loading"> <div class="show-loading"></div> <div class="img-load"></div> </div> <div class="content"> <?php echo $content; ?> </div> </div> </div> <footer class="footer">