-
Notifications
You must be signed in to change notification settings - Fork 1
/
form-expansions.html
29 lines (28 loc) · 1.41 KB
/
form-expansions.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
<p>Banned Civilizations: </p>
<uib-progressbar style="height: 25px;" class="progress-striped active" max="MaxBannable" value="CurrentlyBanned" type="{{BannedType}}">
<span style="line-height: 20px;font-size: 20px;">{{CurrentlyBanned}}</span>
</uib-progressbar>
<uib-alert ng-show="showAlert" type="warning" style="text-align: center;">You have banned the maximum amount of civs!</uib-alert>
<form name="expansionForm">
<div ng-form='expansionForm'>
<div style="margin-bottom: 10px; text-align: center;">
<a class="btn btn-info" ng-click="SelectOrUnselectExpansions(true)">Select all</a>
</div>
<span ng-repeat="expansion in expansions.expansion">
<label class="checkbox" for="{{expansion}}">
<input type="checkbox" value="{{expansion}}" ng-model="formData.selectedExpansions[$index]"
ng-change="UpdateCount(expansion,$index); $event.stopPropagation();" name="{{expansion}}"
id="{{expansion}}" checked/>
{{expansion}}
</label>
</span>
<div class="form-group row">
<div class="col-xs-6 col-xs-offset-3">
<a ui-sref="form.ban" class="btn btn-block btn-info" ng-click="ExpansionLogic()"
ng-disabled="!expansionForm.$valid">
Next <span class="glyphicon glyphicon-circle-arrow-right"></span>
</a>
</div>
</div>
</div>
</form>