mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-08-30 23:20:34 -04:00
Hide "Pay now" button if no available payment methods
This commit is contained in:
parent
a0db7fdb1e
commit
c985bdf1aa
@ -3264,4 +3264,7 @@ return [
|
|||||||
'payment_error_code_20087' => '20087: Bad Track Data (invalid CVV and/or expiry date)',
|
'payment_error_code_20087' => '20087: Bad Track Data (invalid CVV and/or expiry date)',
|
||||||
|
|
||||||
'download_selected' => 'Download selected',
|
'download_selected' => 'Download selected',
|
||||||
|
|
||||||
|
'to_pay_invoices' => 'To pay invoices, you have to',
|
||||||
|
'add_payment_method_first' => 'add payment method, first',
|
||||||
];
|
];
|
||||||
|
@ -5,7 +5,6 @@
|
|||||||
<meta name="show-invoice-terms" content="{{ $settings->show_accept_invoice_terms ? true : false }}">
|
<meta name="show-invoice-terms" content="{{ $settings->show_accept_invoice_terms ? true : false }}">
|
||||||
<meta name="require-invoice-signature" content="{{ $settings->require_invoice_signature ? true : false }}">
|
<meta name="require-invoice-signature" content="{{ $settings->require_invoice_signature ? true : false }}">
|
||||||
<script src="https://cdn.jsdelivr.net/npm/signature_pad@2.3.2/dist/signature_pad.min.js"></script>
|
<script src="https://cdn.jsdelivr.net/npm/signature_pad@2.3.2/dist/signature_pad.min.js"></script>
|
||||||
<meta name="turbolinks-visit-control" content="reload">
|
|
||||||
@endpush
|
@endpush
|
||||||
|
|
||||||
@section('body')
|
@section('body')
|
||||||
@ -23,6 +22,8 @@
|
|||||||
<div class="col-span-6 md:col-start-2 md:col-span-4">
|
<div class="col-span-6 md:col-start-2 md:col-span-4">
|
||||||
<div class="flex justify-end">
|
<div class="flex justify-end">
|
||||||
<div class="flex justify-end mb-2">
|
<div class="flex justify-end mb-2">
|
||||||
|
<!-- Pay now button -->
|
||||||
|
@if(count($payment_methods) > 0)
|
||||||
<div x-data="{ open: false }" @keydown.window.escape="open = false" @click.away="open = false"
|
<div x-data="{ open: false }" @keydown.window.escape="open = false" @click.away="open = false"
|
||||||
class="relative inline-block text-left">
|
class="relative inline-block text-left">
|
||||||
<div>
|
<div>
|
||||||
@ -53,6 +54,12 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@else
|
||||||
|
<span class="inline-flex items-center text-sm">
|
||||||
|
<span>{{ ctrans('texts.to_pay_invoices') }} </span>
|
||||||
|
<a class="button-link" href="{{ route('client.payment_methods.index') }}">{{ ctrans('texts.add_payment_method_first') }}.</a>
|
||||||
|
</span>
|
||||||
|
@endif
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user