Merge branch '326-postcode-required' into 'develop'
feat: ✨ make postcode required in contact form
See merge request ldc-web/projets/le-gaulois-pro!242
This commit is contained in:
commit
c02cf6b6ae
2 changed files with 4 additions and 4 deletions
|
|
@ -48,7 +48,7 @@ class ContactRequest extends FormRequest
|
|||
'phone' => 'required|max:255|phone:' . implode(',', $this->isoCodes()),
|
||||
'activity' => ['required', new Enum(ContactActivityEnum::class)],
|
||||
'society' => 'nullable|string|max:255',
|
||||
'postcode' => 'nullable|postal_code:' . implode(',', $this->isoCodes()),
|
||||
'postcode' => 'required|postal_code:' . implode(',', $this->isoCodes()),
|
||||
'city' => 'nullable|string|max:255',
|
||||
'message' => 'required|string|min:20|max:255',
|
||||
'callTime' => ['required', new Enum(ContactTimeEnum::class)],
|
||||
|
|
|
|||
|
|
@ -77,7 +77,7 @@
|
|||
</div>
|
||||
<div class="col-12 col-sm-6 d-flex justify-content-center justify-content-sm-start flex-wrap">
|
||||
<input class="form-control black-square mb-3 p-3" id="postcode" name="postcode" type="text"
|
||||
value="{{ $val('postcode') }}" placeholder="{{ __('Code postal') }}">
|
||||
value="{{ $val('postcode') }}" placeholder="{{ __('Code postal *') }}" required>
|
||||
@include('fo.modules.input-error', ['inputName' => 'postcode'])
|
||||
</div>
|
||||
<div class="col-12 col-sm-6 d-flex justify-content-center justify-content-sm-start flex-wrap">
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue