add frontend changes
This commit is contained in:
@@ -28,17 +28,13 @@ $options = [];
|
||||
// $options['lookup_product_url'] = Url::toRoute(['product/lookup']);
|
||||
$options['clear_cart_url'] = Url::toRoute(['product/clear-list']);
|
||||
$options['types'] = TicketType::modelsToArray($ticketTypes);
|
||||
$options['transfer_list'] = $userTransfers;
|
||||
$options['user_cart'] = $model->userCart;
|
||||
$options['customer_cart'] = $model->customerCart;
|
||||
|
||||
$this->registerJs ( 'new TicketSell( '. json_encode($options).');' );
|
||||
|
||||
?>
|
||||
<div class="ticket-create">
|
||||
|
||||
<?php echo ReceptionWidget::widget( ['form' => $receptionForm, 'route' => ['customer/reception'] ] )?>
|
||||
|
||||
|
||||
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<h1><?= Html::encode($this->title) ?></h1>
|
||||
@@ -47,13 +43,14 @@ $this->registerJs ( 'new TicketSell( '. json_encode($options).');' );
|
||||
'discounts' => $discounts,
|
||||
'ticketTypes' => $ticketTypes,
|
||||
'accounts' => $accounts,
|
||||
'receptionForm' => $receptionForm,
|
||||
]) ?>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
<h1><?php echo Yii::t('frontend/ticket', 'Cart')?></h1>
|
||||
<?php echo $this->render( "//common/_transfer_list" ) ?>
|
||||
<?php echo Html::a(Yii::t('frontend/product', "Paid"),null,[ 'id' => 'btn_paid', 'class' => 'btn btn-primary' ]) ?>
|
||||
<div class='col-md-6'>
|
||||
<?php if ( $receptionForm->isCardWithCustomer() ){ ?>
|
||||
<?php echo $this->render('_customer_cart' ) ?>
|
||||
<?php }?>
|
||||
<?php echo $this->render('_user_cart' ) ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user