add frontend changes
This commit is contained in:
@@ -2,6 +2,8 @@
|
||||
|
||||
use yii\helpers\Html;
|
||||
use yii\grid\GridView;
|
||||
use yii\widgets\ListView;
|
||||
use yii\base\Widget;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $searchModel common\models\TransferSearch */
|
||||
@@ -10,39 +12,38 @@ use yii\grid\GridView;
|
||||
$this->title = Yii::t('frontend/transfer', 'Transfers');
|
||||
$this->params['breadcrumbs'][] = $this->title;
|
||||
?>
|
||||
<style>
|
||||
.dl-transfer{
|
||||
margin-bottom: 0px;
|
||||
}
|
||||
|
||||
.item-transfer{
|
||||
border: 1px solid #b4b4b4;
|
||||
margin-top: 12px;
|
||||
padding-top: 6px;
|
||||
padding-bottom: 6px;
|
||||
}
|
||||
|
||||
|
||||
|
||||
</style>
|
||||
|
||||
<div class="transfer-index">
|
||||
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
<?php // echo $this->render('_search', ['model' => $searchModel]); ?>
|
||||
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
|
||||
<?php echo $this->render('_index_stat', ['searchModel' => $searchModel]); ?>
|
||||
|
||||
<p>
|
||||
<?= Html::a(Yii::t('frontend/transfer', 'Create Transfer'), ['create'], ['class' => 'btn btn-success']) ?>
|
||||
</p>
|
||||
|
||||
<?= GridView::widget([
|
||||
'dataProvider' => $dataProvider,
|
||||
'filterModel' => $searchModel,
|
||||
'columns' => [
|
||||
['class' => 'yii\grid\SerialColumn'],
|
||||
|
||||
'id_transfer',
|
||||
'id_discount',
|
||||
'id_currency',
|
||||
'id_object',
|
||||
'status',
|
||||
// 'type',
|
||||
// 'item_price',
|
||||
// 'count',
|
||||
// 'money',
|
||||
// 'money_currency',
|
||||
// 'rate',
|
||||
// 'id_user',
|
||||
// 'comment',
|
||||
// 'created_at',
|
||||
// 'updated_at',
|
||||
|
||||
['class' => 'yii\grid\ActionColumn'],
|
||||
],
|
||||
]); ?>
|
||||
|
||||
|
||||
|
||||
|
||||
<?php echo ListView::widget([
|
||||
|
||||
'dataProvider' => $dataProvider,
|
||||
'itemView' => '_view' ,
|
||||
'itemOptions' => ['class' => 'item-transfer']
|
||||
] )
|
||||
?>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user