From 9e87894a7c08e13bbcbc652c4d97ec1befe1e2e2 Mon Sep 17 00:00:00 2001 From: roberto Date: Sun, 22 Dec 2024 18:08:48 +0100 Subject: [PATCH] UI fixes --- assets/static/css/main.css | 4 + assets/templates/items/form.tmpl | 10 +-- assets/templates/partials/types-list.tmpl | 8 +- assets/templates/types/fields.tmpl | 71 ++++------------- assets/templates/types/form.tmpl | 95 ++++------------------- internal/funcs/funcs.go | 5 +- 6 files changed, 45 insertions(+), 148 deletions(-) diff --git a/assets/static/css/main.css b/assets/static/css/main.css index 95a94f9..17d211b 100644 --- a/assets/static/css/main.css +++ b/assets/static/css/main.css @@ -511,6 +511,10 @@ th.operations, td.operations { padding: 4px; } +.sidebar-block .menu-item .button { + display: inline-block; +} + .sidebar-menu a { width: 100%; display: block; diff --git a/assets/templates/items/form.tmpl b/assets/templates/items/form.tmpl index 56a537a..9ed846c 100644 --- a/assets/templates/items/form.tmpl +++ b/assets/templates/items/form.tmpl @@ -65,11 +65,7 @@

- - + {{ widget_checkbox "On_dashboard" "On dashboard" "1" .item.On_dashboard }}

@@ -82,13 +78,13 @@ {{ end }}