add default account to frontend
This commit is contained in:
@@ -4,6 +4,7 @@ use yii\helpers\Html;
|
||||
use yii\widgets\ActiveForm;
|
||||
use frontend\components\HtmlHelper;
|
||||
use kartik\widgets\DatePicker;
|
||||
use common\models\Account;
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
/* @var $model common\models\Ticket */
|
||||
@@ -22,6 +23,9 @@ use kartik\widgets\DatePicker;
|
||||
$accountOptions = HtmlHelper::mkAccountOptions($accounts);
|
||||
$discountOptions = ['' => ''] + HtmlHelper::mkDiscountOptions($discounts, [ 'emptyOption' => true] );
|
||||
$ticketTypeOptions = HtmlHelper::mkTicketTypeOptions($ticketTypes);
|
||||
|
||||
// echo "default kassza: " . Account::readDefault();
|
||||
// echo " kassza: " . $model->id_account;
|
||||
|
||||
?>
|
||||
|
||||
|
||||
@@ -6,6 +6,7 @@ use frontend\components\ReceptionCardNumberWidget;
|
||||
use frontend\assets\TicketSellAsset;
|
||||
use common\models\TicketType;
|
||||
use yii\helpers\Url;
|
||||
use frontend\components\ReceptionWidget;
|
||||
|
||||
|
||||
/* @var $this yii\web\View */
|
||||
@@ -34,16 +35,8 @@ $this->registerJs ( 'new TicketSell( '. json_encode($options).');' );
|
||||
?>
|
||||
<div class="ticket-create">
|
||||
|
||||
<div class='row'>
|
||||
<div class='col-md-3'>
|
||||
<?php echo ReceptionMenuWidget::widget( [ 'customer' => $customer, 'card' => $card] ) ?>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
<?php echo ReceptionCardNumberWidget::widget( [ 'customer' => $customer, 'card' =>$card, 'route' => ['customer/reception'] ] )?>
|
||||
</div>
|
||||
<div class='col-md-4'>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo ReceptionWidget::widget( ['form' => $receptionForm, 'route' => ['customer/reception'] ] )?>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
|
||||
Reference in New Issue
Block a user