summaryrefslogtreecommitdiffstats
path: root/templates/detailItems/textarea.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/detailItems/textarea.html')
-rw-r--r--templates/detailItems/textarea.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/detailItems/textarea.html b/templates/detailItems/textarea.html
index 79631980..739f962b 100644
--- a/templates/detailItems/textarea.html
+++ b/templates/detailItems/textarea.html
@@ -3,6 +3,7 @@
ng-model="ctrl.data.value" rows="3" cols="40"
ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()"
placeholder="{{ctrl.meta.readableName}}"
- focus-expression="$parent.ctrl.focus === ctrl.name">
+ focus-expression="$parent.ctrl.focus === ctrl.name"
+ ng-disabled="ctrl.addressBook.readOnly">
</textarea>
-<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>