113 lines
5.3 KiB
PHP
113 lines
5.3 KiB
PHP
<div class="row">
|
|
{{-- TYPE --}}
|
|
@can('create', \App\Models\Sticky::class)
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.type')) }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.tinyint-enum', [
|
|
'id' => 'stickyType',
|
|
'label' => __('Associer un type'),
|
|
'name' => 'type',
|
|
'model' => $stickyModel ?? null,
|
|
'required' => true,
|
|
'associatedModels' => \App\Enums\StaticPageType::toArray(),
|
|
'helper' => __('Sélectionnez un type de page dans la liste déroulante.'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
@endcan
|
|
{{-- TITLE --}}
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.attributes.title')) }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'stickyTitle',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => Str::ucfirst(__('validation.attributes.title')),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.sticky', 1),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'title',
|
|
'required' => true,
|
|
'model' => $stickyModel ?? null,
|
|
'helper' => __('validation.between.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.attributes.title'),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.sticky', 1),
|
|
]),
|
|
'min' => 3,
|
|
'max' => 255,
|
|
]),
|
|
'placeholder' => __('Un nom clair et concis'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
{{-- ANCHOR --}}
|
|
@can('create', \App\Models\Sticky::class)
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.anchor')) }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.varchar', [
|
|
'id' => 'stickyAnchor',
|
|
'label' => __(':field :inter:model', [
|
|
'field' => Str::ucfirst(__('validation.custom.anchor')),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.sticky', 1),
|
|
]),
|
|
'hasWordCounter' => true,
|
|
'name' => 'anchor',
|
|
'required' => true,
|
|
'model' => $stickyModel ?? null,
|
|
'helper' => __('validation.between.string', [
|
|
'attribute' => __(':field :inter:model', [
|
|
'field' => __('validation.custom.anchor'),
|
|
'inter' => __('validation.custom.of_the.male'),
|
|
'model' => trans_choice('models.classes.sticky', 1),
|
|
]),
|
|
'min' => 3,
|
|
'max' => 255,
|
|
]),
|
|
'placeholder' => __('Un nom clair et concis'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
@endcan
|
|
{{-- TYPE --}}
|
|
@can('create', \App\Models\Sticky::class)
|
|
<div class="col-12 col-md-6 mb-3">
|
|
<fieldset class="h-100 border p-3">
|
|
<legend>{{ Str::ucfirst(__('validation.custom.color')) }}</legend>
|
|
<div class="row">
|
|
<div class="col-12">
|
|
@include('bo.partials.inputs.tinyint-enum', [
|
|
'id' => 'stickyColor',
|
|
'label' => __('Associer une couleur'),
|
|
'name' => 'color',
|
|
'model' => $stickyModel ?? null,
|
|
'required' => true,
|
|
'associatedModels' => \App\Enums\StickiesColorEnum::toArray(),
|
|
'helper' => __('Sélectionnez une couleur dans la liste déroulante.'),
|
|
])
|
|
</div>
|
|
</div>
|
|
</fieldset>
|
|
</div>
|
|
@endcan
|
|
<div class="col-12 text-center">
|
|
<p><b>{{ __('validation.custom.required_fields') }}</b></p>
|
|
</div>
|
|
</div>
|