mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-10 21:22:58 +01:00
Merge pull request #3995 from beganovich/v2-1708-cp-shipping-country
Fix updating profile details (CP)
This commit is contained in:
commit
f59addeda4
@ -133,7 +133,7 @@
|
||||
</div>
|
||||
<div class="col-span-6 sm:col-span-3">
|
||||
<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 }}"/>
|
||||
@error('website')
|
||||
<div class="validation validation-fail">
|
||||
@ -226,10 +226,10 @@
|
||||
</div>
|
||||
<div class="col-span-6 sm:col-span-2">
|
||||
<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)
|
||||
<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->name }})
|
||||
</option>
|
||||
@ -330,10 +330,10 @@
|
||||
<div class="col-span-4 sm:col-span-2">
|
||||
<label for="shipping_country"
|
||||
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)
|
||||
<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->name }})
|
||||
</option>
|
||||
|
Loading…
Reference in New Issue
Block a user