2014-12-17 20:58:20 +01:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
|
|
|
<container
|
2015-02-26 17:27:36 +01:00
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
2015-09-03 22:10:05 +02:00
|
|
|
xmlns:label="OGo:label">
|
2015-08-05 02:32:43 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="sg-reversible" ng-class="{ 'sg-flip': editor.showRawSource }">
|
|
|
|
<div layout="column" class="layout-fill sg-face">
|
|
|
|
<md-card>
|
|
|
|
<md-card-actions layout="row" layout-align="end center">
|
|
|
|
<md-button class="sg-icon-button hide show-xs"
|
|
|
|
label:aria-label="Close"
|
|
|
|
ng-click="editor.close()">
|
|
|
|
<md-icon>close</md-icon>
|
2015-08-05 02:32:43 +02:00
|
|
|
</md-button>
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="md-flex"><!-- spacer --></div>
|
|
|
|
<md-button type="button" class="sg-icon-button"
|
|
|
|
label:aria-label="Edit"
|
|
|
|
ng-show="editor.currentFolder.acls.objectEditor"
|
|
|
|
ui-sref="app.addressbook.card.editor({addressbookId: editor.currentFolder.id, cardId: editor.card.id})">
|
|
|
|
<md-tooltip><var:string label:value="Edit"/></md-tooltip>
|
|
|
|
<md-icon>mode_edit</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
label:aria-label="Delete"
|
|
|
|
ng-show="editor.currentFolder.acls.objectEraser"
|
|
|
|
ng-click="editor.confirmDelete(editor.card)">
|
|
|
|
<md-tooltip><var:string label:value="Delete"/></md-tooltip>
|
|
|
|
<md-icon>delete</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu>
|
|
|
|
<md-button label:aria-label="More options" class="sg-icon-button" ng-click="$mdOpenMenu($event)">
|
|
|
|
<md-icon>more_vert</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button label:aria-label="Export"
|
|
|
|
ng-click="editor.exportCard()">
|
|
|
|
<var:string label:value="Export"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button label:aria-label="View Raw Source"
|
|
|
|
ng-click="editor.toggleRawSource($event)">
|
|
|
|
<var:string label:value="View Raw Source"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
|
|
|
</md-card-actions>
|
|
|
|
<md-card-content>
|
|
|
|
<header class="msg-header">
|
|
|
|
<div ng-show="editor.card.c_component == 'vcard'">
|
|
|
|
<sg-avatar-image class="md-tile-left"
|
|
|
|
sg-email="editor.card.$preferredEmail()"
|
|
|
|
sg-src="editor.card.photoURL"
|
|
|
|
size="40"><!-- avatar --></sg-avatar-image>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2016-01-14 20:21:42 +01:00
|
|
|
<div class="md-tile-left sg-avatar-list" ng-show="editor.card.$isList()">
|
2015-12-04 21:00:58 +01:00
|
|
|
<!--list avatar-->
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="msg-header-content">
|
|
|
|
<h1 class="sg-md-display-2--thin" ng-bind-html="editor.card.$fullname()"><!-- fullname --></h1>
|
|
|
|
<h6 class="sg-md-display-2-subheader--thin">{{editor.card.$description()}}</h6>
|
|
|
|
<md-chips ng-model="editor.card.categories"
|
|
|
|
class="sg-readonly" readonly="true">
|
|
|
|
<md-chip-template>
|
|
|
|
{{$chip.value}}
|
|
|
|
</md-chip-template>
|
|
|
|
</md-chips>
|
|
|
|
</div>
|
|
|
|
</header>
|
|
|
|
<section class="msg-body">
|
2015-09-03 22:10:05 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="pseudo-input-container" ng-show="editor.card.$birthday().length">
|
2015-09-03 22:10:05 +02:00
|
|
|
<div class="key">
|
2015-12-04 21:00:58 +01:00
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Birthday"/>
|
|
|
|
</label>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="pseudo-input-field">
|
2015-12-04 21:00:58 +01:00
|
|
|
<span>{{editor.card.$birthday()}}</span>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<!-- list members -->
|
|
|
|
<div class="section" ng-show="editor.card.refs.length > 0">
|
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Members"/>
|
|
|
|
</label>
|
|
|
|
<md-list>
|
2015-12-22 03:18:25 +01:00
|
|
|
<md-list-item class="md-2-line" ng-repeat="ref in editor.card.refs track by ref.reference">
|
2015-12-04 21:00:58 +01:00
|
|
|
<sg-avatar-image class="md-tile-left"
|
|
|
|
sg-email="ref.$preferredEmail()"
|
|
|
|
size="48">
|
|
|
|
<!-- contact avatar -->
|
|
|
|
</sg-avatar-image>
|
|
|
|
<div class="md-list-item-text">
|
|
|
|
<h3>
|
2015-12-22 03:18:25 +01:00
|
|
|
<a ui-sref="app.addressbook.card.view({addressbookId: editor.currentFolder.id, cardId: ref.reference})">{{ ref.$fullname() }}</a>
|
2015-12-04 21:00:58 +01:00
|
|
|
</h3>
|
|
|
|
<h4 ng-show="ref.email">
|
2015-12-22 03:18:25 +01:00
|
|
|
<a ui-sref="mailto:{{ref.email}}" ng-class="ng-scope">{{ ref.email }}</a>
|
2015-12-04 21:00:58 +01:00
|
|
|
</h4>
|
|
|
|
</div>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="section" ng-show="editor.card.emails.length > 0">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="email in editor.card.emails">
|
|
|
|
<div class="key">
|
|
|
|
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{email.type}}</label>
|
|
|
|
</div>
|
2015-11-27 16:58:56 +01:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="pseudo-input-field">
|
|
|
|
<a href="#" ng-bind="email.value"
|
|
|
|
ng-click="addressbook.newMessageWithRecipient($event, email.value, editor.card.$fullname())"><!-- recipient --></a>
|
|
|
|
</div>
|
2015-11-27 16:58:56 +01:00
|
|
|
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="section" ng-show="editor.card.c_screenname">
|
|
|
|
<div class="pseudo-input-container">
|
|
|
|
<div class="key">
|
|
|
|
<label class="pseudo-input-label"><var:string label:value="Screen Name"/></label>
|
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="pseudo-input-field">{{editor.card.c_screenname}}</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="section" ng-show="editor.card.phones.length > 0">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="phone in editor.card.phones">
|
|
|
|
<div class="key">
|
|
|
|
<label class="pseudo-input-label">{{phone.type}}</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pseudo-input-field">
|
|
|
|
<a href="tel:{{phone.value}}">{{phone.value}}</a>
|
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
|
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
</div>
|
|
|
|
<div class="section" ng-show="editor.card.urls">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="url in editor.card.urls">
|
|
|
|
<div class="key">
|
|
|
|
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{url.type}}
|
|
|
|
</label>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pseudo-input-field">
|
|
|
|
<a href="#" target="_new" ng-href="{{url.value}}">{{url.value}}</a>
|
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="section" ng-show="editor.card.addresses">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="address in editor.card.addresses">
|
|
|
|
<div class="key">
|
|
|
|
<label class="pseudo-input-label">{{address.type}}</label>
|
|
|
|
</div>
|
|
|
|
<div class="pseudo-input-field">
|
|
|
|
<div sg-address="address"><!-- address --></div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
<div class="pseudo-input-container" ng-show="editor.card.note">
|
2015-09-03 22:10:05 +02:00
|
|
|
<div class="key">
|
2015-12-04 21:00:58 +01:00
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Note"/>
|
|
|
|
</label>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
|
|
|
<div class="pseudo-input-field">
|
2015-12-04 21:00:58 +01:00
|
|
|
<div ng-bind-html="editor.card.note"><!-- note --></div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-12-04 21:00:58 +01:00
|
|
|
</section>
|
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
|
|
|
<div class="layout-fill sg-back" layout="column">
|
|
|
|
<md-card>
|
|
|
|
<md-card-actions layout="row" layout-align="end center">
|
|
|
|
<md-button class="md-icon-button"
|
|
|
|
label:aria-label="Close"
|
|
|
|
ng-click="editor.toggleRawSource()">
|
|
|
|
<md-icon>arrow_forward</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-card-actions>
|
|
|
|
<md-card-content>
|
|
|
|
<pre>{{editor.rawSource}}</pre>
|
|
|
|
</md-card-content>
|
|
|
|
</md-card>
|
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</div>
|
2014-12-17 20:58:20 +01:00
|
|
|
</container>
|