summaryrefslogtreecommitdiffstats
path: root/src/main/resources/templates/groupField.html
blob: 19434de9a51cb1a818c8b4ef19af9d1d9e5c656c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<div style="font-size: 0.9em; color: grey; margin: -5px 0 20px 0">{{ 'GROUP_SELECTION.RESOLUTION_INFO' | translate }}</div>
<table class="bwlp-group-container">
    <tr ng-repeat="group in field.groups" class="bwlp-group"
         ng-click="selectGroup($event, group.id)" ng-dblclick="submitGroup($event, group.id)"
         ng-class="{ 'selected-group': data.id === group.id }">
        <td>
            {{ group.name }}
        </td>
        <td class="bwlp-group-status" style="white-space: nowrap">
            {{ group.freeCount }} {{ 'GROUP_SELECTION.AVAILABLE' | translate }} ({{ group.offlineCount }} offline)
        </td>
        <td style="width: 200px">
            <div ng-if="group.password" class="bwlp-password">
                <span ng-if="data.id !== group.id" style="white-space: nowrap">{{ 'GROUP_SELECTION.PASSWORD_PROTECTED' | translate }}</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()">{{ 'GROUP_SELECTION.LOG_OUT' | translate }}</button>