diff options
author | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-09-20 21:24:32 +0200 |
---|---|---|
committer | Matthias P. Braendli <matthias.braendli@mpb.li> | 2024-09-20 21:24:32 +0200 |
commit | ad30bb7aedf6b2e959a0ed90e90e2b991a69f6dc (patch) | |
tree | 72ade1a402d3e2e53cf9d976da3ca9a2b66b9a3b /templates | |
parent | 3189dc23f2abf2060f591219e8256301e7c41aed (diff) | |
download | odr-dabmux-gui-ad30bb7aedf6b2e959a0ed90e90e2b991a69f6dc.tar.gz odr-dabmux-gui-ad30bb7aedf6b2e959a0ed90e90e2b991a69f6dc.tar.bz2 odr-dabmux-gui-ad30bb7aedf6b2e959a0ed90e90e2b991a69f6dc.zip |
Write dabmux config, add README
Diffstat (limited to 'templates')
-rw-r--r-- | templates/dashboard.html | 6 | ||||
-rw-r--r-- | templates/head.html | 3 | ||||
-rw-r--r-- | templates/settings.html | 7 | ||||
-rw-r--r-- | templates/settings_applied.html | 12 |
4 files changed, 9 insertions, 19 deletions
diff --git a/templates/dashboard.html b/templates/dashboard.html index 040538c..a60d6a1 100644 --- a/templates/dashboard.html +++ b/templates/dashboard.html @@ -1,10 +1,6 @@ {% include "head.html" %} <div class="content"> - <h1>Dashboard</h1> - <div class="section"> - <h2>ODR-DabMux</h2> - <p>www.opendigitalradio.org</p> - </div> + <h1>ODR-DabMux Dashboard</h1> <div class="section"> <h2>Remote control</h2> diff --git a/templates/head.html b/templates/head.html index 7a2e5bb..c835d6e 100644 --- a/templates/head.html +++ b/templates/head.html @@ -16,7 +16,8 @@ <div class="head-nav-topdiv"> <div class="nav-title"> <p class="text-lg">ODR-DabMux</p> - <p class="text-lg"><b>{{ conf.instance_name }}</b></p> + <p><a href="https://www.opendigitalradio.org">www.opendigitalradio.org</a></p> + <p class="text-lg">Instance name:<br>{{ conf.instance_name }}</p> </div> <div class="div-menu"> diff --git a/templates/settings.html b/templates/settings.html index 74843fb..713947f 100644 --- a/templates/settings.html +++ b/templates/settings.html @@ -4,7 +4,12 @@ <div class="section"> <h2>General</h2> <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 }}"> + <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="dabmux_config_location">ODR-DabMux JSON config to write:</label> + <input class="textinput" type="text" id="dabmux_config_location" value="{{ conf.dabmux_config_location }}"> </div> <div class="setting-entry"> <label for="tist">Enable TIST:</label> diff --git a/templates/settings_applied.html b/templates/settings_applied.html deleted file mode 100644 index 214b8fd..0000000 --- a/templates/settings_applied.html +++ /dev/null @@ -1,12 +0,0 @@ -{% include "head.html" %} -<div class="content"> - {% if ok %} - <h1>Configuration updated</h1> - {% else %} - <h1>Configuration update failed</h1> - <p>{{ error_message }}:</p> - <p>{{ error_reason }}:</p> - {% endif %} -</div> -{% include "foot.html" %} -{# vi:set et sw=2 ts=2: #} |