fitness-web/frontend/views/money-movement/index.php

52 lines
1.2 KiB
PHP

<?php
use yii\helpers\Html;
use yii\grid\GridView;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\MoneyMovementSearch */
/* @var $dataProvider yii\data\ActiveDataProvider */
$this->title = Yii::t('backend/money-movement', 'Money Movements');
$this->params['breadcrumbs'][] = $this->title;
?>
<div class="money-movement-index">
<h1><?= Html::encode($this->title) ?></h1>
<?php echo $this->render('_search', ['model' => $searchModel]); ?>
<p>
<?= Html::a(Yii::t('backend/money-movement', 'Create Money Movement'), ['create'], ['class' => 'btn btn-success']) ?>
</p>
<?= GridView::widget([
'dataProvider' => $dataProvider,
'columns' => [
'accountName',
'userName',
[
'attribute' => 'type',
'value' =>'humanType'
],
'name',
'money',
'created_at:datetime',
[
'attribute' => 'comment',
'format' => 'html'
],
[
'attribute' => 'status',
'value' => 'statusName',
'label' => "Státusz"
],
['class' => 'yii\grid\ActionColumn',
'template' => '{view}'
],
],
]); ?>
</div>