index.php 1.13 KB
<?php

use yii\helpers\Html;
use yii\grid\GridView;

/* @var $this yii\web\View */
/* @var $searchModel common\models\RoadWidthSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */

$this->title = 'Road Widths';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="road-width-index">

    <h1><?= Html::encode($this->title) ?></h1>
    <?php // echo $this->render('_search', ['model' => $searchModel]); ?>

    <p>
        <?= Html::a('Create Road Width', ['create'], ['class' => 'btn btn-success']) ?>
    </p>
    <?= GridView::widget([
        'dataProvider' => $dataProvider,
        'filterModel' => $searchModel,
        'columns' => [
            ['class' => 'yii\grid\SerialColumn'],

            'road_width_id',
            'region_id',
            'road_id',
            'begin',
            'end',
            // 'width_roadside_left',
            // 'width_reverse_road',
            // 'width_strip',
            // 'width_roadway_forward',
            // 'width_roadside_right',
            // 'count_lane_left',
            // 'count_lane_right',

            ['class' => 'yii\grid\ActionColumn'],
        ],
    ]); ?>
</div>