Fix on static page Crud form showing wrong type
This commit is contained in:
parent
2fe883a121
commit
93ea0c0ca7
1 changed files with 6 additions and 5 deletions
|
|
@ -1,17 +1,18 @@
|
|||
<div class="row">
|
||||
{{-- ROLE --}}
|
||||
{{-- TYPE --}}
|
||||
<div class="col-12 col-md-6 mb-3">
|
||||
<fieldset class="h-100 border p-3">
|
||||
<legend>{{ Str::ucfirst(__('validation.custom.static_page_type')) }}</legend>
|
||||
<div class="row">
|
||||
<div class="col-12">
|
||||
@include('bo.partials.inputs.tinyint-enum', [
|
||||
'id' => 'userRole',
|
||||
'label' => __('Associer un rôle'),
|
||||
'name' => 'role',
|
||||
@include('back::partials.inputs.tinyint-enum', [
|
||||
'id' => 'staticPageType',
|
||||
'label' => __('Type de page'),
|
||||
'name' => 'type',
|
||||
'model' => $staticPageModel ?? null,
|
||||
'required' => false,
|
||||
'disabled' => true,
|
||||
'value' => optional(optional($staticPageModel ?? null)->type)->value(),
|
||||
'associatedModels' => \App\Enums\StaticPageType::toArray(),
|
||||
'helper' => '',
|
||||
])
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue