add frontend changes
This commit is contained in:
@@ -33,7 +33,9 @@ use common\models\Account;
|
||||
<div class="col-md-12" >
|
||||
<div class="ticket-form">
|
||||
|
||||
<?php $form = ActiveForm::begin(); ?>
|
||||
<?php $form = ActiveForm::begin([
|
||||
'id' => 'ticket_form',
|
||||
]); ?>
|
||||
|
||||
<?= Html::activeHiddenInput($model, 'cart')?>
|
||||
|
||||
@@ -64,11 +66,18 @@ use common\models\Account;
|
||||
|
||||
<?= $form->field($model, 'comment')->textarea(['maxlength' => true]) ?>
|
||||
|
||||
<div class="form-group">
|
||||
<?= Html::submitButton( Yii::t('common/ticket', 'Create') , [ 'onclick' => ' $(\'#ticketcreate-cart\').val(\'\');','class' => 'btn btn-success' ]) ?>
|
||||
<?= Html::submitButton( Yii::t('common/ticket', 'Create and add to cart') , [ 'onclick' => ' $(\'#ticketcreate-cart\').val(\'add\');', 'class' => 'btn btn-success' ]) ?>
|
||||
</div>
|
||||
|
||||
<div class="row">
|
||||
<div class='col-md-6'>
|
||||
<?php echo Html::a(Yii::t("frontend/ticket","To cart"),null,['class' => 'btn btn-success btn-block', 'id' => 'btn_add_to_user_cart'] );?>
|
||||
</div>
|
||||
<div class='col-md-6'>
|
||||
<?php
|
||||
if ( $receptionForm->isCardWithCustomer() ){
|
||||
echo Html::a(Yii::t("frontend/ticket","Write up"),null,['class' => 'btn btn-success btn-block', 'id' => 'btn_add_to_customer_cart'] );
|
||||
}
|
||||
?>
|
||||
</div>
|
||||
</div>
|
||||
<?php ActiveForm::end(); ?>
|
||||
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user