From 75178634de5cd627bf027d157556177cdc08647a Mon Sep 17 00:00:00 2001 From: roberto Date: Mon, 23 Dec 2024 19:01:36 +0100 Subject: [PATCH] UI fixes --- assets/templates/types/field_new.tmpl | 104 +++++++------------------- assets/templates/types/fields.tmpl | 2 +- internal/funcs/funcs.go | 1 - 3 files changed, 26 insertions(+), 81 deletions(-) diff --git a/assets/templates/types/field_new.tmpl b/assets/templates/types/field_new.tmpl index 0834248..42e095a 100644 --- a/assets/templates/types/field_new.tmpl +++ b/assets/templates/types/field_new.tmpl @@ -1,92 +1,38 @@ {{define "type:field_new"}} -
-
-
- {{ widget_select (print "Fields-New-" .counter "-Widget_id") "Widget" "" .widgets `class=" w3-border"` }} +
+
+
+ {{ widget_select (print "Fields-New-" .counter "-Widget_id") "Widget" "" .widgets `` }}
-
+
- +
-
-
- - -
-
+
+
- + +
+
+ {{ widget_select (print "Fields-" .Type_field_id "-Ui_section") "Section" "general" $.uisections `class=" w3-border"` }}
-
-
-

- - -

-

- - -

-

- - -

+
+

+ {{ widget_checkbox "Fields-New-{{.counter}}-Show_on_list" "Show on list" "1" .Show_on_list }} +

+

+ {{ widget_checkbox "Fields-New-{{.counter}}-Show_on_view" "Show on view" "1" .Show_on_view }} +

+

+ {{ widget_checkbox "Fields-New-{{.counter}}-Is_multiple" "Multiple" "1" .Is_multiple }} +

-
- {{ widget_select (print "Fields-" .Type_field_id "-Ui_section") "Section" "general" $.uisections `class=" w3-border"` }} -
-
-
- + +
+
{{ end }} diff --git a/assets/templates/types/fields.tmpl b/assets/templates/types/fields.tmpl index 61d2ad6..13a7259 100644 --- a/assets/templates/types/fields.tmpl +++ b/assets/templates/types/fields.tmpl @@ -34,7 +34,7 @@
-
+