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.

45 lines
1.3 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 = '创建 Express Template';
  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. 'position' => TabsX::POS_ABOVE,
  28. 'encodeLabels' => false
  29. ]);
  30. ?>
  31. <div class="form-group">
  32. <?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
  33. <?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
  34. </div>
  35. <?php ActiveForm::end(); ?>
  36. </div>
  37. </div>