summaryrefslogtreecommitdiff
path: root/src/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/templates')
-rw-r--r--src/templates/controller.html6
-rw-r--r--src/templates/login.html9
-rw-r--r--src/templates/settings.html7
3 files changed, 18 insertions, 4 deletions
diff --git a/src/templates/controller.html b/src/templates/controller.html
index 94d784e..9b9f518 100644
--- a/src/templates/controller.html
+++ b/src/templates/controller.html
@@ -4,10 +4,6 @@
Code from tap:
<input type="number" ng-model="ctrl.code">
</label>
- <label>
- Your email address
- <input type="email" ng-model="ctrl.email">
- </label>
<button ng-click="ctrl.requestBeer()">Request Beer!</button>
</div>
@@ -20,6 +16,8 @@
</div>
</div>
+ <button type="button" ng-click="ctrl.logOut()">Disconnect</button><br/>
+
problems: {{mqtt.problems|json}}
<ng-include src="'templates/footer.html'"/>
diff --git a/src/templates/login.html b/src/templates/login.html
new file mode 100644
index 0000000..7c5dc03
--- /dev/null
+++ b/src/templates/login.html
@@ -0,0 +1,9 @@
+<div ng-form="form">
+
+ <label>
+ Email from JavaZone ticket:
+ <input type="email" ng-model="ctrl.email" required>
+ <input type="submit" ng-click="ctrl.logIn()" ng-disabled="form.$invalid" value="Connect">
+ </label>
+
+</div>
diff --git a/src/templates/settings.html b/src/templates/settings.html
index cca9f22..28d0e58 100644
--- a/src/templates/settings.html
+++ b/src/templates/settings.html
@@ -26,4 +26,11 @@
</label>
</p>
+ <p>
+ <label>
+ Tap
+ <input type="text" ng-model="ctrl.settings.tap">
+ </label>
+ </p>
+
</div>