45 lines
1.2 KiB
PHP
45 lines
1.2 KiB
PHP
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model common\models\ProductCategory */
|
|
|
|
$this->title = $model->name;
|
|
$this->params['breadcrumbs'][] = ['label' => Yii::t('common/product_category', 'Product Categories'), 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
?>
|
|
<div class="product-category-view">
|
|
|
|
<h1><?= Html::encode($this->title) ?></h1>
|
|
|
|
<p>
|
|
<?= Html::a(Yii::t('common/product_category', 'Update'), ['update', 'id' => $model->id_product_category], ['class' => 'btn btn-primary']) ?>
|
|
<?php
|
|
/*
|
|
*
|
|
echo Html::a(Yii::t('common/product_category', 'Delete'), ['delete', 'id' => $model->id_product_category], [
|
|
'class' => 'btn btn-danger',
|
|
'data' => [
|
|
'confirm' => Yii::t('common/product_category', 'Are you sure you want to delete this item?'),
|
|
'method' => 'post',
|
|
],
|
|
])
|
|
*/
|
|
?>
|
|
</p>
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id_product_category',
|
|
'name',
|
|
'status',
|
|
'created_at',
|
|
'updated_at',
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|