From 761165cb23488d6ad01207be787b6d081f76e750 Mon Sep 17 00:00:00 2001 From: Peter Stockings Date: Sun, 24 Mar 2024 19:48:43 +1100 Subject: [PATCH] Minor UI change for function edit form, moved execute button to bottom --- templates/dashboard.html | 2 +- templates/function_editor.html | 242 +++++++++++++++++++-------------- 2 files changed, 140 insertions(+), 104 deletions(-) diff --git a/templates/dashboard.html b/templates/dashboard.html index 86afcc4..738e42e 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -87,7 +87,7 @@ Toggle user menu -
+
{{ render_partial('dashboard/http_functions/overview.html', http_functions=http_functions) }}
diff --git a/templates/function_editor.html b/templates/function_editor.html index 9a6ab85..d5ae749 100644 --- a/templates/function_editor.html +++ b/templates/function_editor.html @@ -1,114 +1,53 @@
-

Code

+
+ {% if is_edit|default(false, true) %} +
+ {{ name }} + - - - - - - - - -
+ + {% endif %} + {% if is_add|default(false, true) %} + + + {% endif %} +
-
{{ script }}
+
{{ script }}
-
-

Environment

+
+
@@ -206,9 +157,94 @@ {% endif %}
+ + + + {% if is_edit|default(false, true) %}