diff options
Diffstat (limited to 'templates/detailItems/email.html')
-rw-r--r-- | templates/detailItems/email.html | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/templates/detailItems/email.html b/templates/detailItems/email.html index 0f9c5ddf..543ec32c 100644 --- a/templates/detailItems/email.html +++ b/templates/detailItems/email.html @@ -1,4 +1,4 @@ -<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.model.addressBook.readOnly"> +<select ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)" ng-disabled="ctrl.contact.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="mailto:{{ctrl.data.value}}"> @@ -6,9 +6,9 @@ </a> <input type="email" id="details-{{ctrl.name}}-{{ctrl.index}}" name="email" ng-model="ctrl.data.value" email-model ng-model-options="{ debounce: 500 }" - ng-change="ctrl.model.updateContact()" value="" + ng-change="ctrl.updateContact()" value="" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.model.addressBook.readOnly" + ng-disabled="ctrl.contact.readOnly" /> -<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.model.addressBook.readOnly"></button> +<button ng-click="ctrl.deleteField()" class="icon-delete" title="{{ctrl.t.delete}}" ng-if="!ctrl.contact.readOnly"></button> |