status flag

This commit is contained in:
2016-03-11 07:41:51 +01:00
parent bc74d92463
commit 9c25312cf1
8 changed files with 49 additions and 5 deletions

View File

@@ -4,6 +4,8 @@ use yii\helpers\Html;
use yii\grid\GridView;
use common\models\Card;
use yii\helpers\Url;
use common\components\Helper;
use common\models\DoorLog;
/* @var $this yii\web\View */
/* @var $searchModel backend\models\CardSearch */
@@ -66,6 +68,13 @@ $this->params['breadcrumbs'][] = $this->title;
'attribute' => 'key_number',
'label' => 'Kulcs száma'
],
[
'attribute' => 'card_flag',
'label' => 'Info',
'value' => function ($model, $key, $index, $column){
return Helper::getArrayValue(DoorLog::getCardFlagTexts(), $model['card_flag'], "Ismeretlen ok");
}
],
[