fix(translations): correct formatting in employee number message
style(forms): remove asterisk from required labels in various forms
This commit is contained in:
parent
ec14a31f72
commit
54752d5d05
12 changed files with 84 additions and 26 deletions
|
|
@ -442,7 +442,7 @@
|
|||
"Please confirm your password before continuing.": "Veuillez confirmer votre mot de passe avant de continuer.",
|
||||
"Please contact your HR department for your access code": "Merci de vous rapprocher de votre service RH pour connaître votre code d'accès",
|
||||
"Please enter a period to view statistics": "Veuillez renseigner une période afin de visualiser les statistiques",
|
||||
"Please enter your employee number (available on your payslip), 7 characters long (e.g. v00115590 --> 0115590).": "Merci de renseigner votre matricule (disponible sur votre bulletin de salaire), sur 7 caractères (ex : v00115590 -->0115590).",
|
||||
"Please enter your employee number (available on your payslip), 7 characters long (e.g. v00115590->0115590).": "Merci de renseigner votre matricule (disponible sur votre bulletin de salaire), sur 7 caractères (ex : v00115590->0115590).",
|
||||
"Please note: The scheduled postponement is a one-time event and will not repeat automatically.": "Attention : le report configuré est ponctuel et ne se répétera pas automatiquement.",
|
||||
"postal": "Code postal",
|
||||
"Postal address": "Adresse postale",
|
||||
|
|
|
|||
|
|
@ -61,3 +61,8 @@
|
|||
.select-none {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
.form-group:has([required]) > label::after {
|
||||
color: var(--bs-danger);
|
||||
content: ' *';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -162,3 +162,10 @@
|
|||
.bottom-n15px {
|
||||
bottom: -15px !important;
|
||||
}
|
||||
|
||||
.form-floating > .form-control[required] ~ label::after,
|
||||
.form-floating > .form-select[required] ~ label::after,
|
||||
.form-check:has([required]) > label::after {
|
||||
color: var(--bs-danger);
|
||||
content: ' *';
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<div class="row mb-3">
|
||||
<!-- QUESTION -->
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="faq-question"><b>{{ Str::ucfirst(__('validation.custom.attributes.question')) }}*</b></label>
|
||||
<label class="col-form-label" for="faq-question"><b>{{ Str::ucfirst(__('validation.custom.attributes.question')) }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'faq-question'])'></div>
|
||||
<input class="form-control" id="faq-question" name="question" type="text" value="{{ old('question', $faq->question ?? '') }}"
|
||||
aria-describedby="faq-question-help" placeholder="{{ Str::ucfirst(__('validation.custom.attributes.question')) }}" required>
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@
|
|||
<div class="word-counter" data-json='@json(['for' => 'page-seo_title'])'></div>
|
||||
<input class="form-control" id="page-seo_title" name="seo_title" type="text"
|
||||
value="{{ old('seo_title', $page->seo_title ?? '') }}" aria-describedby="page-seo_title-help"
|
||||
placeholder="{{ Str::ucfirst(__('validation.custom.attributes.seo_title')) }}">
|
||||
placeholder="{{ Str::ucfirst(__('validation.custom.attributes.seo_title')) }}" required>
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'seo_title',
|
||||
'helperId' => 'page-seo_title-help',
|
||||
|
|
@ -32,7 +32,7 @@
|
|||
<div class="word-counter" data-json='@json(['for' => 'page-seo_description'])'></div>
|
||||
<input class="form-control" id="page-seo_description" name="seo_description" type="text"
|
||||
value="{{ old('seo_description', $page->seo_description ?? '') }}" aria-describedby="page-seo_description-help"
|
||||
placeholder="{{ Str::ucfirst(__('validation.custom.attributes.seo_description')) }}">
|
||||
placeholder="{{ Str::ucfirst(__('validation.custom.attributes.seo_description')) }}" required>
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'seo_description',
|
||||
'helperId' => 'page-seo_description-help',
|
||||
|
|
@ -67,7 +67,7 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col form-group">
|
||||
<label class="col-form-label" for="page-content"><b>{{ Str::ucfirst(__('Contenu principal (HTML)')) }}*</b></label>
|
||||
<label class="col-form-label" for="page-content"><b>{{ Str::ucfirst(__('Contenu principal (HTML)')) }}</b></label>
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'content',
|
||||
'helper' => __('Complete content of the page.'),
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="row mb-3">
|
||||
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="exception-date"><b>{{ Str::ucfirst(__('validation.attributes.date')) }}*</b></label>
|
||||
<label class="col-form-label" for="exception-date"><b>{{ Str::ucfirst(__('validation.attributes.date')) }}</b></label>
|
||||
<input class="form-control" id="exception-date" name="date" type="date"
|
||||
value="{{ old('date', isset($pickupException->date) ? \Carbon\Carbon::parse($pickupException->date)->format('Y-m-d') : '') }}"
|
||||
aria-describedby="exception-date-help" required>
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label"
|
||||
for="exception-label"><b>{{ Str::ucfirst(__('validation.custom.attributes.label')) ?? __('Label') }}*</b></label>
|
||||
for="exception-label"><b>{{ Str::ucfirst(__('validation.custom.attributes.label')) ?? __('Label') }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'exception-label'])'></div>
|
||||
<input class="form-control" id="exception-label" name="label" type="text"
|
||||
value="{{ old('label', $pickupException->label ?? '') }}" aria-describedby="exception-label-help"
|
||||
|
|
@ -57,8 +57,7 @@
|
|||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label"
|
||||
for="exception-frequency"><b>{{ Str::ucfirst(__('validation.custom.attributes.repeat_frequency')) ?? __('Frequency') }}</b></label>
|
||||
<select class="form-control" id="exception-frequency" name="repeat_frequency" aria-describedby="exception-frequency-help"
|
||||
required>
|
||||
<select class="form-control" id="exception-frequency" name="repeat_frequency" aria-describedby="exception-frequency-help">
|
||||
<option value="" @if (!old('repeat_frequency', $pickupException->repeat_frequency ?? null)) selected @endif disabled>
|
||||
{{ __('Select') . ' ' . __('validation.custom.attributes.repeat_frequency') }}
|
||||
</option>
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@
|
|||
@if (!request()->routeIs('bo.products.incos.create'))
|
||||
{{-- NO ART --}}
|
||||
<div class="col-12 col-md-4 form-group">
|
||||
<label class="col-form-label" for="inco-no-art"><b>{{ Str::ucfirst(__('validation.custom.attributes.no_art')) }}*</b></label>
|
||||
<label class="col-form-label" for="inco-no-art"><b>{{ Str::ucfirst(__('validation.custom.attributes.no_art')) }}</b></label>
|
||||
<input class="form-control" id="inco-no-art" name="no_art" type="number" value="{{ old('no_art', $inco->no_art ?? '') }}"
|
||||
step="1" min="0" readonly disabled>
|
||||
@include('bo.modules.input-error', ['inputName' => 'no_art'])
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@
|
|||
<legend>{{ __('General Information') }}</legend>
|
||||
<div class="row mb-3">
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="product-name"><b>{{ Str::ucfirst(__('validation.attributes.name')) }}*</b></label>
|
||||
<label class="col-form-label" for="product-name"><b>{{ Str::ucfirst(__('validation.attributes.name')) }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'product-name'])'></div>
|
||||
<input class="form-control" id="product-name" name="name" type="text" value="{{ old('name', $product->name ?? '') }}"
|
||||
aria-describedby="product-name-help" placeholder="{{ Str::ucfirst(__('validation.attributes.name')) }}" required>
|
||||
|
|
@ -17,12 +17,12 @@
|
|||
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="product-brand">
|
||||
<b>{{ Str::ucfirst(__('validation.custom.attributes.brand')) }}</b>
|
||||
<b>{{ Str::ucfirst(__('validation.custom.attributes.brand')) }}*</b>
|
||||
<span data-bs-toggle="tooltip" title="{{ __('Product brand') }}">
|
||||
<i class="fas fa-question-circle"></i>
|
||||
</span>
|
||||
</label>
|
||||
<select class="form-select" id="product-brand" name="brand" aria-describedby="product-brand-help" required>
|
||||
<select class="form-select" id="product-brand" name="brand" aria-describedby="product-brand-help">
|
||||
<option value="" @if (!old('brand', $product->brand ?? null)) selected @endif disabled>
|
||||
{{ __('Select') . ' ' . __('validation.custom.attributes.brand') }}
|
||||
</option>
|
||||
|
|
@ -89,7 +89,7 @@
|
|||
<div class="row">
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label"
|
||||
for="product-short-description"><b>{{ Str::ucfirst(__('validation.custom.attributes.short_description')) }}*</b></label>
|
||||
for="product-short-description"><b>{{ Str::ucfirst(__('validation.custom.attributes.short_description')) }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'product-short-description'])'></div>
|
||||
<input class="form-control" id="product-short-description" name="short_description" type="text"
|
||||
value="{{ old('short_description', $product->short_description ?? '') }}" aria-describedby="product-short-description-help"
|
||||
|
|
@ -146,14 +146,38 @@
|
|||
<label class="col-form-label" for="picture-alt"><b>{{ Str::ucfirst(__('validation.custom.attributes.picture_alt')) }}</b></label>
|
||||
<input class="form-control" id="picture-alt" name="picture_alt" type="text"
|
||||
value="{{ old('picture_alt', $product->picture_alt ?? '') }}">
|
||||
@include('bo.modules.input-error', ['inputName' => 'picture_alt'])
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'picture_alt',
|
||||
'helperId' => 'product-picture-alt-help',
|
||||
'helper' => __('validation.between.string', [
|
||||
'attribute' => __(':field :inter:model', [
|
||||
'field' => __('validation.custom.attributes.picture_alt'),
|
||||
'inter' => __('validation.custom.of_the.male'),
|
||||
'model' => trans_choice('models.classes.products', 1),
|
||||
]),
|
||||
'min' => 4,
|
||||
'max' => 75,
|
||||
]),
|
||||
])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label"
|
||||
for="picture-title"><b>{{ Str::ucfirst(__('validation.custom.attributes.picture_title')) }}</b></label>
|
||||
<input class="form-control" id="picture-title" name="picture_title" type="text"
|
||||
value="{{ old('picture_title', $product->picture_title ?? '') }}">
|
||||
@include('bo.modules.input-error', ['inputName' => 'picture_title'])
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'picture_title',
|
||||
'helperId' => 'product-picture-title-help',
|
||||
'helper' => __('validation.between.string', [
|
||||
'attribute' => __(':field :inter:model', [
|
||||
'field' => __('validation.custom.attributes.picture_title'),
|
||||
'inter' => __('validation.custom.of_the.male'),
|
||||
'model' => trans_choice('models.classes.products', 1),
|
||||
]),
|
||||
'min' => 4,
|
||||
'max' => 75,
|
||||
]),
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
|
@ -180,14 +204,38 @@
|
|||
for="picture-large-alt"><b>{{ Str::ucfirst(__('validation.custom.attributes.picture_large_alt')) }}</b></label>
|
||||
<input class="form-control" id="picture-large-alt" name="picture_large_alt" type="text"
|
||||
value="{{ old('picture_large_alt', $product->picture_large_alt ?? '') }}">
|
||||
@include('bo.modules.input-error', ['inputName' => 'picture_large_alt'])
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'picture_large_alt',
|
||||
'helperId' => 'product-picture-large-alt-help',
|
||||
'helper' => __('validation.between.string', [
|
||||
'attribute' => __(':field :inter:model', [
|
||||
'field' => __('validation.custom.attributes.picture_large_alt'),
|
||||
'inter' => __('validation.custom.of_the.male'),
|
||||
'model' => trans_choice('models.classes.products', 1),
|
||||
]),
|
||||
'min' => 4,
|
||||
'max' => 75,
|
||||
]),
|
||||
])
|
||||
</div>
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label"
|
||||
for="picture-large-title"><b>{{ Str::ucfirst(__('validation.custom.attributes.picture_large_title')) }}</b></label>
|
||||
<input class="form-control" id="picture-large-title" name="picture_large_title" type="text"
|
||||
value="{{ old('picture_large_title', $product->picture_large_title ?? '') }}">
|
||||
@include('bo.modules.input-error', ['inputName' => 'picture_large_title'])
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'picture_large_title',
|
||||
'helperId' => 'product-picture-large-title-help',
|
||||
'helper' => __('validation.between.string', [
|
||||
'attribute' => __(':field :inter:model', [
|
||||
'field' => __('validation.custom.attributes.picture_large_title'),
|
||||
'inter' => __('validation.custom.of_the.male'),
|
||||
'model' => trans_choice('models.classes.products', 1),
|
||||
]),
|
||||
'min' => 4,
|
||||
'max' => 75,
|
||||
]),
|
||||
])
|
||||
</div>
|
||||
</div>
|
||||
</fieldset>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="row mb-3">
|
||||
<!-- Titre -->
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="range-name"><b>{{ Str::ucfirst(__('validation.attributes.name')) }}*</b></label>
|
||||
<label class="col-form-label" for="range-name"><b>{{ Str::ucfirst(__('validation.attributes.name')) }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'range-name'])'></div>
|
||||
<input class="form-control" id="range-name" name="name" type="text" value="{{ old('name', $range->name ?? '') }}"
|
||||
aria-describedby="range-name-help" placeholder="{{ Str::ucfirst(__('validation.attributes.name')) }}" required>
|
||||
|
|
@ -38,7 +38,7 @@
|
|||
|
||||
<div class="row">
|
||||
<div class="col form-group">
|
||||
<label class="col-form-label" for="range-description"><b>{{ Str::ucfirst(__('Description (HTML)')) }}*</b></label>
|
||||
<label class="col-form-label" for="range-description"><b>{{ Str::ucfirst(__('Description (HTML)')) }}</b></label>
|
||||
@include('bo.modules.input-error', [
|
||||
'inputName' => 'description',
|
||||
'helper' => __('Complete content of the range.'),
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="row mb-3">
|
||||
<!-- Titre -->
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="slide-title"><b>{{ Str::ucfirst(__('validation.attributes.title')) }}*</b></label>
|
||||
<label class="col-form-label" for="slide-title"><b>{{ Str::ucfirst(__('validation.attributes.title')) }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'slide-title'])'></div>
|
||||
<input class="form-control" id="slide-title" name="title" type="text" value="{{ old('title', $slide->title ?? '') }}"
|
||||
aria-describedby="slide-title-help" placeholder="{{ Str::ucfirst(__('validation.attributes.title')) }}" required>
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@
|
|||
<div class="row mb-3">
|
||||
<!-- Label -->
|
||||
<div class="col-12 col-md-6 form-group">
|
||||
<label class="col-form-label" for="slide-label"><b>{{ Str::ucfirst(__('validation.custom.attributes.label')) }}*</b></label>
|
||||
<label class="col-form-label" for="slide-label"><b>{{ Str::ucfirst(__('validation.custom.attributes.label')) }}</b></label>
|
||||
<div class="word-counter" data-json='@json(['for' => 'slide-label'])'></div>
|
||||
<input class="form-control" id="slide-label" name="label" type="text" value="{{ old('label', $tag->label ?? '') }}"
|
||||
aria-describedby="tag-label-help" placeholder="{{ Str::ucfirst(__('validation.custom.attributes.label')) }}" required>
|
||||
|
|
|
|||
|
|
@ -26,7 +26,7 @@
|
|||
|
||||
{{-- CONSIGNES MATRICULE --}}
|
||||
<div class="alert alert-warning small mb-3 py-2 text-center" role="alert">
|
||||
{{ __('Please enter your employee number (available on your payslip), 7 characters long (e.g. v00115590 --> 0115590).') }}
|
||||
{{ __('Please enter your employee number (available on your payslip), 7 characters long (e.g. v00115590->0115590).') }}
|
||||
</div>
|
||||
|
||||
{{-- MATRICULE --}}
|
||||
|
|
@ -100,7 +100,7 @@
|
|||
<div class="col-12 col-sm-6">
|
||||
<div class="form-floating">
|
||||
<input class="form-control @error('phone') is-invalid @enderror" id="phone" name="phone" type="tel"
|
||||
value="{{ old('phone') }}" placeholder="{{ __('validation.attributes.phone') }}" required autocomplete="tel">
|
||||
value="{{ old('phone') }}" placeholder="{{ __('validation.attributes.phone') }}" autocomplete="tel">
|
||||
<label for="phone">{{ Str::ucfirst(__('validation.attributes.phone')) }}</label>
|
||||
</div>
|
||||
@error('phone')
|
||||
|
|
@ -122,8 +122,7 @@
|
|||
{{-- COORDONNÉES POSTALES --}}
|
||||
<div class="form-floating mb-4">
|
||||
<input class="form-control @error('address') is-invalid @enderror" id="address" name="address" type="text"
|
||||
value="{{ old('address') }}" placeholder="{{ __('validation.attributes.address') }}" required
|
||||
autocomplete="street-address">
|
||||
value="{{ old('address') }}" placeholder="{{ __('validation.attributes.address') }}" autocomplete="street-address">
|
||||
<label for="address">{{ Str::ucfirst(__('validation.attributes.address')) }}</label>
|
||||
@error('address')
|
||||
<span class="invalid-feedback" role="alert"><strong>{{ $message }}</strong></span>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue