]> _ Git - cubist_cms-back.git/commitdiff
wip #4213 @1
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Jul 2022 15:51:05 +0000 (17:51 +0200)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Fri, 8 Jul 2022 15:51:05 +0000 (17:51 +0200)
src/public/form.css [new file with mode: 0644]
src/public/form.css.map [new file with mode: 0644]
src/public/form.less [new file with mode: 0644]
src/resources/views/edit.blade.php
src/resources/views/form/form.blade.php

diff --git a/src/public/form.css b/src/public/form.css
new file mode 100644 (file)
index 0000000..fdf2995
--- /dev/null
@@ -0,0 +1,4 @@
+main form label:empty {
+  display: none;
+}
+/*# sourceMappingURL=form.css.map */
\ No newline at end of file
diff --git a/src/public/form.css.map b/src/public/form.css.map
new file mode 100644 (file)
index 0000000..93a09c7
--- /dev/null
@@ -0,0 +1 @@
+{"version":3,"sources":["form.less"],"names":[],"mappings":"AAAA,IAAK,KAAK,MAAK;EACX,aAAA","file":"form.css"}
\ No newline at end of file
diff --git a/src/public/form.less b/src/public/form.less
new file mode 100644 (file)
index 0000000..2e4eb03
--- /dev/null
@@ -0,0 +1,3 @@
+main form label:empty {
+    display: none;
+}
index dffd5ad86d4a2d05745a9fefeaaaf3ec3c4f2a16..cb9d49777116b3e801905293844a59feee101d7f 100644 (file)
     </script>
 @endpush
 
-@include('cubist_back::when')
+@push('after_styles')
+    <link rel="stylesheet" href="{{ vendor_asset('vendor/cubist/cms-back/form.css') }}">
+@endpush
 
+@include('cubist_back::when')
 
 @php
     $defaultBreadcrumbs = [
@@ -81,7 +84,7 @@
                         </div>
                     </div>
                 @endif
-            <!-- load the view from the application if it exists, otherwise load the one in the package -->
+                <!-- load the view from the application if it exists, otherwise load the one in the package -->
                 @if(view()->exists('vendor.backpack.crud.form_content'))
                     @include('vendor.backpack.crud.form_content', ['fields' => $crud->fields(), 'action' => 'edit'])
                 @else
index 7d0e9c411c2a8ce0e3a1430f85cf3922a65d214e..2c5484d7c8a79b5e6bcb738d26c4993452d46205 100644 (file)
@@ -1,7 +1,7 @@
 @php
-start_measure('Render form '.$form->getTitle());
-    $action='create';
-    $fields=$crud->fields();
+    start_measure('Render form '.$form->getTitle());
+        $action='create';
+        $fields=$crud->fields();
 @endphp
 
 <h2>{{$form->getTitle()}}</h2>