diff options
author | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2015-04-21 23:48:54 +0300 |
---|---|---|
committer | Kaarle Ritvanen <kaarle.ritvanen@datakunkku.fi> | 2016-04-19 15:25:49 +0300 |
commit | a693a0459c176b86e17d536584d0c1c527f92857 (patch) | |
tree | f9cfd749454f1e24c14400741d403bb1f1388ce8 /web/directive/checkboxes.html | |
parent | be803d679f7a51f93194c86e37168c651471031b (diff) | |
download | aconf-0.6.0.tar.bz2 aconf-0.6.0.tar.xz |
web client: refactor using AngularJS and Bootstrapv0.6.0
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> |