From 9a0965768032c7ff3b9d83922b759f97216bba3b Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Fri, 30 Jun 2023 18:31:42 +0200 Subject: [PATCH] wip #5401 @1 --- src/app/Magic/Fields/CheckboxMultiple.php | 8 ++ .../views/fields/checkbox_multiple.blade.php | 80 +++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 src/app/Magic/Fields/CheckboxMultiple.php create mode 100644 src/resources/views/fields/checkbox_multiple.blade.php diff --git a/src/app/Magic/Fields/CheckboxMultiple.php b/src/app/Magic/Fields/CheckboxMultiple.php new file mode 100644 index 0000000..f3bf8c0 --- /dev/null +++ b/src/app/Magic/Fields/CheckboxMultiple.php @@ -0,0 +1,8 @@ + +@include('crud::fields.inc.wrapper_start') + + + +@if(isset($field['show_selected_option']) && $field['show_selected_option']) +

{{__('Valeur actuelle : ')}}

+@endif +{{-- HINT --}} +@if (isset($field['hint'])) +

{!! $field['hint'] !!}

+@endif + + +@include('crud::fields.inc.wrapper_end') + +{{-- ########################################## --}} +{{-- Extra CSS and JS for this particular field --}} +{{-- If a field type is shown multiple times on a form, the CSS and JS will only be loaded once --}} +@if ($crud->checkIfFieldIsFirstOfItsType($field)) + {{-- FIELD CSS - will be loaded in the after_styles section --}} + @push('crud_fields_styles') + + @endpush + {{-- FIELD JS - will be loaded in the after_scripts section --}} + @push('crud_fields_scripts') + + @endpush + +@endif +{{-- End of Extra CSS and JS --}} +{{-- ########################################## --}} -- 2.39.5