diff options
author | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-03 20:10:43 +0200 |
---|---|---|
committer | John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> | 2017-09-03 20:10:43 +0200 |
commit | 8f08e38df45458579771977768d60d58a68852f1 (patch) | |
tree | 0f9e1477667e1d07d0ab2b46922eb3f7c4639f48 /templates/detailItems/n.html | |
parent | 2948596bbaa13ec09aa7f8ca27d7a73d327ae5f1 (diff) |
Disabled state for all templates
Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
Diffstat (limited to 'templates/detailItems/n.html')
-rw-r--r-- | templates/detailItems/n.html | 17 |
1 files changed, 11 insertions, 6 deletions
diff --git a/templates/detailItems/n.html b/templates/detailItems/n.html index 21615e60..433bb1a2 100644 --- a/templates/detailItems/n.html +++ b/templates/detailItems/n.html @@ -1,27 +1,32 @@ <label ng-if="ctrl.availableOptions.length === 0">{{ctrl.meta.readableName}}</label> -<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> <div> <label for="details-honorificPrefix-{{ctrl.index}}">{{ctrl.t.honorificPrefix}}</label> <input type="text" id="details-honorificPrefix-{{ctrl.index}}" name="honorificPrefix" ng-model="ctrl.data.value[3]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" - autocomplete="off" autocorrect="off" spellcheck="false" value="" /> + autocomplete="off" autocorrect="off" spellcheck="false" value="" + ng-disabled="ctrl.addressBook.readOnly" /> </div> <div> <label for="details-firstName-{{ctrl.index}}">{{ctrl.t.firstName}}</label> <input type="text" id="details-firstName-{{ctrl.index}}" name="firstName" ng-model="ctrl.data.value[1]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" - autocomplete="off" autocorrect="off" spellcheck="false" value="" /> + autocomplete="off" autocorrect="off" spellcheck="false" value="" + ng-disabled="ctrl.addressBook.readOnly" /> </div> <div> <label for="details-additionalNames-{{ctrl.index}}">{{ctrl.t.additionalNames}}</label> <input type="text" id="details-additionalNames-{{ctrl.index}}" name="additionalNames" ng-model="ctrl.data.value[2]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" - autocomplete="off" autocorrect="off" spellcheck="false" value="" /> + autocomplete="off" autocorrect="off" spellcheck="false" value="" + ng-disabled="ctrl.addressBook.readOnly" /> </div> <div> <label for="details-familyName-{{ctrl.index}}">{{ctrl.t.familyName}}</label> <input type="text" id="details-familyName-{{ctrl.index}}" name="familyName" ng-model="ctrl.data.value[0]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" - autocomplete="off" autocorrect="off" spellcheck="false" value="" /> + autocomplete="off" autocorrect="off" spellcheck="false" value="" + ng-disabled="ctrl.addressBook.readOnly" /> </div> <div> <label for="details-honorificSuffix-{{ctrl.index}}">{{ctrl.t.honorificSuffix}}</label> <input type="text" id="details-honorificSuffix-{{ctrl.index}}" name="honorificSuffix" ng-model="ctrl.data.value[4]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateDetailedName()" - autocomplete="off" autocorrect="off" spellcheck="false" value="" /> + autocomplete="off" autocorrect="off" spellcheck="false" value="" + ng-disabled="ctrl.addressBook.readOnly" /> </div> |