From 802f5c2992b1f0b0ab2b7159821ab9e803542121 Mon Sep 17 00:00:00 2001 From: Miguel Caballer Date: Tue, 12 Mar 2024 09:59:12 +0100 Subject: [PATCH] Fix lists --- app/templates/input_types.html | 2 +- app/templates/list.html | 36 ++++++++++++++++++++++++---------- 2 files changed, 27 insertions(+), 11 deletions(-) diff --git a/app/templates/input_types.html b/app/templates/input_types.html index a5e8926f3..74fcf3a1a 100644 --- a/app/templates/input_types.html +++ b/app/templates/input_types.html @@ -1,4 +1,4 @@ -
+
{% if value.tag_type is not defined or value.tag_type not in ["hidden", "random"] %} {% endif %} diff --git a/app/templates/list.html b/app/templates/list.html index af048a536..fbbedd6af 100644 --- a/app/templates/list.html +++ b/app/templates/list.html @@ -1,6 +1,6 @@
- +
@@ -45,12 +45,20 @@ // this can be done better {% if value.type == "map" %} input_template = ` - - `; +
+ +
+
+ +
`; {% else %} input_template = ` - - `; +
+ +
+
+ +
`; {% endif %} {% elif value.type == "map" %} @@ -61,17 +69,25 @@ v = parts[1] } input_template = ` - - `; +
+ +
+
+ +
`; {% else %} input_template = ` - `; +
+ +
`; {% endif %} let template = ` -
+
${input_template} - +
+ +
`; let container = document.getElementById(tagname + '-container');