add default account to frontend
This commit is contained in:
45
frontend/views/common/_reception_customer.php
Normal file
45
frontend/views/common/_reception_customer.php
Normal file
@@ -0,0 +1,45 @@
|
||||
<?php
|
||||
use common\models\Ticket;
|
||||
use frontend\model\ReceptionForm;
|
||||
use yii\helpers\Html;
|
||||
use yii\widgets\DetailView;
|
||||
use yii\base\Widget;
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model frontend\model\ReceptionForm */
|
||||
|
||||
?>
|
||||
|
||||
<?php
|
||||
if ( $model->isCardWithCustomer() ){
|
||||
?>
|
||||
<div class="row">
|
||||
<div class="col-md-12">
|
||||
<?php
|
||||
echo DetailView::widget([
|
||||
'model' => $model,
|
||||
'attributes' =>[
|
||||
[
|
||||
'label' => 'Kártyaszám',
|
||||
'value' => $model->card->number
|
||||
],
|
||||
[
|
||||
'label' => 'Vendég',
|
||||
'value' => $model->customer->name
|
||||
],
|
||||
[
|
||||
'label' => 'E-Mail',
|
||||
'value' => $model->customer->email
|
||||
],
|
||||
[
|
||||
'label' => 'Telefon',
|
||||
'value' => $model->customer->phone
|
||||
],
|
||||
]
|
||||
|
||||
])
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user