From 169e2d0d9d253c316fa322d3200230704b57fb76 Mon Sep 17 00:00:00 2001 From: Julien Dessaux Date: Sat, 22 Feb 2025 00:35:17 +0100 Subject: chore(webui): refactored state creation page and route --- pkg/webui/html/states.html | 99 ++++++++++++++++++++++++++++++---------------- 1 file changed, 66 insertions(+), 33 deletions(-) (limited to 'pkg/webui/html/states.html') diff --git a/pkg/webui/html/states.html b/pkg/webui/html/states.html index 37d80cf..be8329a 100644 --- a/pkg/webui/html/states.html +++ b/pkg/webui/html/states.html @@ -1,38 +1,71 @@ {{ define "main" }}
- - - - - - - - - - - - - {{ range .States }} - - - - - - {{ end }} - -
PathUpdatedLocked
{{ .Path }}{{ .Updated }} - - {{ if eq .Lock nil }}no{{ else }} - yes -
- Lock -

{{ .Lock }}

-
+
+ +
+ + + + + + + + + + {{ range .States }} + + + + + + {{ end }} + +
PathUpdatedLocked
{{ .Path }}{{ .Updated }} + + {{ if eq .Lock nil }}no{{ else }} + yes +
+ Lock +

{{ .Lock }}

+
+ {{ end }} +
+
+
+
+
+
+
+ + + {{ if .PathDuplicate }} + This path already exist + {{ else if .PathError }} + Invalid path + {{ else }} + Valid URL path beginning with a / {{ end }} - -
+ +
+ + + + JSON state file +
+ + + + +
{{ end }} -- cgit v1.2.3