mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-11-15 18:53:32 -05:00
* make container nicer * assets rebuild * authorize powerband card (3ds) * add reference to build file * update authorize (3ds) view * assets rebuild * unify 3ds and non-3ds auth/pay * assets rebuild * authorize * pay * update vite refs * pay * hide authorize button * intercepting form on authorize * assets build * wip * init powerboard in data ref * fixes for blank placeholders * reset the form on failed 3ds * handling unsuccessful errors * send email on payment failed * fixes for 3ds fail on auth * assets rebuild * make card_name required * make card_name required (on auth) * fixes for blocked pay-now button * fixes for reload * fixes for reload * build * Fixes for broken powerboard * make client name required * skip fields checking if no required fields * on request, return json response * check for plain not_authenticated response * flash message when no action is present * fixes for exec order on token * assets build * check for plain not_authenticated response (pay) * assets build * adjustments for minimum payments * Add text decoration to terms button * Improvements for subscriptions and new payment flow --------- Co-authored-by: Benjamin Beganović <k1pstabug@gmail.com>
38 lines
1.6 KiB
PHP
38 lines
1.6 KiB
PHP
<div class="pb-8">
|
|
<div class="bg-white p-6 rounded-lg shadow-lg">
|
|
<h2 class="text-xl text-center py-0 px-4">{{ ctrans('texts.terms') }}</h2>
|
|
<div class="mt-0 h-64 overflow-y-auto">
|
|
<div class="py-0">
|
|
<p class="text-sm leading-6 font-medium text-gray-500">{{ ctrans('texts.invoice') }} {{ $invoice->number }}:</p>
|
|
@if($variables && $invoice->terms)
|
|
<h5 data-ref="entity-terms">{!! $invoice->parseHtmlVariables('terms', $variables) !!}</h5>
|
|
@elseif($invoice->terms)
|
|
<h5 data-ref="entity-terms" class="text-sm leading-5 text-gray-900">{!! $invoice->terms !!}</h5>
|
|
@else
|
|
<i class="text-sm leading-5 text-gray-500">{{ ctrans('texts.not_specified') }}</i>
|
|
@endif
|
|
</div>
|
|
</div>
|
|
<div class="flex flex-col items-end px-4 py-4">
|
|
<div class="w-full flex justify-end mb-2">
|
|
<button id="accept-terms-button" class="button button-primary bg-primary hover:bg-primary-darken">{{ ctrans('texts.next') }}</button>
|
|
</div>
|
|
<span class="text-xs text-gray-600 text-right">{{ ctrans('texts.by_clicking_next_you_accept_terms')}}</span>
|
|
</div>
|
|
</div>
|
|
|
|
@script
|
|
<script>
|
|
|
|
document.addEventListener('DOMContentLoaded', function () {
|
|
|
|
document.getElementById('accept-terms-button').addEventListener('click', function() {
|
|
$wire.dispatch('terms-accepted');
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
@endscript
|
|
|
|
</div> |