65 lines
1.6 KiB
PHP
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>
|
|
|
|
|
|
|