summaryrefslogtreecommitdiffstats
path: root/templates
diff options
context:
space:
mode:
authorAlexander Weidinger <irgendwie@users.noreply.github.com>2017-11-06 10:03:09 +0100
committerGitHub <noreply@github.com>2017-11-06 10:03:09 +0100
commit005f607fa4f501f8e9ac10e67a802d236c6b6e8d (patch)
treecdb503585c80a854343bfc116182250063debc5b /templates
parentf55d5b36e4b556301ab6e0c548aaf8d13a5942b9 (diff)
parent58828c17999c47bfd4081a27913be5e7e7dff0f0 (diff)
Merge pull request #425 from nextcloud/fix-contact-update
Fixed contact update after propertyGroup refactor
Diffstat (limited to 'templates')
-rw-r--r--templates/detailItems/adr.html28
-rw-r--r--templates/detailItems/date.html4
-rw-r--r--templates/detailItems/email.html8
-rw-r--r--templates/detailItems/groups.html4
-rw-r--r--templates/detailItems/n.html12
-rw-r--r--templates/detailItems/select.html6
-rw-r--r--templates/detailItems/tel.html8
-rw-r--r--templates/detailItems/text.html8
-rw-r--r--templates/detailItems/textarea.html6
-rw-r--r--templates/detailItems/url.html6
-rw-r--r--templates/detailItems/username.html8
11 files changed, 49 insertions, 49 deletions
diff --git a/templates/detailItems/adr.html b/templates/detailItems/adr.html
index f71f46ef..1e0789c4 100644
--- a/templates/detailItems/adr.html
+++ b/templates/detailItems/adr.html
@@ -1,36 +1,36 @@
-<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>
-<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>
<div>
<label for="details-pobox-{{ctrl.index}}">{{ctrl.t.poBox}}</label>
- <input type="text" id="details-pobox-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[0]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ <input type="text" id="details-pobox-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[0]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value=""
+ ng-disabled="ctrl.contact.readOnly" />
</div>
<div>
<label for="details-address-{{ctrl.index}}">{{ctrl.t.address}}</label>
- <input type="text" id="details-address-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[2]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value=""
- ng-disabled="ctrl.model.addressBook.readOnly"
+ <input type="text" id="details-address-{{ctrl.index}}" name="address" ng-model="ctrl.data.value[2]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value=""
+ ng-disabled="ctrl.contact.readOnly"
focus-expression="$parent.ctrl.focus === ctrl.name" />
</div>
<div>
<label for="details-postal-code-{{ctrl.index}}">{{ctrl.t.postalCode}}</label>
- <input type="text" id="details-postal-code-{{ctrl.index}}" name="postal-code" ng-model="ctrl.data.value[5]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ <input type="text" id="details-postal-code-{{ctrl.index}}" name="postal-code" ng-model="ctrl.data.value[5]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value=""
+ ng-disabled="ctrl.contact.readOnly" />
</div>
<div>
<label for="details-city-{{ctrl.index}}">{{ctrl.t.city}}</label>
- <input type="text" id="details-city-{{ctrl.index}}" name="city" ng-model="ctrl.data.value[3]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ <input type="text" id="details-city-{{ctrl.index}}" name="city" ng-model="ctrl.data.value[3]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value=""
+ ng-disabled="ctrl.contact.readOnly" />
</div>
<div>
<label for="details-state-{{ctrl.index}}">{{ctrl.t.state}}</label>
- <input type="text" id="details-state-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[4]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ <input type="text" id="details-state-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[4]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value=""
+ ng-disabled="ctrl.contact.readOnly" />
</div>
<div>
<label for="details-country-{{ctrl.index}}">{{ctrl.t.country}}</label>
- <input type="text" id="details-country-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[6]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()" value=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ <input type="text" id="details-country-{{ctrl.index}}" name="state" ng-model="ctrl.data.value[6]" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()" value=""
+ ng-disabled="ctrl.contact.readOnly" />
</div>
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"
/>
-<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>
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>
diff --git a/templates/detailItems/groups.html b/templates/detailItems/groups.html
index 9084a7f5..8da05fc5 100644
--- a/templates/detailItems/groups.html
+++ b/templates/detailItems/groups.html
@@ -1,8 +1,8 @@
<label ng-if="ctrl.availableOptions.length === 0" for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label>
<ui-select id="details-{{ctrl.name}}-{{ctrl.index}}" multiple tagging tagging-label="{{ctrl.t.newGroup}}" ng-model="ctrl.data.value"
- on-remove="ctrl.model.updateContact()" on-select="ctrl.model.updateContact()"
+ on-remove="ctrl.updateContact()" on-select="ctrl.updateContact()"
theme="select2" focus-expression="$parent.$parent.ctrl.focus === ctrl.name"
- ng-disabled="ctrl.model.addressBook.readOnly">
+ ng-disabled="ctrl.contact.readOnly">
<ui-select-match placeholder="{{ctrl.meta.readableName}}">{{$item}}</ui-select-match>
<ui-select-choices repeat="group in ctrl.availableGroups | filter:$select.search">
{{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 @@
<label ng-if="ctrl.availableOptions.length === 0">{{ctrl.meta.readableName}}</label>
-<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>
<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=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ ng-disabled="ctrl.contact.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=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ ng-disabled="ctrl.contact.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=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ ng-disabled="ctrl.contact.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=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ ng-disabled="ctrl.contact.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=""
- ng-disabled="ctrl.model.addressBook.readOnly" />
+ ng-disabled="ctrl.contact.readOnly" />
</div>
diff --git a/templates/detailItems/select.html b/templates/detailItems/select.html
index 90164022..64d583de 100644
--- a/templates/detailItems/select.html
+++ b/templates/detailItems/select.html
@@ -1,7 +1,7 @@
<label ng-if="ctrl.availableOptions.length > 0" for="details-{{ctrl.name}}">{{ctrl.meta.readableName}}</label>
<select id="details-{{ctrl.name}}" name="{{ctrl.name}}" ng-if="ctrl.availableOptions.length > 0"
- ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()"
- ng-disabled="ctrl.model.addressBook.readOnly">
+ ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }" ng-change="ctrl.updateContact()"
+ ng-disabled="ctrl.contact.readOnly">
<option ng-repeat="option in ctrl.availableOptions" value="{{option.id}}">{{option.name}}</option>
</select>
-<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>
diff --git a/templates/detailItems/tel.html b/templates/detailItems/tel.html
index 85930e60..b3cf0253 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)" 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="tel:{{ctrl.data.value}}">
@@ -6,9 +6,9 @@
</a>
<input type="tel" id="details-{{ctrl.name}}-{{ctrl.index}}" name="phone"
ng-model="ctrl.data.value" tel-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>
diff --git a/templates/detailItems/text.html b/templates/detailItems/text.html
index d70f7e0b..1c7873a6 100644
--- a/templates/detailItems/text.html
+++ b/templates/detailItems/text.html
@@ -1,12 +1,12 @@
-<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.model.addressBook.readOnly">
+<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.contact.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>
<input type="text" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}"
ng-model="ctrl.data.value" 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>
diff --git a/templates/detailItems/textarea.html b/templates/detailItems/textarea.html
index 2d25fdbb..d3b1c3e8 100644
--- a/templates/detailItems/textarea.html
+++ b/templates/detailItems/textarea.html
@@ -1,9 +1,9 @@
<label for="details-{{ctrl.name}}-{{ctrl.index}}">{{ctrl.meta.readableName}}</label>
<textarea id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}"
ng-model="ctrl.data.value" rows="3" cols="40"
- ng-model-options="{ debounce: 500 }" ng-change="ctrl.model.updateContact()"
+ 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">
</textarea>
-<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>
diff --git a/templates/detailItems/url.html b/templates/detailItems/url.html
index f9952590..d39eba32 100644
--- a/templates/detailItems/url.html
+++ b/templates/detailItems/url.html
@@ -4,9 +4,9 @@
</a>
<input type="url" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}"
ng-model="ctrl.data.value" ng-model-options="{ debounce: 500, allowInvalid: true }"
- ng-change="ctrl.model.updateContact()" value=""
+ 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"
/>
-<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>
diff --git a/templates/detailItems/username.html b/templates/detailItems/username.html
index 691f3c90..59873584 100644
--- a/templates/detailItems/username.html
+++ b/templates/detailItems/username.html
@@ -1,12 +1,12 @@
-<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.model.addressBook.readOnly">
+<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.contact.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>
<input type="text" id="details-{{ctrl.name}}-{{ctrl.index}}" name="{{ctrl.name}}"
ng-model="ctrl.data.value" ng-model-options="{ debounce: 500 }"
- ng-change="ctrl.model.updateContact()" value=""
+ 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"
/>
-<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>