summaryrefslogtreecommitdiffstats
path: root/templates/detailItems
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-04 14:22:13 +0100
committerJan-Christoph Borchardt <hey@jancborchardt.net>2016-03-07 23:23:59 +0100
commit521e367cfa603c2cf8f88e2f41b27e40f44de0cd (patch)
treefa409f1721f7784ad5f068b7547623156cd3ce94 /templates/detailItems
parentd26c55eafc59df64d7f40d98448412058082f7cb (diff)
Group field is now a select2 field
Diffstat (limited to 'templates/detailItems')
-rw-r--r--templates/detailItems/groups.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/templates/detailItems/groups.html b/templates/detailItems/groups.html
new file mode 100644
index 00000000..5bc5c29b
--- /dev/null
+++ b/templates/detailItems/groups.html
@@ -0,0 +1,10 @@
+<label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}</label>
+<ui-select id="details-{{ctrl.name}}" multiple tagging tagging-label="{{ctrl.t.selectGroups}}" ng-model="ctrl.data.value" group-model
+ on-remove="ctrl.model.updateContact()" on-select="ctrl.model.updateContact()"
+ theme="select2">
+ <ui-select-match placeholder="{{ctrl.meta.readableName}}">{{$item}}</ui-select-match>
+ <ui-select-choices repeat="group in ctrl.availableGroups | filter:$select.search">
+ {{group}}
+ </ui-select-choices>
+</ui-select>
+<button ng-click="ctrl.deleteField()" class="icon-delete" title="Delete"></button>