From 3683e53c2a4db6561a68dddbfc39bd7b6408f539 Mon Sep 17 00:00:00 2001 From: Derek Stevens Date: Tue, 7 Jun 2022 23:49:47 -0600 Subject: [PATCH] order config options by datatype --- templates/config.html | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/templates/config.html b/templates/config.html index 8ef55d8..e87ae4a 100644 --- a/templates/config.html +++ b/templates/config.html @@ -10,14 +10,22 @@ {{ range $opt, $val := $config }} {{ if eq ($opt).Type "int" }}
- {{ else if eq ($opt).Type "float" }} + {{ end }} + {{ end }} + {{ range $opt, $val := $config }} + {{ if eq ($opt).Type "float" }}
- {{ else if eq ($opt).Type "string" }} + {{ end }} + {{ end }} + {{ range $opt, $val := $config }} + {{ if eq ($opt).Type "string" }}
- {{ else if eq ($opt).Type "multilinestring" }} + {{ end }} + {{ end }} + {{ range $opt, $val := $config }} + {{ if eq ($opt).Type "multilinestring" }}
- {{ end}} - + {{ end }} {{ end }}