fix(profile): show and persist line id in profile form
This commit is contained in:
@@ -52,6 +52,7 @@ class ProfileController extends Controller
|
|||||||
$memberFields = [
|
$memberFields = [
|
||||||
'national_id',
|
'national_id',
|
||||||
'phone',
|
'phone',
|
||||||
|
'line_id',
|
||||||
'phone_home',
|
'phone_home',
|
||||||
'phone_fax',
|
'phone_fax',
|
||||||
'address_line_1',
|
'address_line_1',
|
||||||
|
|||||||
@@ -20,6 +20,7 @@ class ProfileUpdateRequest extends FormRequest
|
|||||||
'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)],
|
'email' => ['required', 'string', 'lowercase', 'email', 'max:255', Rule::unique(User::class)->ignore($this->user()->id)],
|
||||||
'national_id' => ['nullable', 'string', 'max:50'],
|
'national_id' => ['nullable', 'string', 'max:50'],
|
||||||
'phone' => ['nullable', 'string', 'max:50'],
|
'phone' => ['nullable', 'string', 'max:50'],
|
||||||
|
'line_id' => ['nullable', 'string', 'max:100'],
|
||||||
'phone_home' => ['nullable', 'string', 'max:50'],
|
'phone_home' => ['nullable', 'string', 'max:50'],
|
||||||
'phone_fax' => ['nullable', 'string', 'max:50'],
|
'phone_fax' => ['nullable', 'string', 'max:50'],
|
||||||
'birth_date' => ['nullable', 'date'],
|
'birth_date' => ['nullable', 'date'],
|
||||||
|
|||||||
@@ -182,6 +182,22 @@
|
|||||||
<x-input-error class="mt-2" :messages="$errors->get('phone')" />
|
<x-input-error class="mt-2" :messages="$errors->get('phone')" />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<x-input-label for="line_id" :value="__('Line ID')" />
|
||||||
|
<x-text-input
|
||||||
|
id="line_id"
|
||||||
|
name="line_id"
|
||||||
|
type="text"
|
||||||
|
class="mt-1 block w-full"
|
||||||
|
:value="old('line_id', optional($member)->line_id)"
|
||||||
|
maxlength="100"
|
||||||
|
autocomplete="off"
|
||||||
|
/>
|
||||||
|
<x-input-error class="mt-2" :messages="$errors->get('line_id')" />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="grid gap-4 sm:grid-cols-2">
|
||||||
<div>
|
<div>
|
||||||
<x-input-label for="phone_home" :value="__('Home Phone')" />
|
<x-input-label for="phone_home" :value="__('Home Phone')" />
|
||||||
<x-text-input
|
<x-text-input
|
||||||
|
|||||||
Reference in New Issue
Block a user