user auto disable word listening
improve card creation mobileapi - add ticket usage count
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user