111 lines
5.7 KiB
PHP
111 lines
5.7 KiB
PHP
<div class="row">
|
|
{{-- LABEL --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.label')) }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'logoLabel',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => Str::ucfirst(__('validation.custom.label')),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.logo', 1),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'label',
|
|
'required' => true,
|
|
'model' => $logoModel ?? null,
|
|
'helper' => __('validation.between.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.custom.label'),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.logo', 1),
|
|
]),
|
|
'min' => 3,
|
|
'max' => 255,
|
|
]),
|
|
'placeholder' => __('Un nom clair et concis'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- PICTURE --}}
|
|
<div class="col-12 pb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.attributes.image')) }}</legend>
|
|
<div class="row mb-3">
|
|
{{-- PICTURE_ALT --}}
|
|
<div class="col-12 col-md-6 m-md-0 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'logoPictureAlt',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.logo', 1),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_alt',
|
|
'required' => true,
|
|
'model' => $logoModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_alt_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.alt_attribute')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.logo', 1),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE_TITLE --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'logoPictureTitle',
|
|
'label' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.logo', 1),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'picture_title',
|
|
'required' => true,
|
|
'model' => $logoModel ?? null,
|
|
'helper' => __('crud.minicrud.picture_title_helper'),
|
|
'placeholder' => __(':field1 :inter1:field2 :inter2:model', [
|
|
'field1' => Str::ucfirst(__('validation.custom.title_attribute')),
|
|
'inter1' => __('validation.custom.of_the.vowel'),
|
|
'field2' => __('validation.attributes.image'),
|
|
'inter2' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.logo', 1),
|
|
]),
|
|
])
|
|
</div>
|
|
{{-- PICTURE --}}
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar-picture', [
|
|
'id' => 'logoPicture',
|
|
'name' => 'picture',
|
|
'width' => 450,
|
|
'height' => 450,
|
|
'model' => $logoModel ?? null,
|
|
'helper' => __('crud.minicrud.dimensions_must_be', [
|
|
'widthpx' => '450px',
|
|
'heightpx' => '450px',
|
|
]),
|
|
'required' => true,
|
|
'preview' => true,
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
<div class="col-12 text-center">
|
|
<p><b>{{ __('validation.custom.required_fields') }}</b></p>
|
|
</div>
|
|
</div>
|