view.php 829 B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. use yii\helpers\Html;
  3. use yii\widgets\DetailView;
  4. /* @var $this yii\web\View */
  5. /* @var $model common\models\GoodsSku */
  6. $this->title = $model->name;
  7. $this->params['breadcrumbs'][] = ['label' => Yii::t('common', 'Goods Skus'), 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. ?>
  10. <?= $this->render('../site/view_menu', [ 'model' => $model]) ?><div class="box box-success">
  11. <div class="box-body">
  12. <?= DetailView::widget([
  13. 'model' => $model,
  14. 'attributes' => [
  15. 'id',
  16. 'goods_id',
  17. 'name',
  18. 'origin_price',
  19. 'price',
  20. 'stock',
  21. 'actual_sales',
  22. 'virtual_sales',
  23. 'created_at:datetime',
  24. 'updated_at:datetime',
  25. 'status',
  26. ],
  27. ]) ?>
  28. </div>
  29. </div>