add mover cutler door
This commit is contained in:
@@ -1,13 +1,8 @@
|
||||
<?php
|
||||
use yii\base\Object;
|
||||
use common\models\Ticket;
|
||||
use \frontend\models\ReceptionForm;
|
||||
use common\components\Helper;
|
||||
use common\models\DoorLog;
|
||||
use yii\helpers\Html;
|
||||
use yii\helpers\Url;
|
||||
use common\models\Contract;
|
||||
use common\components\Helper;
|
||||
use common\models\Card;
|
||||
use common\models\DoorLog;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model \frontend\models\ReceptionForm */
|
||||
@@ -41,6 +36,8 @@ if ( isset($model->card)){
|
||||
echo " - ";
|
||||
echo Yii::$app->formatter->asDate($ticket->end);
|
||||
echo Html::endTag("div");
|
||||
|
||||
|
||||
}else{
|
||||
echo Html::beginTag("div",['class'=>"alert alert-danger", "role"=>"alert"]);
|
||||
echo Html::beginTag("strong",[ ]);
|
||||
@@ -72,6 +69,19 @@ if ( isset($model->card)){
|
||||
echo Html::endTag("div");
|
||||
}
|
||||
|
||||
if (Helper::isTicketTypeDoorAllowedCheckOn()) {
|
||||
if (isset($model->card) && isset($ticket) ) {
|
||||
$alert = "alert " . ($model->card->isFlagDoorAllowed() ? "alert-warning" : "alert-success");
|
||||
$text = "Kapun beléphet: " .($model->card->isFlagDoorAllowed() ? "nem" : "igen");
|
||||
|
||||
echo Html::beginTag("div",['class' => $alert ,"role"=>"alert"]);
|
||||
echo Html::beginTag("strong",[ ]);
|
||||
echo $text;
|
||||
echo Html::endTag("strong");
|
||||
echo Html::endTag("div");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
if ( isset($model->contract)){
|
||||
/** @var common\models\Contract $contract*/
|
||||
|
||||
Reference in New Issue
Block a user