2014-12-17 20:58:20 +01:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
2015-01-28 03:45:56 +01:00
|
|
|
<container xmlns="http://www.w3.org/1999/xhtml" xmlns:var="http://www.skyrix.com/od/binding" xmlns:const="http://www.skyrix.com/od/constant" xmlns:label="OGo:label">
|
2015-01-28 01:05:35 +01:00
|
|
|
|
2015-03-25 21:46:06 +01:00
|
|
|
|
|
|
|
<md-content md-scroll-y="true" class="md-padding md-whiteframe-z1 bg-sogoPaper-50">
|
2015-03-20 16:31:08 +01:00
|
|
|
<div class="editor md-padding">
|
2015-03-17 03:00:45 +01:00
|
|
|
<hgroup class="header">
|
2015-05-28 19:48:45 +02:00
|
|
|
<h1 class="sg-md-display-2--light" ng-bind-html="editor.card.$fullname()"><!-- fullname --></h1>
|
|
|
|
<h6 class="sg-md-display-2-subheader">{{editor.card.$description()}}</h6>
|
2015-03-17 03:00:45 +01:00
|
|
|
</hgroup>
|
2015-04-21 20:19:43 +02:00
|
|
|
|
|
|
|
<!-- contact editor -->
|
2015-05-28 19:48:45 +02:00
|
|
|
<form name="cardForm" ng-show="editor.card.$isCard()" ng-submit="editor.save(cardForm)">
|
2015-02-24 06:00:59 +01:00
|
|
|
<md-input-container>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:entity const:name="nbsp"/>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Display"/>
|
2015-01-28 03:45:56 +01:00
|
|
|
</label>
|
2015-07-27 18:47:40 +02:00
|
|
|
<input type="text" ng-maxlength="30" ng-model="editor.card.c_cn"/>
|
2015-02-24 06:00:59 +01:00
|
|
|
</md-input-container>
|
2015-03-17 03:00:45 +01:00
|
|
|
<!-- todo: look for better reset/normalization. Semanticaly this should be a fieldset, but content doesn't flex properly du to browser styles-->
|
|
|
|
<div id="contact-identification" class="sg-fieldset" layout="row" layout-sm="column">
|
|
|
|
<md-input-container flex="40">
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Firstname"/>
|
2015-02-20 04:05:53 +01:00
|
|
|
</label>
|
2015-07-27 18:47:40 +02:00
|
|
|
<input type="text" ng-model="editor.card.c_givenname"/>
|
2015-02-25 01:40:57 +01:00
|
|
|
</md-input-container>
|
2015-03-17 03:00:45 +01:00
|
|
|
<md-input-container flex="40">
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Lastname"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-07-27 18:47:40 +02:00
|
|
|
<input type="text" ng-model="editor.card.c_sn"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</md-input-container>
|
2015-03-17 03:00:45 +01:00
|
|
|
<md-input-container flex="20">
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Nickname"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-05-28 19:48:45 +02:00
|
|
|
<input type="text" ng-model="editor.card.nickname"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</md-input-container>
|
2015-01-28 03:45:56 +01:00
|
|
|
</div>
|
2015-02-20 04:05:53 +01:00
|
|
|
|
2015-03-17 03:00:45 +01:00
|
|
|
<div class="sg-fieldset" layout="row" layout-sm="column">
|
2015-02-26 05:44:22 +01:00
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Organization"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-07-27 18:47:40 +02:00
|
|
|
<input type="text" ng-model="editor.card.c_org"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</md-input-container>
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Title"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-05-28 19:48:45 +02:00
|
|
|
<input type="text" ng-model="editor.card.title"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-03-17 03:00:45 +01:00
|
|
|
|
|
|
|
<!-- org units -->
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="attr" ng-repeat="unit in editor.card.orgUnits">
|
2015-03-17 03:00:45 +01:00
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Organization Unit"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="unit.value"
|
|
|
|
sg-focus-on="orgUnit_{{$index}}"/>
|
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.card.$delete('orgUnits', $index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
</div>
|
2015-02-26 05:44:22 +01:00
|
|
|
</div>
|
2015-03-17 03:00:45 +01:00
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.addOrgUnit($event)">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
<label class="button-label">
|
|
|
|
<var:string label:value="Add Organizational Unit"/>
|
|
|
|
</label>
|
2015-02-26 05:44:22 +01:00
|
|
|
</div>
|
2015-03-17 03:00:45 +01:00
|
|
|
|
2015-06-23 17:22:35 +02:00
|
|
|
<!-- categories -->
|
|
|
|
<md-chips ng-model="editor.card.categories">
|
|
|
|
<md-chip-template>
|
|
|
|
{{$chip.value}}
|
|
|
|
</md-chip-template>
|
|
|
|
<md-autocomplete
|
|
|
|
md-selected-item="editor.categories.selected"
|
|
|
|
md-selected-item-change="editor.card.$addCategory(category)"
|
|
|
|
md-search-text="editor.categories.searchText"
|
|
|
|
md-items="category in editor.card.constructor.filterCategories(editor.categories.searchText)"
|
|
|
|
label:placeholder="Add a category">
|
|
|
|
<span md-highlight-text="editor.categories.searchText">{{category}}</span>
|
|
|
|
</md-autocomplete>
|
|
|
|
</md-chips>
|
|
|
|
|
2015-03-17 03:00:45 +01:00
|
|
|
<!-- emails -->
|
|
|
|
<div class="section">
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="attr" ng-repeat="email in editor.card.emails">
|
2015-03-17 03:00:45 +01:00
|
|
|
<div class="md-layout-margin" layout="row" layout-align="space-between end">
|
|
|
|
<md-select ng-model="email.type" label:placeholder="Type">
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-option ng-repeat="type in ::editor.allEmailTypes" ng-value="type">{{ type }}</md-option>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-select>
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Email Address"/>
|
|
|
|
</label>
|
|
|
|
<input type="email" ng-model="email.value"
|
|
|
|
sg-focus-on="email_{{$index}}"/>
|
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.card.$delete('emails', $index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.addEmail()">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
<label class="button-label">
|
|
|
|
<var:string label:value="New Email Address"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-03-17 03:00:45 +01:00
|
|
|
</div>
|
2015-02-26 05:44:22 +01:00
|
|
|
</div>
|
2015-03-17 03:00:45 +01:00
|
|
|
|
|
|
|
<!-- birthday -->
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Birthday"/>
|
|
|
|
</label>
|
2015-05-28 19:48:45 +02:00
|
|
|
<input type="date" ng-model="editor.card.birthday"/>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<!-- phones -->
|
|
|
|
<div class="section">
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="attr" ng-repeat="phone in editor.card.phones">
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="space-between end">
|
2015-03-17 03:00:45 +01:00
|
|
|
<md-select ng-model="phone.type" label:placeholder="Type">
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-option ng-repeat="type in ::editor.allTelTypes" ng-value="type">{{ type }}</md-option>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-select>
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Phone Number"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="phone.value"
|
|
|
|
sg-focus-on="phone_{{$index}}"/>
|
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.card.$delete('phones', $index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.addPhone()">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
<label class="button-label">
|
|
|
|
<var:string label:value="New Phone Number"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-03-17 03:00:45 +01:00
|
|
|
</div>
|
2015-02-20 04:05:53 +01:00
|
|
|
</div>
|
2015-03-17 03:00:45 +01:00
|
|
|
|
|
|
|
<!-- urls -->
|
|
|
|
<div class="section">
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="attr" ng-repeat="url in editor.card.urls">
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="space-between end">
|
2015-03-17 03:00:45 +01:00
|
|
|
<md-select ng-model="url.type" label:placeholder="Type">
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-option ng-repeat="type in ::editor.allUrlTypes" ng-value="type">{{ type }}</md-option>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-select>
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="URL"/>
|
|
|
|
</label>
|
|
|
|
<input type="url" ng-model="url.value" sg-focus-on="url_{{$index}}"/>
|
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.card.$delete('urls', $index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.addUrl()">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
<label class="button-label">
|
|
|
|
<var:string label:value="New URL"/>
|
2015-02-26 05:44:22 +01:00
|
|
|
</label>
|
2015-03-17 03:00:45 +01:00
|
|
|
</div>
|
2015-02-26 05:44:22 +01:00
|
|
|
</div>
|
|
|
|
|
2015-03-17 03:00:45 +01:00
|
|
|
<!-- addresses -->
|
|
|
|
<div class="section">
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="attr" ng-repeat="address in editor.card.addresses">
|
2015-03-17 03:00:45 +01:00
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-select ng-model="address.type" label:placeholder="Type">
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-option ng-repeat="type in ::editor.allAddressTypes" ng-value="type">{{ type }}</md-option>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-select>
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="street"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.street"
|
|
|
|
sg-focus-on="address_{{$index}}"/>
|
|
|
|
</md-input-container>
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value=""/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.street2"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="Postoffice"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.postoffice"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="City"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.locality"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="Region"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.region"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="Country"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.country"/>
|
|
|
|
</md-input-container>
|
|
|
|
</div>
|
|
|
|
<div layout="row" layout-align="center end">
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="Postal Code"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" ng-model="address.postalcode"/>
|
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.card.$delete('addresses', $index)">
|
|
|
|
<md-icon>remove_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="md-layout-margin" layout="row" layout-align="start center">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" type="button" ng-click="editor.addAddress()">
|
|
|
|
<md-icon>add_circle</md-icon>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-button>
|
|
|
|
<label class="button-label">
|
|
|
|
<var:string label:value="New Address"/>
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-20 04:05:53 +01:00
|
|
|
|
2015-03-17 03:00:45 +01:00
|
|
|
<!-- note -->
|
|
|
|
<md-input-container>
|
2015-05-01 15:38:55 +02:00
|
|
|
<label class="right inline">
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Note"/>
|
|
|
|
</label>
|
2015-05-28 19:48:45 +02:00
|
|
|
<textarea ng-model="editor.card.note"><!-- note --></textarea>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-input-container>
|
2015-02-26 05:44:22 +01:00
|
|
|
|
2015-03-17 03:00:45 +01:00
|
|
|
<div class="fieldset md-layout-margin" layout="row" layout-align="end center">
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-button type="button" ng-click="editor.cancel()">
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Cancel"/>
|
|
|
|
</md-button>
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-button type="button" ng-click="editor.reset()">
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Reset"/>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="md-primary md-hue-3" type="submit">
|
|
|
|
<var:string label:value="Save"/>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</form>
|
2015-04-21 20:19:43 +02:00
|
|
|
|
|
|
|
<!-- list editor -->
|
2015-05-28 19:48:45 +02:00
|
|
|
<form name="listForm" ng-if="editor.card.$isList()" ng-submit="editor.save(listForm)">
|
2015-04-21 20:19:43 +02:00
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-04-21 20:19:43 +02:00
|
|
|
<var:string label:value="Display"/>
|
|
|
|
</label>
|
2015-07-27 18:47:40 +02:00
|
|
|
<input type="text" ng-maxlength="30" ng-model="editor.card.c_cn"/>
|
2015-04-21 20:19:43 +02:00
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-04-21 20:19:43 +02:00
|
|
|
<var:string label:value="Nickname"/>
|
|
|
|
</label>
|
2015-05-28 19:48:45 +02:00
|
|
|
<input type="text" ng-maxlength="30" ng-model="editor.card.nickname"/>
|
2015-04-21 20:19:43 +02:00
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<md-input-container>
|
2015-05-28 19:48:45 +02:00
|
|
|
<label>
|
2015-04-21 20:19:43 +02:00
|
|
|
<var:string label:value="Description"/>
|
|
|
|
</label>
|
2015-05-28 19:48:45 +02:00
|
|
|
<textarea ng-model="editor.card.description"><!-- note --></textarea>
|
2015-04-21 20:19:43 +02:00
|
|
|
</md-input-container>
|
|
|
|
|
|
|
|
<!-- list members -->
|
|
|
|
<div class="pseudo-input-container">
|
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Members:"/>
|
|
|
|
</label>
|
|
|
|
<md-contact-chips
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-model="editor.card.refs"
|
|
|
|
md-contacts="editor.userFilter($query, editor.card.refs)"
|
2015-05-07 16:03:30 +02:00
|
|
|
md-contact-name="$$fullname"
|
|
|
|
md-contact-image="$$image"
|
|
|
|
md-contact-email="$$email"
|
2015-05-27 21:06:42 +02:00
|
|
|
md-require-match="md-require-match"
|
2015-05-06 23:45:28 +02:00
|
|
|
filter-selected="false"
|
|
|
|
label:placeholder="Add Member"><!-- members --></md-contact-chips>
|
2015-04-21 20:19:43 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="fieldset md-layout-margin" layout="row" layout-align="end center">
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-button type="button" ng-click="editor.cancel()">
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Cancel"/>
|
2015-04-21 20:19:43 +02:00
|
|
|
</md-button>
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-button type="button" ng-click="editor.reset()">
|
2015-03-17 03:00:45 +01:00
|
|
|
<var:string label:value="Reset"/>
|
2015-04-21 20:19:43 +02:00
|
|
|
</md-button>
|
|
|
|
<var:if condition="canCreateOrModify">
|
|
|
|
<md-button class="md-primary md-hue-3" type="submit">
|
|
|
|
<var:string label:value="Save"/>
|
|
|
|
</md-button>
|
|
|
|
</var:if>
|
2015-03-17 03:00:45 +01:00
|
|
|
</div>
|
|
|
|
</form>
|
2015-02-20 04:05:53 +01:00
|
|
|
</div>
|
2015-03-17 03:00:45 +01:00
|
|
|
</md-content>
|
2015-03-25 21:46:06 +01:00
|
|
|
|
2015-01-28 03:45:56 +01:00
|
|
|
</container>
|