fitness-web/frontend/views/common/_reception_form_card_number.php
Schneider Roland 9809731933 user auto disable word listening
improve card creation
mobileapi - add ticket usage count
2023-07-04 16:40:20 +02:00

65 lines
1.6 KiB
PHP

<?php
use yii\helpers\Html;
use yii\widgets\ActiveForm;
/* @var $this yii\web\View */
/* @var $model common\models\Customer */
/* @var $form yii\widgets\ActiveForm */
?>
<style>
.form-card-number input, .form-card-number button{
margin-top: 6px;
margin-bottom: 6px;
}
</style>
<?php
$number = "";
if ( isset($model->card)){
$number = $model->card->number;
}
?>
<div class="form-card-number">
<?php $form = ActiveForm::begin([
'enableAjaxValidation' => false,
'method' => 'get',
'action' => $route
]); ?>
<div class="row" >
<div class='col-md-12'>
<?php echo Html::textInput("number", $number ,['class' => 'form-control', 'placeholder' => 'Kártya/kulcs szám'])?>
</div>
</div>
<div class="row" >
<div class='col-md-12'>
<?php echo Html::submitButton( Yii::t('frontend/card', "Search"),[ 'class' => 'btn btn-primary btn-block']); ?>
</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>