summaryrefslogtreecommitdiffstats
path: root/templates/detailItems/date.html
diff options
context:
space:
mode:
Diffstat (limited to 'templates/detailItems/date.html')
-rw-r--r--templates/detailItems/date.html3
1 files changed, 2 insertions, 1 deletions
diff --git a/templates/detailItems/date.html b/templates/detailItems/date.html
index bc538d51..ebd77223 100644
--- a/templates/detailItems/date.html
+++ b/templates/detailItems/date.html
@@ -3,5 +3,6 @@
ng-model="ctrl.data.value" datepicker ng-model-options="{ debounce: 500 }"
ng-change="ctrl.dateInputChanged()" value=""
focus-expression="$parent.ctrl.focus === ctrl.name"
+ ng-disabled="ctrl.addressBook.readOnly"
/>
-<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>