1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 21:22:58 +01:00

Fixes for model binding in livewire

This commit is contained in:
David Bomba 2021-06-15 09:47:10 +10:00
parent ddad699925
commit 8a217358a8
2 changed files with 6 additions and 6 deletions

View File

@ -58,7 +58,7 @@ class UpdatePaymentMethods
// } // }
private function updateMethods(Customer $customer, Client $client) public function updateMethods(Customer $customer, Client $client)
{ {
$card_methods = PaymentMethod::all([ $card_methods = PaymentMethod::all([
'customer' => $customer->id, 'customer' => $customer->id,

View File

@ -53,19 +53,19 @@
<div class="radio mr-4"> <div class="radio mr-4">
<input class="form-radio cursor-pointer" type="radio" value="US" name="country" checked <input class="form-radio cursor-pointer" type="radio" value="US" name="country" checked
wire:model="country"> wire:model.defer="country">
<span>{{ ctrans('texts.country_United States') }}</span> <span>{{ ctrans('texts.country_United States') }}</span>
</div> </div>
<div class="radio mr-4"> <div class="radio mr-4">
<input class="form-radio cursor-pointer" type="radio" value="CA" name="country" <input class="form-radio cursor-pointer" type="radio" value="CA" name="country"
wire:model="country"> wire:model.defer="country">
<span>{{ ctrans('texts.country_Canada') }}</span> <span>{{ ctrans('texts.country_Canada') }}</span>
</div> </div>
<div class="radio mr-4"> <div class="radio mr-4">
<input class="form-radio cursor-pointer" type="radio" value="GB" name="country" <input class="form-radio cursor-pointer" type="radio" value="GB" name="country"
wire:model="country"> wire:model.defer="country">
<span>{{ ctrans('texts.country_United Kingdom') }}</span> <span>{{ ctrans('texts.country_United Kingdom') }}</span>
</div> </div>
@ -76,7 +76,7 @@
<label for="country" class="input-label">@lang('texts.debit_cards')</label> <label for="country" class="input-label">@lang('texts.debit_cards')</label>
<div class="checkbox"> <div class="checkbox">
<input class="form-checkbox cursor-pointer mr-2" type="checkbox" name="debit_cards" value="1" wire:model="debit_cards"> <input class="form-checkbox cursor-pointer mr-2" type="checkbox" name="debit_cards" value="1" wire:model.defer="debit_cards">
<span>{{ ctrans('texts.accept_debit_cards') }}</span> <span>{{ ctrans('texts.accept_debit_cards') }}</span>
</div> </div>
</div> </div>
@ -95,7 +95,7 @@
<div class="col-span-6 sm:col-span-4"> <div class="col-span-6 sm:col-span-4">
<label for="country" class="input-label"></label> <label for="country" class="input-label"></label>
<div class="checkbox"> <div class="checkbox">
<input class="form-checkbox cursor-pointer mr-2" type="checkbox" name="wepay_payment_tos_agree" value="1" wire:model="wepay_payment_tos_agree"> <input class="form-checkbox cursor-pointer mr-2" type="checkbox" name="wepay_payment_tos_agree" value="1" wire:model.defer="wepay_payment_tos_agree">
<span>{!! ctrans('texts.wepay_payment_tos_agree', ['terms' => $terms, 'privacy_policy' => $privacy_policy]) !!}</span> <span>{!! ctrans('texts.wepay_payment_tos_agree', ['terms' => $terms, 'privacy_policy' => $privacy_policy]) !!}</span>
</div> </div>
@error('wepay_payment_tos_agree') @error('wepay_payment_tos_agree')