add_type_in_settings
This commit is contained in:
@ -1,9 +1,11 @@
|
||||
<?php
|
||||
|
||||
use yii\grid\GridView;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\DetailView;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $dataProviderF \yii\data\ActiveDataProvider
|
||||
/* @var $model backend\modules\company\models\Company */
|
||||
|
||||
$this->title = $model->name;
|
||||
@ -12,6 +14,7 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<div class="company-view">
|
||||
<p>
|
||||
<?= Html::a('Список', ['index'], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a('Update', ['update', 'id' => $model->id], ['class' => 'btn btn-primary']) ?>
|
||||
<?= Html::a('Delete', ['delete', 'id' => $model->id], [
|
||||
'class' => 'btn btn-danger',
|
||||
@ -34,4 +37,17 @@ $this->params['breadcrumbs'][] = $this->title;
|
||||
],
|
||||
]) ?>
|
||||
|
||||
<h2>Дополнительные сведения</h2>
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProviderF,
|
||||
'layout' => "{items}",
|
||||
'columns' => [
|
||||
'field.name:text:Поле',
|
||||
[
|
||||
'attribute' => 'value',
|
||||
'label' => 'Значение'
|
||||
],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user