From 64dee4cfded59bfa3c43dce8eff7efe532708138 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=BCneyt=20=C5=9Eent=C3=BCrk?= Date: Tue, 12 Jan 2021 23:45:32 +0300 Subject: [PATCH] Portal invoice payment method fixed.. --- resources/assets/js/views/portal/invoices.js | 12 ++++++++++-- resources/views/portal/invoices/show.blade.php | 2 +- resources/views/portal/invoices/signed.blade.php | 2 +- 3 files changed, 12 insertions(+), 4 deletions(-) diff --git a/resources/assets/js/views/portal/invoices.js b/resources/assets/js/views/portal/invoices.js index cccbcdfb6..ef5c57c6c 100644 --- a/resources/assets/js/views/portal/invoices.js +++ b/resources/assets/js/views/portal/invoices.js @@ -59,7 +59,6 @@ const app = new Vue({ this.method_show_html = Vue.component('payment-method-confirm', function (resolve, reject) { resolve({ template:'
' - }) }); @@ -84,8 +83,13 @@ const app = new Vue({ CardForm }, + created: function() { + this.form = new Form('redirect-form '); + }, + data: function () { return { + form: {}, formData: { cardName: '', cardNumber: '', @@ -142,7 +146,6 @@ const app = new Vue({ this.method_show_html = Vue.component('payment-method-confirm', function (resolve, reject) { resolve({ template:'
' - }) }); @@ -163,8 +166,13 @@ const app = new Vue({ CardForm }, + created: function() { + this.form = new Form('redirect-form '); + }, + data: function () { return { + form: {}, formData: { cardName: '', cardNumber: '', diff --git a/resources/views/portal/invoices/show.blade.php b/resources/views/portal/invoices/show.blade.php index 27bd70817..9b91663ca 100644 --- a/resources/views/portal/invoices/show.blade.php +++ b/resources/views/portal/invoices/show.blade.php @@ -34,7 +34,7 @@ 'novalidate' => 'true', 'class' => 'mb-0' ]) !!} - {{ Form::selectGroup('payment_method', '', 'money el-icon-money', $payment_methods, array_key_first($payment_methods) , ['change' => 'onChangePaymentMethod', 'id' => 'payment-method', 'class' => 'form-control d-none', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'col-sm-12 d-none') }} + {{ Form::selectGroup('payment_method', '', 'money el-icon-money', $payment_methods, array_key_first($payment_methods), ['change' => 'onChangePaymentMethod', 'id' => 'payment-method', 'class' => 'form-control d-none', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'col-sm-12 d-none') }} {!! Form::hidden('document_id', $invoice->id, ['v-model' => 'form.document_id']) !!} {!! Form::close() !!} diff --git a/resources/views/portal/invoices/signed.blade.php b/resources/views/portal/invoices/signed.blade.php index b9bf00176..4c5230130 100644 --- a/resources/views/portal/invoices/signed.blade.php +++ b/resources/views/portal/invoices/signed.blade.php @@ -40,7 +40,7 @@ 'novalidate' => 'true', 'class' => 'mb-0' ]) !!} - {{ Form::selectGroup('payment_method', '', 'money el-icon-money', $payment_methods, array_key_first($payment_methods) , ['change' => 'onChangePaymentMethodSigned', 'id' => 'payment-method', 'class' => 'form-control d-none', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'col-sm-12 d-none') }} + {{ Form::selectGroup('payment_method', '', 'money el-icon-money', $payment_methods, array_key_first($payment_methods), ['change' => 'onChangePaymentMethodSigned', 'id' => 'payment-method', 'class' => 'form-control d-none', 'placeholder' => trans('general.form.select.field', ['field' => trans_choice('general.payment_methods', 1)])], 'col-sm-12 d-none') }} {!! Form::hidden('document_id', $invoice->id, ['v-model' => 'form.document_id']) !!} {!! Form::close() !!}