From 7b3955f86fb780b0138f120a131613daf6b15ebd Mon Sep 17 00:00:00 2001 From: Paul Philippov Date: Sun, 17 Nov 2024 23:46:01 -0500 Subject: [PATCH] webui: improve layout of dusk2dawn plugin form. --- .../files/var/www/x/plugin-dusk2dawn.cgi | 30 +++++++++---------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/package/thingino-webui/files/var/www/x/plugin-dusk2dawn.cgi b/package/thingino-webui/files/var/www/x/plugin-dusk2dawn.cgi index 2972bc608..d7179ce00 100755 --- a/package/thingino-webui/files/var/www/x/plugin-dusk2dawn.cgi +++ b/package/thingino-webui/files/var/www/x/plugin-dusk2dawn.cgi @@ -46,30 +46,30 @@ fi <%in _header.cgi %>
- -
-
<% field_switch "dusk2dawn_enabled" "Enable dusk2dawn script" %> +
+
+<% field_text "dusk2dawn_lat" "Latitude" %> +<% field_text "dusk2dawn_lng" "Longitude" %>

Find your coordinates

-<% -field_text "dusk2dawn_lat" "Latitude" -field_text "dusk2dawn_lng" "Longitude" -field_text "dusk2dawn_offset_sr" "Sunrise offset, minutes" -field_text "dusk2dawn_offset_ss" "Sunset offset, minutes" -field_text "dusk2dawn_runat" "Run at" -%>
-
-<% ex "crontab -l" %> +
+<% field_text "dusk2dawn_offset_sr" "Sunrise offset, minutes" %> +<% field_text "dusk2dawn_offset_ss" "Sunset offset, minutes" %>
-
-<% [ -f $config_file ] && ex "cat $config_file" %> +
+<% field_text "dusk2dawn_runat" "Run at" %>
- <% button_submit %> +
+

Debug info

+<% ex "crontab -l" %> +<% [ -f $config_file ] && ex "cat $config_file" %> +
+