mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2025-05-31 15:24:36 -04:00
Fix updating fields on CP profile page
This commit is contained in:
parent
048c6992c5
commit
0df8cdf413
@ -133,7 +133,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-span-6 sm:col-span-3">
|
<div class="col-span-6 sm:col-span-3">
|
||||||
<label for="website" class="input-label">@lang('texts.website')</label>
|
<label for="website" class="input-label">@lang('texts.website')</label>
|
||||||
<input id="website" class="input w-full" name="last_name"
|
<input id="website" class="input w-full" name="website"
|
||||||
value="{{ auth()->user()->client->website }}"/>
|
value="{{ auth()->user()->client->website }}"/>
|
||||||
@error('website')
|
@error('website')
|
||||||
<div class="validation validation-fail">
|
<div class="validation validation-fail">
|
||||||
@ -226,10 +226,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="col-span-6 sm:col-span-2">
|
<div class="col-span-6 sm:col-span-2">
|
||||||
<label for="country" class="input-label">@lang('texts.country')</label>
|
<label for="country" class="input-label">@lang('texts.country')</label>
|
||||||
<select id="country" class="input w-full form-select" name="country">
|
<select id="country" class="input w-full form-select" name="country_id">
|
||||||
@foreach($countries as $country)
|
@foreach($countries as $country)
|
||||||
<option
|
<option
|
||||||
{{ $country == isset(auth()->user()->client->country->id) ? 'selected' : null }} value="{{ $country->id }}">
|
{{ $country->id == auth()->user()->client->country_id ? 'selected' : null }} value="{{ $country->id }}">
|
||||||
{{ $country->iso_3166_2 }}
|
{{ $country->iso_3166_2 }}
|
||||||
({{ $country->name }})
|
({{ $country->name }})
|
||||||
</option>
|
</option>
|
||||||
@ -330,10 +330,10 @@
|
|||||||
<div class="col-span-4 sm:col-span-2">
|
<div class="col-span-4 sm:col-span-2">
|
||||||
<label for="shipping_country"
|
<label for="shipping_country"
|
||||||
class="input-label">@lang('texts.shipping_country')</label>
|
class="input-label">@lang('texts.shipping_country')</label>
|
||||||
<select id="shipping_country" class="input w-full form-select" name="shipping_country">
|
<select id="shipping_country" class="input w-full form-select" name="shipping_country_id">
|
||||||
@foreach($countries as $country)
|
@foreach($countries as $country)
|
||||||
<option
|
<option
|
||||||
{{ $country == isset(auth()->user()->client->shipping_country->id) ? 'selected' : null }} value="{{ $country->id }}">
|
{{ $country->id == auth()->user()->client->shipping_country_id ? 'selected' : null }} value="{{ $country->id }}">
|
||||||
{{ $country->iso_3166_2 }}
|
{{ $country->iso_3166_2 }}
|
||||||
({{ $country->name }})
|
({{ $country->name }})
|
||||||
</option>
|
</option>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user