guild/backend/modules/settings/views/position/view.php

36 lines
906 B
PHP
Raw Normal View History

2018-10-11 11:15:09 +03:00
<?php
use yii\helpers\Html;
use yii\widgets\DetailView;
/* @var $this yii\web\View */
2018-10-12 14:52:08 +03:00
/* @var $model backend\modules\settings\models\Position */
2018-10-11 11:15:09 +03:00
$this->title = $model->name;
2018-10-12 14:52:08 +03:00
$this->params['breadcrumbs'][] = ['label' => 'Должности', 'url' => ['index']];
2018-10-11 11:15:09 +03:00
$this->params['breadcrumbs'][] = $this->title;
?>
2018-10-12 14:52:08 +03:00
<div class="position-view">
2018-10-11 11:15:09 +03:00
<p>
2018-10-11 17:24:47 +03:00
<?= Html::a('Редактировать', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
<?= Html::a('Удалить', ['delete', 'id' => $model->id], [
2018-10-11 11:15:09 +03:00
'class' => 'btn btn-danger',
'data' => [
'confirm' => 'Are you sure you want to delete this item?',
'method' => 'post',
],
]) ?>
</p>
<?= DetailView::widget([
'model' => $model,
'attributes' => [
'id',
'name',
],
]) ?>
</div>