summaryrefslogtreecommitdiffstats
path: root/templates/detailItems/select.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/detailItems/select.html')
-rw-r--r--templates/detailItems/select.html6
1 files changed, 4 insertions, 2 deletions
diff --git a/templates/detailItems/select.html b/templates/detailItems/select.html
index 259e74a8..3d35bdee 100644
--- a/templates/detailItems/select.html
+++ b/templates/detailItems/select.html
@@ -1,5 +1,7 @@
<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()">
+<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()"
+ ng-disabled="ctrl.addressBook.readOnly">
<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>
+<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.addressBook.readOnly"></button>