summaryrefslogtreecommitdiffstats
path: root/templates/detailItems
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2016-02-25 17:26:39 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2016-02-25 17:26:39 +0100
commit499b84d4c9b5892edc65b367e7a3eaee4179f842 (patch)
treef7e9ab21d6b351fae3ebb31d69530630816823bd /templates/detailItems
parent656b65bad97f7c1077fa8e581aa0dab79af23fc2 (diff)
Fixing type select for tel and adr
Diffstat (limited to 'templates/detailItems')
-rw-r--r--templates/detailItems/adr.html7
-rw-r--r--templates/detailItems/tel.html10
2 files changed, 7 insertions, 10 deletions
diff --git a/templates/detailItems/adr.html b/templates/detailItems/adr.html
index 01112985..247badc2 100644
--- a/templates/detailItems/adr.html
+++ b/templates/detailItems/adr.html
@@ -1,3 +1,8 @@
+<select ng-model="ctrl.data.meta.type[0]">
+ <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option>
+</select>
+<label for="details-pobox">Post office box:</label>
+<input type="text" id="details-pobox" name="address" ng-model="ctrl.data.value[0]" value="" />
<label for="details-address">Street address:</label>
<input type="text" id="details-address" name="address" ng-model="ctrl.data.value[2]" value="" />
<label for="details-postal-code">Postal code:</label>
@@ -6,5 +11,5 @@
<input type="text" id="details-city" name="city" ng-model="ctrl.data.value[3]" value="" />
<label for="details-state">State or province:</label>
<input type="text" id="details-state" name="state" ng-model="ctrl.data.value[4]" value="" />
-<label for="details-country">Country:</label>
+<label for="details-country">{{ctrl.t.country}}</label>
<input type="text" id="details-country" name="state" ng-model="ctrl.data.value[6]" value="" />
diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html
index 52f05f41..f443311a 100644
--- a/templates/detailItems/tel.html
+++ b/templates/detailItems/tel.html
@@ -1,14 +1,6 @@
<label for="details-{{ctrl.name}}">
<select ng-model="ctrl.data.meta.type[0]">
- <option>Home</option>
- <option>Mobile</option>
- <option>Work</option>
- <option>Voice</option>
- <option>Message</option>
- <option>Fax</option>
- <option>Video</option>
- <option>Pager</option>
- <option>Other</option>
+ <option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option>
</select>
</label>
<input type="tel" id="details-{{ctrl.name}}" name="phone" ng-model="ctrl.data.value" tel-model ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value="" />