summaryrefslogtreecommitdiffstats
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/main.template.html2
-rw-r--r--src/templates/wifi.template.html35
2 files changed, 36 insertions, 1 deletions
diff --git a/src/templates/main.template.html b/src/templates/main.template.html
index 6965b5a..e37c935 100644
--- a/src/templates/main.template.html
+++ b/src/templates/main.template.html
@@ -33,7 +33,7 @@
<div class="col-1">
<i class="fas fa-wifi"></i>
</div>
- <div class="col-9">
+ <div class="col-9" onclick="window.wifi.show()">
Wifi
</div>
<div class="col-2 text-right">
diff --git a/src/templates/wifi.template.html b/src/templates/wifi.template.html
new file mode 100644
index 0000000..a2203c3
--- /dev/null
+++ b/src/templates/wifi.template.html
@@ -0,0 +1,35 @@
+<div class="container">
+ <h2 class="my-5">
+ <div class="row">
+ <div class="col-1" onclick="wifi.hide()">
+ <i class="fas fa-chevron-left"></i>
+ </div>
+ <div class="col-10">
+ Wifi
+ </div>
+ <div class="col-1" onclick="wifi.show()">
+ <i class="fas fa-sync"></i>
+ </div>
+ </div>
+ </h2>
+ <div class="list-group scrollable">
+ {{ #devices }}
+ <div class="row border-bottom py-3 list-group-action">
+ <div class="col-1">
+ <i class="fas fa-wifi"></i>
+ </div>
+ <div class="col-9">
+ <div>
+ {{ properties.name }}
+ </div>
+ <div class="badge badge-secondary">
+ {{ properties.ethernet.address}}
+ </div>
+ </div>
+ <div class="col-2 text-right">
+ {{ properties.strength }}%
+ </div>
+ </div>
+ {{ /devices }}
+ </div>
+ </div> \ No newline at end of file