diff options
Diffstat (limited to 'web/directive/checkboxes.html')
-rw-r--r-- | web/directive/checkboxes.html | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/web/directive/checkboxes.html b/web/directive/checkboxes.html new file mode 100644 index 0000000..a2f3124 --- /dev/null +++ b/web/directive/checkboxes.html @@ -0,0 +1,21 @@ +<!-- + Copyright (c) 2012-2015 Kaarle Ritvanen + See LICENSE file for license details +--> + +<ng-form name="form"> + <div class="form-group" + ng-repeat="choice in choices" + ng-class="{'has-success': form[choice.value].$dirty}"> + <div class="checkbox"> + <label> + <aconf-set-checkbox choice="choice"></aconf-set-checkbox> + <div ng-if="!choice.ref">{{ choice["ui-value"] }}</div> + <a ng-if="choice.ref" + class="btn" + ng-class="{'btn-default': form[choice.value].$pristine, 'btn-success': form[choice.value].$dirty}" + href="#/config{{ choice.ref }}">{{ choice["ui-value"] }}</a> + </label> + </div> + </div> +</ng-form> |