diff --git a/frontend/views/bus-stop/index.php b/frontend/views/bus-stop/index.php index a94d8ce..67e0eb6 100644 --- a/frontend/views/bus-stop/index.php +++ b/frontend/views/bus-stop/index.php @@ -1,14 +1,15 @@ title = 'Bus Stops'; -$this->params['breadcrumbs'][] = $this->title; + $this->title = 'Bus Stops'; + $this->params[ 'breadcrumbs' ][] = $this->title; ?>
@@ -16,30 +17,60 @@ $this->params['breadcrumbs'][] = $this->title; render('_search', ['model' => $searchModel]); ?>

- 'btn btn-success']) ?> + 'btn btn-success' ]) ?>

$dataProvider, - 'filterModel' => $searchModel, - 'columns' => [ - ['class' => 'yii\grid\SerialColumn'], + 'filterModel' => $searchModel, + 'columns' => [ + [ 'class' => 'yii\grid\SerialColumn' ], + [ + 'attribute' => 'road_id', + 'value' => function($model) { + /** + * @var BusStop $model + */ + return $model->road->name; + }, + ], + [ + 'attribute' => 'region_id', + 'value' => function($model) { + /** + * @var BusStop $model + */ + return $model->region->name; + }, + ], + [ + 'attribute' => 'location_right', + 'value' => function($model) { + /** + * @var BusStop $model + */ + return $model->getRightString(); + }, + ], + [ + 'attribute' => 'location_left', + 'value' => function($model) { + /** + * @var BusStop $model + */ + return $model->getLeftString(); + }, + ], + [ + 'attribute' => 'state_common_id', + 'value' => function($model) { + /** + * @var BusStop $model + */ + return $model->stateCommon->value; + }, + ], - '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'], + [ 'class' => 'yii\grid\ActionColumn' ], ], ]); ?>
diff --git a/frontend/views/road-surface/index.php b/frontend/views/road-surface/index.php index 6bcc406..1f5a744 100644 --- a/frontend/views/road-surface/index.php +++ b/frontend/views/road-surface/index.php @@ -8,7 +8,7 @@ use yii\grid\GridView; /* @var $searchModel common\models\RoadSurfaceSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ -$this->title = 'Road Surfaces'; +$this->title = 'Покриття доріг'; $this->params['breadcrumbs'][] = $this->title; ?>
diff --git a/frontend/views/service-object/index.php b/frontend/views/service-object/index.php index 5a80f30..5edf659 100644 --- a/frontend/views/service-object/index.php +++ b/frontend/views/service-object/index.php @@ -8,7 +8,7 @@ /* @var $searchModel common\models\ServiceObjectSearch */ /* @var $dataProvider yii\data\ActiveDataProvider */ - $this->title = 'Service Objects'; + $this->title = 'Об\'єкти сервісу'; $this->params[ 'breadcrumbs' ][] = $this->title; ?>
-- libgit2 0.21.4