aboutsummaryrefslogtreecommitdiffstats
path: root/templates/dashboard.html
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-20 11:23:53 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-09-20 11:23:53 +0200
commite42edddd33382855202ff2f17e6b77d65f6ad152 (patch)
treec26c0f5b48e66a3f36380bcdfb1ecd60c7453234 /templates/dashboard.html
parent7208269be13d0ee27fd696fcae31330e2a78b969 (diff)
downloadodr-dabmux-gui-e42edddd33382855202ff2f17e6b77d65f6ad152.tar.gz
odr-dabmux-gui-e42edddd33382855202ff2f17e6b77d65f6ad152.tar.bz2
odr-dabmux-gui-e42edddd33382855202ff2f17e6b77d65f6ad152.zip
Show RC params in dashboard
Diffstat (limited to 'templates/dashboard.html')
-rw-r--r--templates/dashboard.html15
1 files changed, 15 insertions, 0 deletions
diff --git a/templates/dashboard.html b/templates/dashboard.html
index c8a1693..040538c 100644
--- a/templates/dashboard.html
+++ b/templates/dashboard.html
@@ -7,6 +7,21 @@
</div>
<div class="section">
<h2>Remote control</h2>
+
+ {% if let Some(e) = errors %}
+ <p>Error!: {{ e }}</p>
+ {% endif %}
+
+ <table>
+ <tr><th>Module</th><th>Parameter</th><th>Value</th></tr>
+ {% for p in params %}
+ <tr><td>{{ p.module }}</td><td>{{ p.param }}</td>
+ <td>
+ <input class="textinput" type="text" value="{{ p.value }}">
+ <button class="btn" type="button" onclick="btn_dash_update(this, '{{ p.module }}', '{{ p.param }}')">Update</button>
+ </td></tr>
+ {% endfor %}
+ </table>
</div>
</div>
{% include "foot.html" %}