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.

52 lines
1.4 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. /* @var $logistics */
  7. $this->title = $model->id;
  8. $this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']];
  9. $this->params['breadcrumbs'][] = $this->title;
  10. Yii::$app->params['bsVersion'] = '4.x';
  11. \yii\web\YiiAsset::register($this);
  12. ?>
  13. <div class="delivery-view">
  14. <p>
  15. <?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
  16. </p>
  17. <?php
  18. echo TabsX::widget([
  19. 'bordered' => true,
  20. 'items' => [
  21. [
  22. 'label' => '<i class="fas fa-user"></i> 发货信息',
  23. 'content' => $this->render('info', [
  24. 'model' => $model,
  25. ]),
  26. ],
  27. [
  28. 'label' => '<i class="fas fa-shopping-cart "></i> 物流信息',
  29. 'content' => $this->render('logistics', [
  30. 'model' => $model,
  31. 'logistics' => $logistics
  32. ]),
  33. ],
  34. [
  35. 'label' => '<i class="fas fa-shopping-cart "></i> 发货商品信息',
  36. 'content' => $this->render('delivery_goods', [
  37. 'model' => $model,
  38. ]),
  39. ],
  40. ],
  41. 'position' => TabsX::POS_ABOVE,
  42. 'encodeLabels' => false
  43. ]);
  44. ?>
  45. </div>