98 lines
2.4 KiB
PHP
98 lines
2.4 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 >
|
|
.reception-form .btn.btn-reception{
|
|
width:100%;
|
|
margin-top: 6px;
|
|
margin-bottom: 6px;
|
|
}
|
|
|
|
</style>
|
|
|
|
<?php
|
|
$card = $model->card;
|
|
$customer = $model->customer;
|
|
$customername = "";
|
|
if ( $customer != null ){
|
|
$customername = $customer->name;
|
|
}
|
|
|
|
|
|
function mkCustomerBtn($card, $label,$url = null ){
|
|
|
|
$classes = 'btn btn-primary btn-reception';
|
|
if ( $card == null ){
|
|
$classes .= ' disabled';
|
|
}
|
|
|
|
return Html::a( $label , null, ['class' => $classes ] );
|
|
}
|
|
|
|
?>
|
|
|
|
<div class="reception-form">
|
|
|
|
<?php $form = ActiveForm::begin([
|
|
'enableAjaxValidation' => false,
|
|
'method' => 'get'
|
|
]); ?>
|
|
|
|
<div class="row">
|
|
<div class='col-md-3'>
|
|
<div class='row'>
|
|
<div class='col-md-8'>
|
|
<?php echo mkCustomerBtn( $card, Yii::t( 'frontend/customer' , 'Adatlap') ); ?>
|
|
</div>
|
|
<div class='col-md-4'>
|
|
<?php echo Html::a(Html::tag("i","", [ 'class' => 'glyphicon glyphicon-plus' ] ) , null, ['class' => 'btn btn-primary btn-reception'] )?>
|
|
</div>
|
|
</div>
|
|
<div class='row'>
|
|
<div class='col-md-8'>
|
|
<?php echo mkCustomerBtn( $card, Yii::t( 'frontend/customer' , 'Befizetések') ); ?>
|
|
</div>
|
|
<div class='col-md-4'>
|
|
<?php echo Html::a(Html::tag("i","", [ 'class' => 'glyphicon glyphicon-plus' ] ) , null, ['class' => 'btn btn-primary btn-reception'] )?>
|
|
</div>
|
|
</div>
|
|
<div class='row'>
|
|
<div class='col-md-12'>
|
|
<?php echo Html::a(Yii::t( 'frontend/customer', 'Jelentkezések') , null,['class' => 'btn btn-primary btn-reception'] )?>
|
|
</div>
|
|
</div>
|
|
<div class='row'>
|
|
<div class='col-md-12'>
|
|
<?php echo mkCustomerBtn( $card, Yii::t( 'frontend/customer' , 'Egyenleg') ); ?>
|
|
</div>
|
|
</div>
|
|
<div class='row'>
|
|
<div class='col-md-12'>
|
|
<?php echo Html::a(Yii::t( 'frontend/customer', 'Termékeladás') , null,['class' => 'btn btn-primary btn-reception'] )?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class='col-md-2'>
|
|
<div class="row" >
|
|
<div class='col-md-12'>
|
|
<?php echo $form->field($model, 'number')->textInput()?>
|
|
</div>
|
|
<div class='col-md-12'>
|
|
<?php echo $customername; ?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
|
|
<?php ActiveForm::end(); ?>
|
|
|
|
</div>
|