linyaostalker
5 years ago
4 changed files with 131 additions and 8 deletions
-
20backend/modules/shop/controllers/ExpressTemplateController.php
-
23backend/modules/shop/models/searchs/ExpressTemplateSearch.php
-
33backend/modules/shop/views/express-template/express_area_list.php
-
63vendor/iron/grid/GridView.php
@ -0,0 +1,33 @@ |
|||
<?php |
|||
|
|||
use yii\helpers\Html; |
|||
use iron\grid\GridView; |
|||
|
|||
/* @var $this yii\web\View */ |
|||
/* @var $searchModel backend\modules\shop\models\searchs\ExpressAreaSearch */ |
|||
/* @var $dataProvider yii\data\ActiveDataProvider */ |
|||
|
|||
$this->title = '运费区域模板:'.$expressTemplate->name; |
|||
$this->params['breadcrumbs'][] = $this->title; |
|||
?>
|
|||
<div class="row"> |
|||
<div class="col-12"> |
|||
<?= GridView::widget([ |
|||
'dataProvider' => $dataProvider, |
|||
'filter' => $this->render("_search", ['model' => $searchModel]), |
|||
'batch' => [ |
|||
[ |
|||
"label" => "删除", |
|||
"url" => "express-area/deletes" |
|||
], |
|||
], |
|||
'columns' => $columns, |
|||
'batchTemplate' => '', |
|||
'create' => '', |
|||
'export' => '', |
|||
'content' => Html::a('创建', ['index'], ['class' => 'btn btn-default']). |
|||
Html::a('返回', ['index'], ['class' => 'btn btn-default']) |
|||
]); |
|||
?>
|
|||
</div> |
|||
</div> |
Write
Preview
Loading…
Cancel
Save
Reference in new issue