diff options
author | Trygve Laugstøl <trygvis@inamo.no> | 2015-09-08 21:52:27 +0200 |
---|---|---|
committer | Trygve Laugstøl <trygvis@inamo.no> | 2015-09-08 21:52:27 +0200 |
commit | 81e0bad6f6e66e41f04e2fc4bd9a533976eb58a9 (patch) | |
tree | 245ff63a8bee1882d23884531d2ef026ff1190b9 /src/templates | |
parent | 76c273eaf316e0a8e3eadf93674ffa0aad35f7fd (diff) | |
download | beer-duke-master.tar.gz beer-duke-master.tar.bz2 beer-duke-master.tar.xz beer-duke-master.zip |
Diffstat (limited to 'src/templates')
-rw-r--r-- | src/templates/controller.html | 6 | ||||
-rw-r--r-- | src/templates/login.html | 9 | ||||
-rw-r--r-- | src/templates/settings.html | 7 |
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> |