From 53267fcba58360cb0821f1d03af989069c09459e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?John=20Molakvo=C3=A6?= Date: Fri, 3 Nov 2017 11:23:04 +0100 Subject: Fixed readOnly property and templates MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ --- templates/detailItems/adr.html | 16 ++++++++-------- templates/detailItems/date.html | 4 ++-- templates/detailItems/email.html | 6 +++--- templates/detailItems/groups.html | 2 +- templates/detailItems/n.html | 12 ++++++------ templates/detailItems/select.html | 4 ++-- templates/detailItems/tel.html | 6 +++--- templates/detailItems/text.html | 6 +++--- templates/detailItems/textarea.html | 4 ++-- templates/detailItems/url.html | 4 ++-- templates/detailItems/username.html | 6 +++--- 11 files changed, 35 insertions(+), 35 deletions(-) (limited to 'templates') diff --git a/templates/detailItems/adr.html b/templates/detailItems/adr.html index 4d0ffb42..1e0789c4 100644 --- a/templates/detailItems/adr.html +++ b/templates/detailItems/adr.html @@ -1,36 +1,36 @@ - - +
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
diff --git a/templates/detailItems/date.html b/templates/detailItems/date.html index 8a43b098..b8761779 100644 --- a/templates/detailItems/date.html +++ b/templates/detailItems/date.html @@ -3,6 +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.model.addressBook.readOnly" + ng-disabled="ctrl.contact.readOnly" /> - + diff --git a/templates/detailItems/email.html b/templates/detailItems/email.html index 0fd30e52..543ec32c 100644 --- a/templates/detailItems/email.html +++ b/templates/detailItems/email.html @@ -1,4 +1,4 @@ - @@ -9,6 +9,6 @@ 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" /> - + diff --git a/templates/detailItems/groups.html b/templates/detailItems/groups.html index b7e9a4e1..8da05fc5 100644 --- a/templates/detailItems/groups.html +++ b/templates/detailItems/groups.html @@ -2,7 +2,7 @@ + ng-disabled="ctrl.contact.readOnly"> {{$item}} {{group}} diff --git a/templates/detailItems/n.html b/templates/detailItems/n.html index 67c584d0..15efde60 100644 --- a/templates/detailItems/n.html +++ b/templates/detailItems/n.html @@ -1,32 +1,32 @@ - +
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
diff --git a/templates/detailItems/select.html b/templates/detailItems/select.html index 650fdb0f..64d583de 100644 --- a/templates/detailItems/select.html +++ b/templates/detailItems/select.html @@ -1,7 +1,7 @@ - + diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html index 2b506efc..b3cf0253 100644 --- a/templates/detailItems/tel.html +++ b/templates/detailItems/tel.html @@ -1,4 +1,4 @@ -
@@ -9,6 +9,6 @@ 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" /> - + diff --git a/templates/detailItems/text.html b/templates/detailItems/text.html index b79fd84a..1c7873a6 100644 --- a/templates/detailItems/text.html +++ b/templates/detailItems/text.html @@ -1,4 +1,4 @@ - @@ -7,6 +7,6 @@ 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" /> - + diff --git a/templates/detailItems/textarea.html b/templates/detailItems/textarea.html index 1232fad9..d3b1c3e8 100644 --- a/templates/detailItems/textarea.html +++ b/templates/detailItems/textarea.html @@ -4,6 +4,6 @@ ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" placeholder="{{ctrl.meta.readableName}}" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.model.addressBook.readOnly"> + ng-disabled="ctrl.contact.readOnly"> - + diff --git a/templates/detailItems/url.html b/templates/detailItems/url.html index 32ecb40e..d39eba32 100644 --- a/templates/detailItems/url.html +++ b/templates/detailItems/url.html @@ -7,6 +7,6 @@ ng-change="ctrl.updateContact()" value="" placeholder="https://…" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.model.addressBook.readOnly" + ng-disabled="ctrl.contact.readOnly" /> - + diff --git a/templates/detailItems/username.html b/templates/detailItems/username.html index f4fa7183..59873584 100644 --- a/templates/detailItems/username.html +++ b/templates/detailItems/username.html @@ -1,4 +1,4 @@ - @@ -7,6 +7,6 @@ ng-change="ctrl.updateContact()" value="" placeholder="Username" focus-expression="$parent.ctrl.focus === ctrl.name" - ng-disabled="ctrl.model.addressBook.readOnly" + ng-disabled="ctrl.contact.readOnly" /> - + -- cgit v1.2.3