summaryrefslogtreecommitdiffstats
path: root/templates/detailItems/tel.html
diff options
context:
space:
mode:
authorJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-03 20:10:43 +0200
committerJohn Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>2017-09-03 20:10:43 +0200
commit8f08e38df45458579771977768d60d58a68852f1 (patch)
tree0f9e1477667e1d07d0ab2b46922eb3f7c4639f48 /templates/detailItems/tel.html
parent2948596bbaa13ec09aa7f8ca27d7a73d327ae5f1 (diff)
Disabled state for all templates
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates/detailItems/tel.html')
-rw-r--r--templates/detailItems/tel.html5
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html
index 340d90cc..20b754b8 100644
--- a/templates/detailItems/tel.html
+++ b/templates/detailItems/tel.html
@@ -1,4 +1,4 @@
-<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)">
+<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.addressBook.readOnly">
<option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option>
</select>
<a ng-if="ctrl.data.value.length" class="item-action" href="tel:{{ctrl.data.value}}">
@@ -9,5 +9,6 @@
ng-change="ctrl.model.updateContact()" value=""
placeholder="{{ctrl.meta.readableName}}"
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>