index.php 1.21 KB
<?php

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

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

$this->title = 'Bus Stops';
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="bus-stop-index">

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

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

            'bus_stop_id',
            'road_id',
            'region_id',
            'settlement_id',
            'location_right',
            // 'location_left',
            // 'surface_type_id',
            // 'area_stop_availability',
            // 'area_land_availability',
            // 'pocket_availability',
            // 'toilet_availability',
            // 'year_build',
            // 'year_repair',
            // 'state_common_id',

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