add reception key changes, add money movent storno, status display

This commit is contained in:
2016-01-22 19:10:30 +01:00
parent a2a6b1f240
commit 027a96790a
24 changed files with 220 additions and 25 deletions

View File

@@ -2,6 +2,7 @@
use yii\helpers\Html;
use yii\grid\GridView;
use common\models\MoneyMovement;
/* @var $this yii\web\View */
/* @var $searchModel frontend\models\MoneyMovementSearch */
@@ -10,6 +11,11 @@ use yii\grid\GridView;
$this->title = Yii::t('backend/money-movement', 'Money Movements');
$this->params['breadcrumbs'][] = $this->title;
?>
<style>
.table .btn{ margin-right: 6px;}
</style>
<div class="money-movement-index">
<h1><?= Html::encode($this->title) ?></h1>
@@ -40,10 +46,20 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'status',
'value' => 'statusName',
'label' => "Státusz"
],
],
['class' => 'yii\grid\ActionColumn',
'template' => '{view}'
'template' => '{view}{delete}',
'buttons' => [
'view' => function($url, $model, $key){
return Html::a('<span class="glyphicon glyphicon-eye-open"></span>', $url,
[ 'title' => "Pénzmozgás részletei", 'class'=>'btn btn-success btn-xs', ]) ;
},
'delete' => function($url, $model, $key){
return $model->status == MoneyMovement::STATUS_STORNO ? "" : Html::a('<span class="glyphicon glyphicon-trash"></span>', $url,
[ 'title' => "Bérlet módosítása", 'class'=>'btn btn-danger btn-xs', 'data-method' =>'post']) ;
},
],
],
],
]); ?>