parent
24da483e2a
commit
5ceafa5005
1
NEWS
1
NEWS
|
@ -13,6 +13,7 @@ Bug fixes
|
||||||
- [web] ignore mouse events in scrollbars of Month view (#3990)
|
- [web] ignore mouse events in scrollbars of Month view (#3990)
|
||||||
- [web] fixed public URL with special characters (#3993)
|
- [web] fixed public URL with special characters (#3993)
|
||||||
- [web] keep the fab button visible when the center list is hidden
|
- [web] keep the fab button visible when the center list is hidden
|
||||||
|
- [web] localized mail, phone, url and address types (#4030)
|
||||||
- [eas] improved EAS parameters parsing (#4003)
|
- [eas] improved EAS parameters parsing (#4003)
|
||||||
- [eas] properly handle canceled appointments
|
- [eas] properly handle canceled appointments
|
||||||
|
|
||||||
|
|
|
@ -141,7 +141,7 @@
|
||||||
</md-button>
|
</md-button>
|
||||||
<md-input-container flex="20">
|
<md-input-container flex="20">
|
||||||
<md-select ng-model="email.type" label:placeholder="Type">
|
<md-select ng-model="email.type" label:placeholder="Type">
|
||||||
<md-option ng-repeat="type in ::editor.allEmailTypes" ng-value="type">{{ type }}</md-option>
|
<md-option ng-repeat="type in ::editor.allEmailTypes" ng-value="type">{{ type.capitalize() | loc }}</md-option>
|
||||||
</md-select>
|
</md-select>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
<md-input-container class="md-flex">
|
<md-input-container class="md-flex">
|
||||||
|
@ -219,7 +219,7 @@
|
||||||
</md-button>
|
</md-button>
|
||||||
<md-input-container flex="20">
|
<md-input-container flex="20">
|
||||||
<md-select ng-model="phone.type" label:placeholder="Type">
|
<md-select ng-model="phone.type" label:placeholder="Type">
|
||||||
<md-option ng-repeat="type in ::editor.allTelTypes" ng-value="type">{{ type }}</md-option>
|
<md-option ng-repeat="type in ::editor.allTelTypes" ng-value="type">{{ type.capitalize() | loc }}</md-option>
|
||||||
</md-select>
|
</md-select>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
<md-input-container class="md-flex">
|
<md-input-container class="md-flex">
|
||||||
|
@ -250,7 +250,7 @@
|
||||||
</md-button>
|
</md-button>
|
||||||
<md-input-container flex="20">
|
<md-input-container flex="20">
|
||||||
<md-select ng-model="url.type" label:placeholder="Type">
|
<md-select ng-model="url.type" label:placeholder="Type">
|
||||||
<md-option ng-repeat="type in ::editor.allUrlTypes" ng-value="type">{{ type }}</md-option>
|
<md-option ng-repeat="type in ::editor.allUrlTypes" ng-value="type">{{ type.capitalize() | loc }}</md-option>
|
||||||
</md-select>
|
</md-select>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
<md-input-container class="md-flex">
|
<md-input-container class="md-flex">
|
||||||
|
@ -282,7 +282,7 @@
|
||||||
<div layout="row">
|
<div layout="row">
|
||||||
<md-input-container flex="20">
|
<md-input-container flex="20">
|
||||||
<md-select ng-model="address.type" label:placeholder="Type">
|
<md-select ng-model="address.type" label:placeholder="Type">
|
||||||
<md-option ng-repeat="type in ::editor.allAddressTypes" ng-value="type">{{ type }}</md-option>
|
<md-option ng-repeat="type in ::editor.allAddressTypes" ng-value="type">{{ type.capitalize() | loc }}</md-option>
|
||||||
</md-select>
|
</md-select>
|
||||||
</md-input-container>
|
</md-input-container>
|
||||||
<md-input-container class="md-flex">
|
<md-input-container class="md-flex">
|
||||||
|
|
|
@ -104,7 +104,7 @@
|
||||||
|
|
||||||
<div class="section" ng-show="editor.card.emails.length > 0">
|
<div class="section" ng-show="editor.card.emails.length > 0">
|
||||||
<div class="pseudo-input-container" ng-repeat="email in editor.card.emails">
|
<div class="pseudo-input-container" ng-repeat="email in editor.card.emails">
|
||||||
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{email.type}}</label>
|
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{email.type.capitalize() | loc}}</label>
|
||||||
<div class="pseudo-input-field">
|
<div class="pseudo-input-field">
|
||||||
<a href="#" ng-bind="email.value"
|
<a href="#" ng-bind="email.value"
|
||||||
ng-click="addressbook.newMessageWithRecipient($event, email.value, editor.card.$fullname())"><!-- recipient --></a>
|
ng-click="addressbook.newMessageWithRecipient($event, email.value, editor.card.$fullname())"><!-- recipient --></a>
|
||||||
|
@ -121,7 +121,7 @@
|
||||||
|
|
||||||
<div class="section" ng-show="editor.card.phones.length > 0">
|
<div class="section" ng-show="editor.card.phones.length > 0">
|
||||||
<div class="pseudo-input-container" ng-repeat="phone in editor.card.phones">
|
<div class="pseudo-input-container" ng-repeat="phone in editor.card.phones">
|
||||||
<label class="pseudo-input-label">{{phone.type}}</label>
|
<label class="pseudo-input-label">{{phone.type.capitalize() | loc}}</label>
|
||||||
<div class="pseudo-input-field">
|
<div class="pseudo-input-field">
|
||||||
<a href="tel:{{phone.value}}">{{phone.value}}</a>
|
<a href="tel:{{phone.value}}">{{phone.value}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -130,7 +130,7 @@
|
||||||
|
|
||||||
<div class="section" ng-show="editor.card.urls">
|
<div class="section" ng-show="editor.card.urls">
|
||||||
<div class="pseudo-input-container" ng-repeat="url in editor.card.urls">
|
<div class="pseudo-input-container" ng-repeat="url in editor.card.urls">
|
||||||
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{url.type}}</label>
|
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{url.type.capitalize() | loc}}</label>
|
||||||
<div class="pseudo-input-field">
|
<div class="pseudo-input-field">
|
||||||
<a href="#" target="_new" ng-href="{{url.value}}">{{url.value}}</a>
|
<a href="#" target="_new" ng-href="{{url.value}}">{{url.value}}</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -139,7 +139,7 @@
|
||||||
|
|
||||||
<div class="section" ng-show="editor.card.addresses">
|
<div class="section" ng-show="editor.card.addresses">
|
||||||
<div class="pseudo-input-container" ng-repeat="address in editor.card.addresses">
|
<div class="pseudo-input-container" ng-repeat="address in editor.card.addresses">
|
||||||
<label class="pseudo-input-label">{{address.type}}</label>
|
<label class="pseudo-input-label">{{address.type.capitalize() | loc}}</label>
|
||||||
<div class="pseudo-input-field">
|
<div class="pseudo-input-field">
|
||||||
<div sg-address="address"><!-- address --></div>
|
<div sg-address="address"><!-- address --></div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -161,6 +161,12 @@
|
||||||
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
|
this.notes = _.map(data.notes, function(note) { return { 'value': note }; });
|
||||||
else if (!this.notes || !this.notes.length)
|
else if (!this.notes || !this.notes.length)
|
||||||
this.notes = [ { value: '' } ];
|
this.notes = [ { value: '' } ];
|
||||||
|
// Lowercase the type of specific fields
|
||||||
|
angular.forEach(['addresses', 'phones', 'urls'], function(key) {
|
||||||
|
angular.forEach(_this[key], function(o) {
|
||||||
|
if (o.type) o.type = o.type.toLowerCase();
|
||||||
|
});
|
||||||
|
});
|
||||||
// Instanciate Card objects for list members
|
// Instanciate Card objects for list members
|
||||||
angular.forEach(this.refs, function(o, i) {
|
angular.forEach(this.refs, function(o, i) {
|
||||||
if (o.email) o.emails = [{value: o.email}];
|
if (o.email) o.emails = [{value: o.email}];
|
||||||
|
|
Loading…
Reference in New Issue