Add new flag / flag_out logick
This commit is contained in:
@@ -21,6 +21,7 @@ $items = [
|
||||
[ 'Kulcsok', ['key/index', 'id_card' => $card->id_card] ],
|
||||
[ 'Szerződések', ['contract/index', 'id_card' => $card->id_card ]],
|
||||
[ 'Kosár', ['transfer/customer-cart', 'id_card' => $card->id_card ]],
|
||||
[ 'Kártya', ['card/info', 'id_card' => $card->id_card ]],
|
||||
];
|
||||
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<?php
|
||||
use yii\base\Object;
|
||||
use common\models\Ticket;
|
||||
use frontend\model\ReceptionForm;
|
||||
use \frontend\models\ReceptionForm;
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\Url;
|
||||
use common\models\Contract;
|
||||
@@ -10,7 +10,7 @@ use common\models\Card;
|
||||
use common\models\DoorLog;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model frontend\model\ReceptionForm */
|
||||
/* @var $model \frontend\models\ReceptionForm */
|
||||
?>
|
||||
<style>
|
||||
</style>
|
||||
@@ -22,7 +22,7 @@ if ( count($model->tickets) > 0 ){
|
||||
|
||||
if ( isset($model->card)){
|
||||
if ( isset($model->customer)){
|
||||
if ( $model->card->flag == 0 ){
|
||||
if ( $model->card->validity == 0 ){
|
||||
if ( isset($ticket)){
|
||||
echo Html::beginTag("div",['class'=>"alert alert-success" , "role"=>"alert"]);
|
||||
echo Html::beginTag("strong",[ ]);
|
||||
@@ -53,7 +53,7 @@ if ( isset($model->card)){
|
||||
echo "Kártya korlátozás:";
|
||||
echo "<br>";
|
||||
echo Html::beginTag("strong",[ ]);
|
||||
echo Helper::getArrayValue(DoorLog::getCardFlagTexts(), $model->card->flag, "Ismeretlen ok") ;
|
||||
echo Helper::getArrayValue(DoorLog::getCardFlagTexts(), $model->card->validity, "Ismeretlen ok") ;
|
||||
echo Html::endTag("strong");
|
||||
echo Html::endTag("div");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user