You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.0 KiB
41 lines
1.0 KiB
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model antgoods\models\ars\Category */
|
|
|
|
$this->title = $model->name;
|
|
$this->params['breadcrumbs'][] = ['label' => '后台商品分类', 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
\yii\web\YiiAsset::register($this);
|
|
?>
|
|
<div class="category-view">
|
|
|
|
<p>
|
|
<?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
|
|
</p>
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id',
|
|
'name',
|
|
'pid',
|
|
'goods_count',
|
|
'sort_order',
|
|
'icon_type',
|
|
'icon',
|
|
[
|
|
'attribute' => 'is_show',
|
|
'value' => function ($model) {
|
|
return $model->is_show == \antgoods\models\ars\Category::IS_SHOW_DISPLAY ? '显示':'隐藏';
|
|
}
|
|
],
|
|
'created_at:datetime',
|
|
'updated_at:datetime',
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|