summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorhirschrobert <info@robert-hirsch.de>2017-08-26 01:50:39 +0200
committerMarius Blüm <marius@lineone.io>2017-08-26 01:50:39 +0200
commit174e6dce5b827c327ef9049c61e58d8054250963 (patch)
tree0b6d9c2c84c88170e2aa0174bb530695e18fe221 /templates
parenta47fb286517b1a336a10a5f19a0ba778632db382 (diff)
provide gender field (#214)
* provide gender field most common fields according to https://tools.ietf.org/html/rfc6350#section-6.2.7. from my issue https://github.com/nextcloud/contacts/issues/108 additonally template "select" needs to be added. sorry for any mistakes, i am new here * Create select.html new template for gender field * Create select.html new template for gender field more changes * removed nbproject * Updated .gitignore rule * translation german * deleted translation german, sorry * Revert "deleted translation german, sorry" This reverts commit 3275b7e947c5ae691bd606777552b8f20a0f5e5f. * Revert "translation german" This reverts commit 973883761f995a93bac349c5aaf26d25ce0adb37. * Rename „intersex“ to „other“ Signed-off-by: Marius Blüm <marius@lineone.io> * F is before M, that's why I changed it.
Diffstat (limited to 'templates')
-rw-r--r--templates/detailItems/select.html5
1 files changed, 5 insertions, 0 deletions
diff --git a/templates/detailItems/select.html b/templates/detailItems/select.html
new file mode 100644
index 00000000..259e74a8
--- /dev/null
+++ b/templates/detailItems/select.html
@@ -0,0 +1,5 @@
+<label ng-if="ctrl.availableOptions.length > 0" for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}</label>
+<select id="details-{{ctrl.name}}" name="{{ctrl.name}}" ng-if="ctrl.availableOptions.length > 0" ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()">
+ <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option>
+</select>
+<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}"></button>