|
|
@ -14,38 +14,10 @@ $this->params['breadcrumbs'][] = 'Update '; |
|
|
|
Yii::$app->params['bsVersion'] = '4.x'; |
|
|
|
?>
|
|
|
|
<div class="express-template-update"> |
|
|
|
<div class="express-template-form"> |
|
|
|
|
|
|
|
<?php |
|
|
|
$form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]); |
|
|
|
<?= $this->render('_form', [ |
|
|
|
'model' => $model, |
|
|
|
'isCreate' => false |
|
|
|
]) ?>
|
|
|
|
|
|
|
|
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> |