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.3 KiB
50 lines
1.3 KiB
<?php
|
|
|
|
use yii\helpers\Html;
|
|
use yii\widgets\DetailView;
|
|
|
|
/* @var $this yii\web\View */
|
|
/* @var $model backend\modules\shop\models\ars\Delivery */
|
|
|
|
$this->title = $model->id;
|
|
$this->params['breadcrumbs'][] = ['label' => 'Deliveries', 'url' => ['index']];
|
|
$this->params['breadcrumbs'][] = $this->title;
|
|
\yii\web\YiiAsset::register($this);
|
|
?>
|
|
<div class="delivery-view">
|
|
|
|
<p>
|
|
<?= Html::a('返回列表', ['index'], ['class' => 'btn btn-success']) ?>
|
|
</p>
|
|
|
|
<?= DetailView::widget([
|
|
'model' => $model,
|
|
'attributes' => [
|
|
'id',
|
|
'order_id',
|
|
'shipping_name',
|
|
'shipping_id',
|
|
[
|
|
'attribute' => 'type',
|
|
'value' => function ($model) {
|
|
return \backend\modules\shop\models\ars\Delivery::dropDown('type', $model->type);
|
|
}
|
|
],
|
|
'status',
|
|
'decription:ntext',
|
|
[
|
|
'attribute' => 'created_at',
|
|
'value' => function ($model) {
|
|
return date('Y-m-d H:i:s', $model->created_at);
|
|
}
|
|
],
|
|
[
|
|
'attribute' => 'updated_at',
|
|
'value' => function ($model) {
|
|
return date('Y-m-d H:i:s', $model->updated_at);
|
|
}
|
|
],
|
|
],
|
|
]) ?>
|
|
|
|
</div>
|