mirror of
				https://github.com/invoiceninja/invoiceninja.git
				synced 2025-11-02 22:57:33 -05:00 
			
		
		
		
	approve quote with one click, instead of pushing to another page
This commit is contained in:
		
							parent
							
								
									6872057207
								
							
						
					
					
						commit
						5ba725d5e4
					
				@ -4142,6 +4142,7 @@ $LANG = array(
 | 
				
			|||||||
     'recurring_cancellation_request_body' => ':contact from Client :client requested to cancel Recurring Invoice :invoice',
 | 
					     'recurring_cancellation_request_body' => ':contact from Client :client requested to cancel Recurring Invoice :invoice',
 | 
				
			||||||
     'hello' => 'Hello',
 | 
					     'hello' => 'Hello',
 | 
				
			||||||
     'group_documents' => 'Group documents',
 | 
					     'group_documents' => 'Group documents',
 | 
				
			||||||
 | 
					     'quote_approval_confirmation_label' => 'Are you sure you want to approve this quote?',
 | 
				
			||||||
);
 | 
					);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
return $LANG;
 | 
					return $LANG;
 | 
				
			||||||
 | 
				
			|||||||
@ -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
 | 
					    @csrf
 | 
				
			||||||
    <input type="hidden" name="action" value="approve">
 | 
					    <input type="hidden" name="action" value="approve">
 | 
				
			||||||
 | 
					    <input type="hidden" name="process" value="true">
 | 
				
			||||||
    <input type="hidden" name="quotes[]" value="{{ $quote->hashed_id }}">
 | 
					    <input type="hidden" name="quotes[]" value="{{ $quote->hashed_id }}">
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    <div class="bg-white shadow sm:rounded-lg">
 | 
					    <div class="bg-white shadow sm:rounded-lg">
 | 
				
			||||||
@ -11,7 +12,7 @@
 | 
				
			|||||||
                        {{ ctrans('texts.waiting_for_approval') }}
 | 
					                        {{ ctrans('texts.waiting_for_approval') }}
 | 
				
			||||||
                    </h3>
 | 
					                    </h3>
 | 
				
			||||||
                    <div class="mt-2 max-w-xl text-sm leading-5 text-gray-500">
 | 
					                    <div class="mt-2 max-w-xl text-sm leading-5 text-gray-500">
 | 
				
			||||||
                        <p translate>
 | 
					                        <p>
 | 
				
			||||||
                            {{ ctrans('texts.quote_still_not_approved') }}
 | 
					                            {{ ctrans('texts.quote_still_not_approved') }}
 | 
				
			||||||
                        </p>
 | 
					                        </p>
 | 
				
			||||||
                    </div>
 | 
					                    </div>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user