use yii\widgets\DetailView;
/**
 * @var yii\web\View $this
 * @var bariew\templateAbstractModule\models\Config $model
 */
$this->title = Yii::t('modules/template', 'Template#{number}', ['number' => $model->id]);
$this->params['breadcrumbs'][] = ['label' => Yii::t('modules/template', 'Templates'), 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="config-view">

    <h1><?php 
echo Html::encode($this->title);
?>
</h1>

    <p>
        <?php 
echo Html::a(Yii::t('modules/template', 'Update'), ['update', 'id' => $model->id], ['class' => 'btn btn-primary']);
?>
        <?php 
echo Html::a(Yii::t('modules/template', 'Delete'), ['delete', 'id' => $model->id], ['class' => 'btn btn-danger', 'data' => ['confirm' => Yii::t('modules/template', 'Are you sure you want to delete this log?'), 'method' => 'post']]);
?>
    </p>

    <?php 
echo DetailView::widget(['model' => $model, 'attributes' => [\bariew\yii2Tools\helpers\GridHelper::listFormat($model, 'type'), 'address', \bariew\yii2Tools\helpers\GridHelper::arrayFormat($model, 'subject'), \bariew\yii2Tools\helpers\GridHelper::arrayFormat($model, 'content'), \bariew\yii2Tools\helpers\GridHelper::listFormat($model, 'model_class'), \bariew\yii2Tools\helpers\GridHelper::listFormat($model, 'model_event')]]);
?>

</div>
<?php

use yii\helpers\Html;
use yii\grid\GridView;
/**
 * @var yii\web\View $this
 * @var yii\data\ActiveDataProvider $dataProvider
 * @var bariew\templateAbstractModule\models\ConfigSearch $searchModel
 */
$this->title = Yii::t('modules/template', 'Templates');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="config-index">

    <h1>
        <?php 
echo Html::encode($this->title);
?>
        <?php 
echo Html::a(Yii::t('modules/template', 'Create Template'), ['create'], ['class' => 'btn btn-success pull-right']);
?>
    </h1>

    <?php 
echo GridView::widget(['dataProvider' => $dataProvider, 'filterModel' => $searchModel, 'columns' => [\bariew\yii2Tools\helpers\GridHelper::listFormat($searchModel, 'type'), 'address', \bariew\yii2Tools\helpers\GridHelper::arrayFormat($searchModel, 'subject'), \bariew\yii2Tools\helpers\GridHelper::listFormat($searchModel, 'model_class'), \bariew\yii2Tools\helpers\GridHelper::listFormat($searchModel, 'model_event'), ['class' => 'yii\\grid\\ActionColumn']]]);
?>

</div>