From cae20fa89b395290ec8b47796da4775524845b1c Mon Sep 17 00:00:00 2001 From: Aaron LI Date: Mon, 7 Nov 2016 15:57:35 +0800 Subject: webui: Implement reset form and load configuration files functions * Rewrite "configs.js" to be more modular and generic * Bind functions to button click event * Implement the function to set form fields to given configuration data * Implement the function to reset server-side configurations * Implement the function to load user configuration file on server * Implement get the configuration data from the server --- fg21sim/webui/templates/configs.html | 62 ++++++++++++++++++++---------------- fg21sim/webui/templates/index.html | 1 + 2 files changed, 36 insertions(+), 27 deletions(-) (limited to 'fg21sim/webui/templates') diff --git a/fg21sim/webui/templates/configs.html b/fg21sim/webui/templates/configs.html index b86a72c..9321d9d 100644 --- a/fg21sim/webui/templates/configs.html +++ b/fg21sim/webui/templates/configs.html @@ -15,20 +15,20 @@
- +
- +
- - - + + +
@@ -39,15 +39,15 @@
- +
- +
- +
@@ -79,17 +79,21 @@

Frequency


-
- - -
+
+ + +
+ + +
+
- +
@@ -101,7 +105,7 @@
- +
@@ -129,17 +133,21 @@

Output


-
- - -
+
+ + +
+ + +
+
- +
@@ -152,7 +160,7 @@
- +
@@ -217,7 +225,7 @@
- +
@@ -253,7 +261,7 @@
- +
@@ -290,13 +298,13 @@
- +
- +
@@ -339,7 +347,7 @@
- +
@@ -378,7 +386,7 @@
- +
@@ -429,7 +437,7 @@
- +
diff --git a/fg21sim/webui/templates/index.html b/fg21sim/webui/templates/index.html index 8eb65cd..4c1dff1 100644 --- a/fg21sim/webui/templates/index.html +++ b/fg21sim/webui/templates/index.html @@ -30,5 +30,6 @@ {% end %} {% block extra_script %} + {% end %} -- cgit v1.2.2