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.

50 lines
1.5 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 common\models\ars\ExpressTemplate */
  7. $this->title = '创建运费模板';
  8. $this->params['breadcrumbs'][] = ['label' => 'Express Templates', 'url' => ['index']];
  9. $this->params['breadcrumbs'][] = $this->title;
  10. Yii::$app->params['bsVersion'] = '4.x';
  11. ?>
  12. <div class="express-template-create">
  13. <div class="express-template-form">
  14. <?php
  15. $form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]);
  16. echo TabsX::widget([
  17. 'bordered' => true,
  18. 'items' => [
  19. [
  20. 'label' => '<i class="fas fa-user"></i> 基本信息',
  21. 'content' => $this->render('_form', [
  22. 'model' => $model,
  23. 'form' => $form,
  24. ]),
  25. ],
  26. [
  27. 'label' => '<i class="fas fa-globe"></i> 选择配送区域',
  28. 'content' => $this->render('area', ['data' => $data, 'form' => $form, 'cities' => []
  29. ]),
  30. ],
  31. ],
  32. 'position' => TabsX::POS_ABOVE,
  33. 'encodeLabels' => false
  34. ]);
  35. ?>
  36. <div class="form-group">
  37. <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
  38. <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
  39. </div>
  40. <?php ActiveForm::end(); ?>
  41. </div>
  42. </div>