1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-05 18:52:44 +01:00

Fix updating fields on CP profile page

This commit is contained in:
Benjamin Beganović 2020-08-17 18:10:50 +02:00
parent 048c6992c5
commit 0df8cdf413

View File

@ -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>