guild/backend/modules/document/views/document-template/index.php
2022-11-08 18:01:42 +03:00

36 lines
912 B
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel backend\modules\document\models\DocumentTemplateSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = 'Document Templates';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="document-template-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a('Create Document Template', ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'filterModel' => $searchModel,
'columns' => [
['class' => 'yii\grid\SerialColumn'],
'id',
'title',
'template_body:ntext',
['class' => 'yii\grid\ActionColumn'],
],
]); ?>
</div>