summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
authorTrygve Laugstøl <trygvis@inamo.no>2015-09-08 12:49:53 +0200
committerTrygve Laugstøl <trygvis@inamo.no>2015-09-08 12:49:53 +0200
commit615a043031f37fe5bc55fdf9cbc2e83a5e305908 (patch)
tree128a22f4d34934ec7c7d75a78ffea7c16c7c32fb /src/templates
parentbcf3120d437da01fda78397a345bf805b008eb7a (diff)
downloadbeer-duke-615a043031f37fe5bc55fdf9cbc2e83a5e305908.tar.gz
beer-duke-615a043031f37fe5bc55fdf9cbc2e83a5e305908.tar.bz2
beer-duke-615a043031f37fe5bc55fdf9cbc2e83a5e305908.tar.xz
beer-duke-615a043031f37fe5bc55fdf9cbc2e83a5e305908.zip
wip
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/controller.html9
-rw-r--r--src/templates/footer.html5
-rw-r--r--src/templates/settings.html14
-rw-r--r--src/templates/tap.html5
4 files changed, 33 insertions, 0 deletions
diff --git a/src/templates/controller.html b/src/templates/controller.html
new file mode 100644
index 0000000..c6cc4c8
--- /dev/null
+++ b/src/templates/controller.html
@@ -0,0 +1,9 @@
+<div ng-controller="MqttController as mqtt">
+ <div ng-controller="BeerDukeControllerController as ctrl">
+ <label>
+ Code from tap:
+ <input type="number" ng-model="ctrl.code">
+ </label>
+ <button ng-click="ctrl.requestBeer()">Request Beer!</button>
+ </div>
+</div>
diff --git a/src/templates/footer.html b/src/templates/footer.html
new file mode 100644
index 0000000..17483ae
--- /dev/null
+++ b/src/templates/footer.html
@@ -0,0 +1,5 @@
+<div ng-if="settings.showSettings">
+ <hr/>
+ <a href="#/settings">settings</a><br/>
+ connected = {{mqtt.connected}}
+</div>
diff --git a/src/templates/settings.html b/src/templates/settings.html
new file mode 100644
index 0000000..5147065
--- /dev/null
+++ b/src/templates/settings.html
@@ -0,0 +1,14 @@
+<div>
+ <h2>Settings</h2>
+ <a href="#/">back</a>
+ <label>
+ showSettings
+ <input type="checkbox" ng-model="ctrl.settings.showSettings">
+ </label>
+
+ <label>
+ clientId
+ <input type="text" ng-model="ctrl.settings.clientId">
+ </label>
+
+</div>
diff --git a/src/templates/tap.html b/src/templates/tap.html
new file mode 100644
index 0000000..c266f2d
--- /dev/null
+++ b/src/templates/tap.html
@@ -0,0 +1,5 @@
+<div>
+ Code: {{ctrl.code}}
+
+ <ng-include src="'templates/footer.html'"/>
+</div>