]> _ Git - cubist_cms-back.git/commitdiff
wip #6937 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 May 2024 13:50:51 +0000 (15:50 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 27 May 2024 13:50:51 +0000 (15:50 +0200)
src/resources/views/fields/hidden.blade.php

index e6284b9dc15ad9337efd8d636d9b2c772c545cb9..95f506843a92eededa9b40975a9ef830f1637ba5 100644 (file)
@@ -1,18 +1,19 @@
 @php
     // if not otherwise specified, the hidden input should take up no space in the form
-  $field['wrapper']['class'] = $field['wrapper']['class'] ?? $field['wrapperAttributes']['class'] ?? "hidden";
+  $field['wrapperAttributes']['class'] = $field['wrapperAttributes']['class'] ?? "hidden";
   $v=old(square_brackets_to_dots($field['name'])) ?? $field['value'] ?? $field['default'] ?? '';
   if(is_array($v) || $v instanceof stdClass){
       $v=json_encode($v);
   }
 @endphp
 
-    <!-- hidden input -->
+        <!-- hidden input -->
 @include('crud::fields.inc.wrapper_start')
 <input
-    type="hidden"
-    name="{{ $field['name'] }}"
-    value="{{ $v }}"
-    @include('crud::fields.inc.attributes')
+        type="hidden"
+        name="{{ $field['name'] }}"
+        value="{{ $v }}"
+        @include('crud::fields.inc.attributes')
 >
 @include('crud::fields.inc.wrapper_end')
+