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.
 
 
 

56 lines
1.6 KiB

<?php
use yii\helpers\Html;
use yii\bootstrap4\ActiveForm;
use kartik\tabs\TabsX;
/* @var $this yii\web\View */
/* @var $order backend\modules\shop\models\ars\Order */
/* @var $delivery backend\modules\shop\models\ars\Delivery */
/* @var $form yii\widgets\ActiveForm */
/* @var $deliveryGoods */
$this->title = '订单发货:'. $order->order_sn;
$this->params['breadcrumbs'][] = ['label' => '订单列表', 'url' => ['index']];
$this->params['breadcrumbs'][] = $this->title;
Yii::$app->params['bsVersion'] = '4.x';
?>
<div class="delivery-form">
<?php
$form = ActiveForm::begin(['options' => ['class' => 'container-fluid']]);
echo TabsX::widget([
'bordered' => true,
'items' => [
[
'label' => '<i class="fas fa-user"></i> 物流信息',
'content' => $this->render('logistics', [
'order' => $order,
'delivery' => $delivery,
'form' => $form,
]),
],
[
'label' => '<i class="fas fa-ad"></i> 订单商品信息',
'content' => $this->render('delivery_goods', [
'form' => $form,
'deliveryGoods' => $deliveryGoods,
]),
],
],
'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>