user auto disable word listening

improve card creation
mobileapi - add ticket usage count
This commit is contained in:
Schneider Roland
2023-07-04 16:40:20 +02:00
parent d3e4009f3e
commit 9809731933
11 changed files with 196 additions and 112 deletions

View File

@@ -19,7 +19,7 @@ use yii\widgets\ActiveForm;
</style>
<?php
<?php
$number = "";
if ( isset($model->card)){
$number = $model->card->number;
@@ -43,6 +43,21 @@ if ( isset($model->card)){
</div>
</div>
<?php ActiveForm::end(); ?>
<?php
$user = \common\models\User::findOne(\Yii::$app->user->id);
if ( $user->key_listener_enabled == 0){
?>
<?php $form = ActiveForm::begin([
'enableAjaxValidation' => false,
'method' => 'post',
'action' => ['customer/reception']
]); ?>
<?php echo Html::hiddenInput("key_listener_enabled", "1" ,['class' => 'form-control', ])?>
<?php echo Html::submitButton( "Kártyafigyelés be ",[ 'class' => 'btn btn-success btn-block']); ?>
<?php ActiveForm::end(); ?>
<?php
}
?>
</div>