aboutsummaryrefslogtreecommitdiffstats
path: root/src/templates/bluetooth.template.html
diff options
context:
space:
mode:
authorHumberto Alfonso Díaz <humberto.alfonso@asvito.es>2019-12-05 12:42:48 +0100
committerLorenzo Tilve <ltilve@igalia.com>2020-02-04 19:20:13 +0100
commit9a25f5f94900b0474b6c5f2fff254a3418ca7f38 (patch)
treee4e252d0f5a7d289fed6db04fca3d32534426ab4 /src/templates/bluetooth.template.html
parent20e04b702f96bf05ff957a8e3c4296d76a2e7656 (diff)
FUNCT Add bootstrap support
Diffstat (limited to 'src/templates/bluetooth.template.html')
-rw-r--r--src/templates/bluetooth.template.html52
1 files changed, 52 insertions, 0 deletions
diff --git a/src/templates/bluetooth.template.html b/src/templates/bluetooth.template.html
new file mode 100644
index 0000000..dc732d7
--- /dev/null
+++ b/src/templates/bluetooth.template.html
@@ -0,0 +1,52 @@
+<div class="container">
+ <h2 class="my-5">
+ <div class="row">
+ <div class="col-1" onclick="bluetooth.hide()">
+ <i class="fas fa-chevron-left"></i>
+ </div>
+ <div class="col-10">
+ Bluetooth
+ </div>
+ <div class="col-1" onclick="bluetooth.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="fab fa-bluetooth"></i>
+ </div>
+ <div class="col-9" onclick="bluetooth.manage('{{device}}', {{properties.paired}}, {{ properties.connected }})">
+ <div>
+ {{ properties.name }}
+ </div>
+ <div class="badge badge-secondary">
+ {{ properties.address}}
+ </div>
+ </div>
+ <div class="col-2 text-right" onclick="bluetooth.remove('{{device}}')">
+ <i class="fa fa-trash"></i>
+ </div>
+ </div>
+ {{ /devices }}
+ </div>
+ <div class="btn-group fixed-bottom" role="group" aria-label="Basic example">
+ <button type="button"
+ onclick="bluetooth.available()"
+ class="btn {{ ^filter.available }} btn-secondary {{ /filter.available }}{{ #filter.available }} btn-primary {{ /filter.available }}">
+ Available
+ </button>
+ <button type="button"
+ onclick="bluetooth.paired()"
+ class="btn {{ ^filter.paired }} btn-secondary {{ /filter.paired }}{{ #filter.paired }} btn-primary {{ /filter.paired }}">
+ Paired
+ </button>
+ <button type="button"
+ onclick="bluetooth.connected()"
+ class="btn {{ ^filter.connected }} btn-secondary {{ /filter.connected }}{{ #filter.connected }} btn-primary {{ /filter.connected }}">
+ Connected
+ </button>
+ </div>
+</div> \ No newline at end of file