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.

43 lines
1.1 KiB

  1. <?php
  2. use yii\helpers\Html;
  3. use kartik\tabs\TabsX;
  4. /* @var $this yii\web\View */
  5. /* @var $model backend\modules\shop\models\ars\Delivery */
  6. $this->title = $model->id;
  7. $this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']];
  8. $this->params['breadcrumbs'][] = $this->title;
  9. Yii::$app->params['bsVersion'] = '4.x';
  10. \yii\web\YiiAsset::register($this);
  11. ?>
  12. <div class="delivery-view">
  13. <p>
  14. <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
  15. </p>
  16. <?php
  17. echo TabsX::widget([
  18. 'bordered' => true,
  19. 'items' => [
  20. [
  21. 'label' => '<i class="fas fa-user"></i> 物流信息',
  22. 'content' => $this->render('logistics', [
  23. 'model' => $model,
  24. ]),
  25. ],
  26. [
  27. 'label' => '<i class="fas fa-shopping-cart "></i> 发货商品信息',
  28. 'content' => $this->render('delivery_goods', [
  29. 'model' => $model,
  30. ]),
  31. ],
  32. ],
  33. 'position' => TabsX::POS_ABOVE,
  34. 'encodeLabels' => false
  35. ]);
  36. ?>
  37. </div>