diff options
Diffstat (limited to 'templates/detailItems/username.html')
-rw-r--r-- | templates/detailItems/username.html | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/templates/detailItems/username.html b/templates/detailItems/username.html index 2b4f88ad..92a5655c 100644 --- a/templates/detailItems/username.html +++ b/templates/detailItems/username.html @@ -1,4 +1,4 @@ -<select ng-if="ctrl.availableOptions.length > 0" ng-model="ctrl.type" ng-model-options="{ debounce: 500 }" ng-change="ctrl.changeType(ctrl.type)"> +<select ng-if="ctrl.availableOptions.length > 0" 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> <label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label> @@ -7,5 +7,6 @@ ng-change="ctrl.model.updateContact()" value="" placeholder="Username" 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> |