From f61b2801a264c10e7957958a5829e141c3bedd2c Mon Sep 17 00:00:00 2001 From: Vincent Vanwaelscappel Date: Wed, 19 Jun 2019 13:53:55 +0200 Subject: [PATCH] #2843 --- src/resources/views/fields/button.blade.php | 165 +++++++++++--------- 1 file changed, 90 insertions(+), 75 deletions(-) diff --git a/src/resources/views/fields/button.blade.php b/src/resources/views/fields/button.blade.php index 1695bdb..48e6b63 100644 --- a/src/resources/views/fields/button.blade.php +++ b/src/resources/views/fields/button.blade.php @@ -8,8 +8,8 @@ $active_pages = $page_model::all(); $empty = ['label' => '', 'type' => array_key_first($link_types), 'link' => '', 'page_id' => '']; $value = old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? []; -if($value==''){ - $value=[]; +if ($value == '') { + $value = []; } $value = array_merge($empty, $value); @@ -19,17 +19,18 @@ $value = array_merge($empty, $value); @include('crud::inc.field_translatable_icon')
-
-
- -
-
-
- +
+
+
+ -
-
-
- - - - - - +
+
+ + + + + + +
@@ -119,6 +121,19 @@ $value = array_merge($empty, $value); {{-- 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 --}} -- 2.39.5