aboutsummaryrefslogtreecommitdiffstats
path: root/templates
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
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')
-rw-r--r--templates/dashboard.html15
-rw-r--r--templates/settings.html17
2 files changed, 25 insertions, 7 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" %}
diff --git a/templates/settings.html b/templates/settings.html
index dfe71cf..ca9a77a 100644
--- a/templates/settings.html
+++ b/templates/settings.html
@@ -3,34 +3,37 @@
<h1>ODR-DabMux Settings</h1>
<div class="section">
<h2>General</h2>
- <div><label for="instance_name">Name of this instance:</label><input class="textinput" type="text" id="instance_name" value="{{ conf.instance_name }}"></div>
- <div>
+ <div class="setting-entry">
+ <label for="instance_name">Name of this instance:</label><input class="textinput" type="text" id="instance_name" value="{{ conf.instance_name }}">
+ </div>
+ <div class="setting-entry">
<label for="tist">Enable TIST:</label>
<input type="checkbox" id="tist" value="Enable TIST"
{% if conf.tist %} checked {% endif %} >
</div>
- <div>
+ <div class="setting-entry">
<label for="tist_offset">TIST offset:</label>
<input class="textinput" type="text" id="tist_offset" placeholder="TIST offset in seconds" value="{{ conf.tist_offset }}">
</div>
- <div>
+ <div class="setting-entry">
<label for="ensemble_id">EId:</label>
<input class="textinput" type="text" id="ensemble_id" placeholder="Ensemble ID in hex" value="{{ conf.ensemble_id_hex() }}">
</div>
- <div>
+ <div class="setting-entry">
<label for="ensemble_ecc">ECC:</label>
<input class="textinput" type="text" id="ensemble_ecc" placeholder="Ensemble ECC in hex" value="{{ conf.ensemble_ecc_hex() }}">
</div>
- <div>
+ <div class="setting-entry">
<label for="ensemble_label">Label and shortlabel:</label>
<input class="textinput" type="text" id="ensemble_label" placeholder="Ensemble Label" value="{{ conf.ensemble_label }}">
<input class="textinput" type="text" id="ensemble_shortlabel" placeholder="Ensemble Short Label" value="{{ conf.ensemble_shortlabel }}">
</div>
- <div>
+ <div class="setting-entry">
<label for="output_edi_port">EDI TCP Listen Port</label>
<input class="textinput" type="text" id="output_edi_port" placeholder="TCP Listen Port for EDI Output" value="{{ conf.output_edi_port }}">
</div>
</div>
+ <div class="section"><h2>Services:</h2></div>
<div class="section">
<template id="service_template">
<p class="service">