aboutsummaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-02 15:12:47 +0100
committerMatthias P. Braendli <matthias.braendli@mpb.li>2024-01-02 15:12:47 +0100
commit4ba802d0c73a1a1664b4d3e17757e54aeefd81f7 (patch)
tree7c793de9b284e5212a7872a7fb2b74fec303895b /templates
parent8d79d7640cadab30ff1e7bfa8df41eb08ffbdf48 (diff)
downloadcats-radio-node-4ba802d0c73a1a1664b4d3e17757e54aeefd81f7.tar.gz
cats-radio-node-4ba802d0c73a1a1664b4d3e17757e54aeefd81f7.tar.bz2
cats-radio-node-4ba802d0c73a1a1664b4d3e17757e54aeefd81f7.zip
Add default config, and start adding form
Diffstat (limited to 'templates')
-rw-r--r--templates/head.html6
-rw-r--r--templates/settings.html9
2 files changed, 11 insertions, 4 deletions
diff --git a/templates/head.html b/templates/head.html
index f15487c..f1c4a8a 100644
--- a/templates/head.html
+++ b/templates/head.html
@@ -24,17 +24,17 @@
<i class="w-8 fa fa-home" aria-hidden="true"></i><span>Dashboard</span>
</a>
</li>
- <li class="rounded-md p-3 {% if page == ActivePage::Incoming %} bg-sky-200 text-sky-900 {% endif %}">
+ <li class="rounded-md p-3 {% if page == ActivePage::Incoming %} bg-sky-200 text-sky-900 {% endif %} hover:bg-sky-300">
<a href="/incoming" class="p-2 m-2">
<i class="w-8 fa fa-inbox" aria-hidden="true"></i><span>Incoming</span>
</a>
</li>
- <li class="rounded-md p-3 {% if page == ActivePage::Send %} bg-sky-200 text-sky-900 {% endif %}">
+ <li class="rounded-md p-3 {% if page == ActivePage::Send %} bg-sky-200 text-sky-900 {% endif %} hover:bg-sky-300">
<a href="/send" class="p-2 m-2">
<i class="w-8 fa fa-paper-plane-o" aria-hidden="true"></i><span>Send</span>
</a>
</li>
- <li class="rounded-md p-3 {% if page == ActivePage::Settings %} bg-sky-200 text-sky-900 {% endif %}">
+ <li class="rounded-md p-3 {% if page == ActivePage::Settings %} bg-sky-200 text-sky-900 {% endif %} hover:bg-sky-300">
<a href="/settings" class="p-2 m-2">
<i class="w-8 fa fa-cog" aria-hidden="true"></i><span>Settings</span>
</a>
diff --git a/templates/settings.html b/templates/settings.html
index 221df88..f86c43b 100644
--- a/templates/settings.html
+++ b/templates/settings.html
@@ -1,6 +1,13 @@
{% include "head.html" %}
<div class="">
- Settings!
+ <h1>Node Settings</h1>
+
+ <form action="/settings" method="post">
+ <div><label for="callsign">Callsign: <input class="textinput" type="text" name="callsign" value="{{ conf.callsign }}"></label></div>
+ <div><label for="ssid">SSID: <input class="textinput" type="number" name="ssid" value="{{ conf.ssid }}"></label></div>
+ <div><label for="icon">Icon: <input class="textinput" type="number" name="icon" value="{{ conf.icon }}"></label></div>
+ <div><input class="btn" type="submit" value="Update"></div>
+ </form>
</div>
{% include "foot.html" %}
{# vi:set et sw=2 ts=2: #}