<?php /** * @var View $this * @var SourceMessage $model */ use yii\helpers\Html; use yii\web\View; use Zelenin\yii\modules\I18n\models\SourceMessage; use Zelenin\yii\modules\I18n\Module; use Zelenin\yii\SemanticUI\collections\Breadcrumb; use Zelenin\yii\SemanticUI\Elements; use Zelenin\yii\SemanticUI\widgets\ActiveForm; $this->title = Module::t('Update') . ': ' . $model->message; echo Breadcrumb::widget(['links' => [['label' => Module::t('Translations'), 'url' => ['index']], ['label' => $this->title]]]); ?> <div class="message-update"> <div class="message-form"> <?php echo Elements::header(Module::t('Source message'), ['class' => 'top attached']); ?> <?php echo Elements::segment(Html::encode($model->message), ['class' => 'bottom attached']); ?> <?php $form = ActiveForm::begin(); ?> <div class="field"> <div class="ui grid"> <?php foreach ($model->messages as $language => $message) {
$items = [['label' => 'Laporan Hasil Panen', 'url' => ['/harvest-plant-report/index']], ['label' => 'Laporan Alat Pertanian', 'url' => ['/harvest-tools-report/index']], ['label' => 'Laporan Pendidikan Petani', 'url' => ['/farmer-education-report/index']]]; $items = Mimin::filterRouteMenu($items); if (count($items) > 0) { $menuItems[] = ['label' => 'Laporan', 'items' => $items]; } $menuItems[] = ['label' => substr(Yii::$app->user->identity->username, 0, 10), 'items' => [['label' => 'Profile', 'url' => ['/site/profile']], ['label' => 'Logout', 'url' => ['/site/logout'], 'linkOptions' => ['data-method' => 'post']]]]; } echo Nav::widget(['options' => ['class' => 'navbar-nav navbar-right'], 'items' => $menuItems]); NavBar::end(); ?> <div class="ui container-fluid"> <div style="margin:65px 0 10px 0;"> <div style=""> <?php echo Breadcrumb::widget(['links' => isset($this->params['breadcrumbs']) ? $this->params['breadcrumbs'] : []]); ?> </div> <div class="ui blue piled segment"> <?php echo AlertBlock::widget(Yii::$app->params['alertBlockConfig']); ?> <?php echo $content; ?> </div> </div> </div> </div> <?php