summaryrefslogtreecommitdiffstats
path: root/templates/contactDetails.html
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-03-02 17:29:24 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-03-03 12:42:39 +0100
commitd783a66879d9c74849d96d712489fce174db2cdd (patch)
tree662d0f6ae9c1aa9c4a98fbf12c8e19535772e587 /templates/contactDetails.html
parent0e905632d0eed3d44eb3babc653e12bc69c66baf (diff)
Filter fields which are only allowed to be present once - fixes #89
Diffstat (limited to 'templates/contactDetails.html')
-rw-r--r--templates/contactDetails.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/templates/contactDetails.html b/templates/contactDetails.html
index 2ad2acb4..26c7fd31 100644
--- a/templates/contactDetails.html
+++ b/templates/contactDetails.html
@@ -20,7 +20,7 @@
</div>
<select ng-model="field" ng-change="ctrl.addField(field)">
<option value=''>{{ctrl.t.selectField}}</option>
- <option ng-repeat="field in ctrl.fieldDefinitions | orderBy : 'name'" value="{{field.id}}">{{field.name}}</option>
+ <option ng-repeat="field in ctrl.fieldDefinitions | fieldFilter: ctrl.contact | orderBy : 'name'" value="{{field.id}}">{{field.name}}</option>
</select>
</section>
</div>