summaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/resources/templates')
-rw-r--r--src/main/resources/templates/groupField.html19
-rw-r--r--src/main/resources/templates/locationField.html19
2 files changed, 19 insertions, 19 deletions
diff --git a/src/main/resources/templates/groupField.html b/src/main/resources/templates/groupField.html
new file mode 100644
index 0000000..c2ea026
--- /dev/null
+++ b/src/main/resources/templates/groupField.html
@@ -0,0 +1,19 @@
+<table class="bwlp-group-container">
+ <tr ng-repeat="group in field.groups" class="bwlp-group"
+ ng-click="selectGroup($event, group.id)">
+ <td>
+ {{ group.name }}
+ </td>
+ <td class="bwlp-group-status">
+ {{ group.freeCount }} available ({{ group.offlineCount }} offline)
+ </td>
+ <td style="width: 200px">
+ <div ng-if="group.password" class="bwlp-password">
+ <span ng-if="data.id !== group.id">Password protected</span>
+ <input ng-if="data.id === group.id" ng-model="data.password"
+ type="password" placeholder="Password" class="bwlp-password-input" required>
+ </div>
+ </td>
+ </tr>
+</table>
+<button type="button" class="logout-button" ng-click="logout()">Log out</button>
diff --git a/src/main/resources/templates/locationField.html b/src/main/resources/templates/locationField.html
deleted file mode 100644
index 9feb83c..0000000
--- a/src/main/resources/templates/locationField.html
+++ /dev/null
@@ -1,19 +0,0 @@
-<table class="bwlp-location-container">
- <tr ng-repeat="location in field.locations" class="bwlp-location"
- ng-click="selectLocation($event, location.id)">
- <td>
- {{ location.name }}
- </td>
- <td class="bwlp-location-status">
- {{ location.freeCount }} available ({{ location.offlineCount }} offline)
- </td>
- <td style="width: 200px">
- <div ng-if="location.password" class="bwlp-password">
- <span ng-if="data.id !== location.id">Password protected</span>
- <input ng-if="data.id === location.id" ng-model="data.password"
- type="password" placeholder="Password" class="bwlp-password-input" required>
- </div>
- </td>
- </tr>
-</table>
-<button class="logout-button" ng-click="logout()">Log out</button>