approve quote with one click, instead of pushing to another page

This commit is contained in:
Benjamin Beganović 2021-02-17 11:39:22 +01:00
parent 6872057207
commit 5ba725d5e4
2 changed files with 4 additions and 2 deletions

View File

@ -4142,6 +4142,7 @@ $LANG = array(
'recurring_cancellation_request_body' => ':contact from Client :client requested to cancel Recurring Invoice :invoice',
'hello' => 'Hello',
'group_documents' => 'Group documents',
'quote_approval_confirmation_label' => 'Are you sure you want to approve this quote?',
);
return $LANG;

View File

@ -1,6 +1,7 @@
<form action="{{ route('client.quotes.bulk') }}" method="post">
<form action="{{ route('client.quotes.bulk') }}" method="post" onsubmit="return confirm('{{ ctrans('texts.quote_approval_confirmation_label') }}')">
@csrf
<input type="hidden" name="action" value="approve">
<input type="hidden" name="process" value="true">
<input type="hidden" name="quotes[]" value="{{ $quote->hashed_id }}">
<div class="bg-white shadow sm:rounded-lg">
@ -11,7 +12,7 @@
{{ ctrans('texts.waiting_for_approval') }}
</h3>
<div class="mt-2 max-w-xl text-sm leading-5 text-gray-500">
<p translate>
<p>
{{ ctrans('texts.quote_still_not_approved') }}
</p>
</div>