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.

51 lines
1.6 KiB

  1. <?php
  2. use yii\bootstrap4\Html;
  3. use yii\bootstrap4\ActiveForm;
  4. use kartik\tabs\TabsX;
  5. /* @var $this yii\web\View */
  6. /* @var $model backend\models\ars\ExpressTemplate */
  7. $this->title = '编辑运费模板: ' . $model->name;
  8. $this->params['breadcrumbs'][] = ['label' => 'Express Templates', 'url' => ['index']];
  9. $this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]];
  10. $this->params['breadcrumbs'][] = 'Update ';
  11. Yii::$app->params['bsVersion'] = '4.x';
  12. ?>
  13. <div class="express-template-update">
  14. <div class="express-template-form">
  15. <?php
  16. $form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]);
  17. echo TabsX::widget([
  18. 'bordered' => true,
  19. 'items' => [
  20. [
  21. 'label' => '<i class="fas fa-user"></i> 基本信息',
  22. 'content' => $this->render('_form', [
  23. 'model' => $model,
  24. 'form' => $form,
  25. ]),
  26. ],
  27. [
  28. 'label' => '<i class="fas fa-globe"></i> 选择配送区域',
  29. 'content' => $this->render('area', ['data' => $data, 'form' => $form, 'cities' => $cities
  30. ]),
  31. ],
  32. ],
  33. 'position' => TabsX::POS_ABOVE,
  34. 'encodeLabels' => false
  35. ]);
  36. ?>
  37. <div class="form-group">
  38. <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
  39. <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
  40. </div>
  41. <?php ActiveForm::end(); ?>
  42. </div>
  43. </div>