191 lines
9.5 KiB
PHP
191 lines
9.5 KiB
PHP
<div class="row">
|
|
{{-- TITLE --}}
|
|
<div class="col-12 col-lg-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ str(__('validation.attributes.title'))->ucFirst() }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'professionTitle',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => str(__('validation.attributes.title'))->ucFirst(),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'title',
|
|
'required' => true,
|
|
'model' => $professionModel ?? null,
|
|
'helper' => __('validation.between.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.attributes.title'),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
'min' => 3,
|
|
'max' => 255,
|
|
]),
|
|
'placeholder' => __(':field :inter:model', [
|
|
'field' => str(__('validation.attributes.title'))->ucFirst(),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- PICTURE --}}
|
|
<div class="col-12 pb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ str(__('validation.attributes.image'))->ucFirst() }}</legend>
|
|
<div class="row mb-3">
|
|
{{-- PICTURE_ALT --}}
|
|
<div class="col-12 col-lg-6 m-md-0 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'professionPictureAlt',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => str(__('validation.custom.attribute_alt'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_alt',
|
|
'required' => true,
|
|
'model' => $professionModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_alt_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => str(__('validation.custom.attribute_alt'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_TITLE --}}
|
|
<div class="col-12 col-lg-6 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'professionPictureTitle',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => str(__('validation.custom.attribute_title'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_title',
|
|
'required' => true,
|
|
'model' => $professionModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_title_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => str(__('validation.custom.attribute_title'))->ucFirst(),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE --}}
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar-picture', [
|
|
'id' => 'professionPicture',
|
|
'name' => 'picture',
|
|
'width' => 300,
|
|
'height' => 200,
|
|
'model' => $professionModel ?? null,
|
|
'required' => true,
|
|
'preview' => true,
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- JOB_LIST --}}
|
|
<div class="col-12 col-lg-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ str(__('validation.custom.jobs_list'))->ucFirst() }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.text-list-items', [
|
|
'id' => 'professionJobslist',
|
|
'name' => 'jobs_list',
|
|
'label' => str(__('validation.custom.jobs_list'))->ucFirst(),
|
|
'model' => $professionModel ?? null,
|
|
'itemColumns' => [['value', str(__('validation.custom.job'))->ucFirst()]],
|
|
'itemType' => ['text'],
|
|
'itemLimit' => [1, 10],
|
|
'inputPlaceholder' => [str(__('validation.custom.job'))->ucFirst()],
|
|
'required' => true,
|
|
'helper' => __('validation.list_items', [
|
|
'field' => __('validation.custom.job'),
|
|
'min' => 3,
|
|
'lineMin' => 1,
|
|
'lineMax' => 10,
|
|
]),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- JOB_URL --}}
|
|
<div class="col-12 col-lg-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ str(__('validation.custom.url'))->ucFirst() }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'professionJobUrl',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => str(__('validation.custom.url'))->ucFirst(),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'job_url',
|
|
'required' => true,
|
|
'model' => $professionModel ?? null,
|
|
'helper' => __('validation.between.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.custom.url'),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
'min' => 3,
|
|
'max' => 255,
|
|
]),
|
|
'placeholder' => __(':field :inter:model', [
|
|
'field' => str(__('validation.custom.url'))->ucFirst(),
|
|
'inter' => __('validation.custom.of_the.female'),
|
|
'model' => __('models.classes.profession'),
|
|
]),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- PUBLISHED --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ __('crud.minicrud.visibility_label') }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.tinyint-boolean', [
|
|
'id' => 'professionPublished',
|
|
'name' => 'published',
|
|
'model' => $professionModel ?? null,
|
|
'label' => __('crud.minicrud.visibility_label'),
|
|
'helper' => __('crud.minicrud.visibility_helper'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="col-12 text-center">
|
|
<p><b>{{ __('* Champs obligatoires') }}</b></p>
|
|
</div>
|
|
</div>
|