linyaostalker
5 years ago
6 changed files with 110 additions and 15 deletions
-
61backend/controllers/ExpressTemplateController.php
-
7backend/views/express-template/create.php
-
42backend/views/express-template/update.php
-
7backend/views/layouts/main.php
-
4common/models/ars/ExpressTemplate.php
-
4composer.json
@ -1,19 +1,51 @@ |
|||
<?php |
|||
|
|||
use yii\helpers\Html; |
|||
use yii\bootstrap4\Html; |
|||
use yii\bootstrap4\ActiveForm; |
|||
use kartik\tabs\TabsX; |
|||
|
|||
/* @var $this yii\web\View */ |
|||
/* @var $model common\models\ars\ExpressTemplate */ |
|||
|
|||
$this->title = '编辑 Express Template: ' . $model->name; |
|||
$this->title = '编辑运费模板: ' . $model->name; |
|||
$this->params['breadcrumbs'][] = ['label' => 'Express Templates', 'url' => ['index']]; |
|||
$this->params['breadcrumbs'][] = ['label' => $model->name, 'url' => ['view', 'id' => $model->id]]; |
|||
$this->params['breadcrumbs'][] = 'Update '; |
|||
Yii::$app->params['bsVersion'] = '4.x'; |
|||
?>
|
|||
<div class="express-template-update"> |
|||
<div class="express-template-form"> |
|||
|
|||
<?= $this->render('_form', [ |
|||
'model' => $model, |
|||
]) ?>
|
|||
<?php |
|||
$form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]); |
|||
|
|||
echo TabsX::widget([ |
|||
'bordered' => true, |
|||
'items' => [ |
|||
[ |
|||
'label' => '<i class="fas fa-user"></i> 基本信息', |
|||
'content' => $this->render('_form', [ |
|||
'model' => $model, |
|||
'form' => $form, |
|||
]), |
|||
], |
|||
[ |
|||
'label' => '<i class="fas fa-globe"></i> 选择配送区域', |
|||
'content' => $this->render('area', ['data' => $data, 'form' => $form, 'cities' => $cities |
|||
]), |
|||
], |
|||
], |
|||
'position' => TabsX::POS_ABOVE, |
|||
'encodeLabels' => false |
|||
]); |
|||
?>
|
|||
|
|||
<div class="form-group"> |
|||
<?= Html::submitButton('保存', ['class' => 'btn btn-success']) ?>
|
|||
<?= Html::a('返回', ['index'], ['class' => 'btn btn-info']) ?>
|
|||
</div> |
|||
|
|||
<?php ActiveForm::end(); ?>
|
|||
|
|||
</div> |
|||
</div> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue