273 lines
14 KiB
PHP
273 lines
14 KiB
PHP
<div class="row">
|
|
{{-- PICTURE 1 --}}
|
|
<div class="col-12 pb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.picture')) }}</legend>
|
|
<div class="row mb-3">
|
|
{{-- PICTURE_1_ALT --}}
|
|
<div class="col-12 col-md-6 m-md-0 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'explorerpagePicture1Alt',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_alt')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_1_alt',
|
|
'required' => true,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_alt_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_alt')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_1_TITLE --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'explorerpagePicture1Title',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_title')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_1_title',
|
|
'required' => true,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_title_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_title')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_1 --}}
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar-picture', [
|
|
'id' => 'explorerpagePicture1',
|
|
'name' => 'picture_1',
|
|
'width' => 265,
|
|
'height' => 364,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.dimensions_must_be', [
|
|
'widthpx' => '265px',
|
|
'heightpx' => '364px',
|
|
]),
|
|
'required' => true,
|
|
'preview' => true,
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- PICTURE 2 --}}
|
|
<div class="col-12 pb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.picture')) }}</legend>
|
|
<div class="row mb-3">
|
|
{{-- PICTURE_2_ALT --}}
|
|
<div class="col-12 col-md-6 m-md-0 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'explorerpagePicture2Alt',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_alt')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_2_alt',
|
|
'required' => true,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_alt_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_alt')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_2_TITLE --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'explorerpagePicture2Title',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_title')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_2_title',
|
|
'required' => true,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_title_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_title')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_2 --}}
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar-picture', [
|
|
'id' => 'explorerpagePicture2',
|
|
'name' => 'picture_2',
|
|
'width' => 265,
|
|
'height' => 364,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.dimensions_must_be', [
|
|
'widthpx' => '265px',
|
|
'heightpx' => '364px',
|
|
]),
|
|
'required' => true,
|
|
'preview' => true,
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- PICTURE 3 --}}
|
|
<div class="col-12 pb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.picture')) }}</legend>
|
|
<div class="row mb-3">
|
|
{{-- PICTURE_3_ALT --}}
|
|
<div class="col-12 col-md-6 m-md-0 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'explorerpagePicture3Alt',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_alt')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_3_alt',
|
|
'required' => true,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_alt_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_alt')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_3_TITLE --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'explorerpagePicture3Title',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_title')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_3_title',
|
|
'required' => true,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_title_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.attribute_title')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.custom.picture'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE --}}
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar-picture', [
|
|
'id' => 'explorerpagePicture3',
|
|
'name' => 'picture_3',
|
|
'width' => 265,
|
|
'height' => 364,
|
|
'model' => $explorerpageModel ?? null,
|
|
'helper' => __('crud.minicrud.dimensions_must_be', [
|
|
'widthpx' => '265px',
|
|
'heightpx' => '364px',
|
|
]),
|
|
'required' => true,
|
|
'preview' => true,
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- COMMITMENTS --}}
|
|
<div class="col-12 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::of(__('models.classes.commitment'))->plural()->ucfirst() }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.pivot-belongsToMany', [
|
|
'id' => 'explorerpageCommitments',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => Str::of(__('models.classes.commitment'))->plural()->ucfirst(),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.explorerpage'),
|
|
]),
|
|
'name' => 'commitments',
|
|
'required' => false,
|
|
'model' => $explorerpageModel ?? null,
|
|
'itemsList' => $commitmentModels ?? null,
|
|
'itemLimit' => [3, 12],
|
|
'placeholder' => 'Rechercher un engagement',
|
|
'helper' => __('Séléctionnez le ou les :model1 à associer à la :model2 (minimum :min, maximum :max)', [
|
|
'model1' => Str::plural(__('models.classes.commitment')),
|
|
'model2' => __('models.classes.explorerpage'),
|
|
'min' => 3,
|
|
'max' => 12,
|
|
]),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="row">
|
|
<div class="col text-center">
|
|
<p><b>* {{ __('crud.helpers.required_fields') }}</b></p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@push('scripts')
|
|
<script nonce="{{ $nonce }}">
|
|
document.addEventListener("DOMContentLoaded", () => {
|
|
// Submit button clone.
|
|
const submit = document.getElementById('formSubmit')
|
|
submitClone = document.getElementById('formSubmitClone');
|
|
submitClone.addEventListener('click', (event) => {
|
|
event.preventDefault();
|
|
submit.click('');
|
|
})
|
|
});
|
|
</script>
|
|
@endpush
|