index.php 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\grid\GridView;
  4. /* @var $this yii\web\View */
  5. /* @var $searchModel app\models\DocumentsToTheUserSearch */
  6. /* @var $dataProvider yii\data\ActiveDataProvider */
  7. $this->title = Yii::t('app','DocumentsToTheUser ID');
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <div class="documents-to-the-user-index">
  11. <!--<h1><?/*=Yii::t('app','menuToTheUser ID');*/?></h1>-->
  12. <p>
  13. <?= Html::a('Створити меню Користувачу', ['menu-to-the-user/index'], ['class' => 'btn btn-info']) ?>
  14. </p>
  15. <h1><?= Html::encode($this->title) ?></h1>
  16. <?php // echo $this->render('_search', ['model' => $searchModel]); ?>
  17. <p>
  18. <?= Html::a(Yii::t('app','Create Documents To The User'), ['create'], ['class' => 'btn btn-success']) ?>
  19. </p>
  20. <?= GridView::widget([
  21. 'dataProvider' => $dataProvider,
  22. 'filterModel' => $searchModel,
  23. 'columns' => [
  24. // ['class' => 'yii\grid\SerialColumn'],
  25. 'menu.menu_name',
  26. 'title',
  27. 'path',
  28. ['class' => 'yii\grid\ActionColumn'],
  29. ],
  30. ]); ?>
  31. </div>