4 use yii\widgets\DetailView;
6 /* @var $this yii\web\View */
7 /* @var $model app\models\Locations */
9 $this->title = $model->name;
10 $this->params[ 'breadcrumbs' ][] = [ 'label' => Yii::t('items', 'Items'), 'url' => [ 'items/index' ]];
11 $this->params[ 'breadcrumbs' ][] = [ 'label' => Yii::t('locations', 'Locations'), 'url' => [ 'index' ]];
12 $this->params[ 'breadcrumbs' ][] = $this->title;
13 \yii\web\YiiAsset::register($this);
15 <div class="locations-view">
17 <h1><?= Html::encode($this->title) ?></h1>
20 <?= Html::a(Yii::t('app', 'Update'), [ 'update', 'id' => $model->id ], [ 'class' => 'btn btn-primary' ]) ?>
21 <?= Html::a(Yii::t('app', 'Delete'), [ 'delete', 'id' => $model->id ], [
22 'class' => 'btn btn-danger',
24 'confirm' => Yii::t('app', 'Are you sure you want to delete this item?'),
30 <?= DetailView::widget([