|
|
<?php
use yii\helpers\Html; use yii\widgets\DetailView;
/* @var $this yii\web\View */ /* @var $model common\models\ars\Goods */
$this->title = $model->name; $this->params['breadcrumbs'][] = ['label' => 'Goods', 'url' => ['index']]; $this->params['breadcrumbs'][] = $this->title; \yii\web\YiiAsset::register($this); ?>
<div class="goods-view">
<p> <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
</p>
<?= DetailView::widget([ 'model' => $model, 'attributes' => [ 'id', 'pid', 'cat_id', 'brand_id', 'shop_cat_id', 'name', 'sn', 'code', 'supplier_id', 'weight', 'length', 'width', 'height', 'diameter', 'unit', 'sold_count', 'limit_count', 'stock', 'stock_warn', 'market_price', 'price', 'brief', 'description:ntext', 'image', 'model_id', 'is_sale', 'sort_order', 'bouns_points', 'experience_points', 'is_delete', 'express_template', 'created_at', 'updated_at', ], ]) ?>
</div>
|