mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 05:02:36 +01:00
Add hidden input fields for contact information in billing portal purchase form
This commit is contained in:
parent
ecefa336d2
commit
af27cd0b4e
@ -138,6 +138,9 @@
|
||||
<input type="hidden" name="action" value="payment">
|
||||
<input type="hidden" name="company_gateway_id" value="{{ $company_gateway_id }}"/>
|
||||
<input type="hidden" name="payment_method_id" value="{{ $payment_method_id }}"/>
|
||||
<input type="hidden" name="contact_first_name" value="{{ $contact->first_name }}">
|
||||
<input type="hidden" name="contact_last_name" value="{{ $contact->last_name }}">
|
||||
<input type="hidden" name="contact_email" value="{{ $contact->email }}">
|
||||
</form>
|
||||
|
||||
@if($steps['started_payment'] == false)
|
||||
@ -174,7 +177,39 @@
|
||||
{{ ctrans('texts.trial_call_to_action') }}
|
||||
</button>
|
||||
</form>
|
||||
@elseif($steps['check_rff'])
|
||||
@if($errors->any())
|
||||
<div class="alert alert-failure mb-4">
|
||||
@foreach($errors->all() as $error)
|
||||
<p>{{ $error }}</p>
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
|
||||
<form wire:submit="handleRff">
|
||||
@csrf
|
||||
|
||||
<div class="col-auto mt-3">
|
||||
<label for="first_name" class="input-label">{{ ctrans('texts.first_name') }}</label>
|
||||
<input id="first_name" class="input w-full" wire:model="contact_first_name" />
|
||||
</div>
|
||||
|
||||
<div class="col-auto mt-3">
|
||||
<label for="last_name" class="input-label">{{ ctrans('texts.last_name') }}</label>
|
||||
<input id="last_name" class="input w-full" wire:model="contact_last_name" />
|
||||
</div>
|
||||
|
||||
<div class="col-auto mt-3 @if($contact->email) !== 0) hidden @endif">
|
||||
<label for="email" class="input-label">{{ ctrans('texts.email') }}</label>
|
||||
<input id="email" class="input w-full" wire:model="contact_email" />
|
||||
</div>
|
||||
|
||||
<button
|
||||
type="submit"
|
||||
class="button button-block bg-primary text-white mt-4">
|
||||
{{ ctrans('texts.next') }}
|
||||
</button>
|
||||
</form>
|
||||
@else
|
||||
<form wire:submit="authenticate" class="mt-8">
|
||||
@csrf
|
||||
|
Loading…
Reference in New Issue
Block a user