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"
|
|
|
|
xmlns:label="OGo:label"
|
2015-01-26 04:33:00 +01:00
|
|
|
>
|
2015-03-31 16:50:05 +02:00
|
|
|
|
2015-01-28 09:24:53 +01:00
|
|
|
<md-card-content>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button show-sm"
|
2015-05-28 19:48:45 +02:00
|
|
|
label:aria-label="Close"
|
2015-07-04 03:40:37 +02:00
|
|
|
ng-click="editor.toggleDetailView()"><md-icon>close</md-icon></md-button>
|
2015-06-23 17:23:51 +02:00
|
|
|
<header class="msg-header">
|
2015-05-28 19:48:45 +02:00
|
|
|
<div ng-show="editor.card.tag == 'vcard'">
|
2015-04-29 20:40:18 +02:00
|
|
|
<sg-gravatar-image class="md-tile-left"
|
2015-05-28 19:48:45 +02:00
|
|
|
email="{{editor.card.$preferredEmail()}}"
|
2015-04-29 20:40:18 +02:00
|
|
|
size="48"><!-- gravatar -->
|
|
|
|
</sg-gravatar-image>
|
2015-04-23 17:02:11 +02:00
|
|
|
</div>
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="sg-list-avatar" ng-show="editor.card.tag == 'vlist'">
|
2015-04-23 17:02:11 +02:00
|
|
|
<!--list avatar-->
|
2015-02-24 03:33:47 +01:00
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
<div class="msg-header-content">
|
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>
|
|
|
|
<md-chips ng-model="editor.card.categories"
|
2015-04-27 19:18:05 +02:00
|
|
|
readonly="true">
|
|
|
|
<md-chip-template>
|
|
|
|
{{$chip.value}}
|
|
|
|
</md-chip-template>
|
|
|
|
</md-chips>
|
2015-02-20 05:17:50 +01:00
|
|
|
</div>
|
2015-03-13 07:10:31 +01:00
|
|
|
<div class="sg-icon-bar--vertical">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-05-01 15:38:55 +02:00
|
|
|
label:aria-label="Edit"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-show="editor.currentFolder.isEditable"
|
|
|
|
ui-sref="app.addressbook.card.editor({addressbookId: editor.currentFolder.id, cardId: editor.card.id})">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>mode_edit</md-icon>
|
2015-03-31 16:50:05 +02:00
|
|
|
</md-button>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
label:aria-label="Delete"
|
|
|
|
ng-click="editor.confirmDelete(editor.card)">
|
|
|
|
<md-icon>delete</md-icon>
|
2015-03-04 00:40:48 +01:00
|
|
|
</md-button>
|
2015-02-20 05:17:50 +01:00
|
|
|
</div>
|
|
|
|
</header>
|
2015-02-24 03:33:47 +01:00
|
|
|
<section class="msg-body">
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="pseudo-input-container" ng-show="editor.card.birthday">
|
2015-01-28 09:24:53 +01:00
|
|
|
<div class="key">
|
2015-02-24 03:33:47 +01:00
|
|
|
<label class="pseudo-input-label">
|
2015-02-20 05:17:50 +01:00
|
|
|
<var:string label:value="Birthday"/>
|
2015-01-28 09:24:53 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
2015-02-24 03:33:47 +01:00
|
|
|
<div class="pseudo-input-field">
|
2015-05-28 19:48:45 +02:00
|
|
|
<span>{{editor.card.$birthday() | date}}</span>
|
2014-12-17 20:58:20 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-04-21 20:19:43 +02:00
|
|
|
<!-- list members -->
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="section" ng-show="editor.card.refs.length > 0">
|
2015-04-21 20:24:19 +02:00
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Members"/>
|
|
|
|
</label>
|
2015-04-21 20:19:43 +02:00
|
|
|
<md-list>
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-list-item class="md-3-line" ng-repeat="ref in editor.card.refs track by ref.reference">
|
|
|
|
<sg-gravatar-image class="md-tile-left"
|
|
|
|
email="{{ref.$preferredEmail()}}"
|
|
|
|
size="48">
|
|
|
|
<!-- contact avatar -->
|
|
|
|
</sg-gravatar-image>
|
2015-04-21 20:19:43 +02:00
|
|
|
<div class="md-list-item-text">
|
2015-05-01 15:38:55 +02:00
|
|
|
<h3>
|
2015-05-28 19:48:45 +02:00
|
|
|
<a ui-sref="app.addressbook.card.view({addressbookId: editor.currentFolder.id, cardId: ref.reference})">
|
2015-05-01 15:38:55 +02:00
|
|
|
{{ ref.$fullname() }}
|
|
|
|
</a>
|
2015-04-21 20:19:43 +02:00
|
|
|
</h3>
|
|
|
|
<h4 ng-show="ref.email">
|
|
|
|
<a ui-sref="mailto:{{ref.email}}" ng-class="ng-scope">
|
|
|
|
{{ ref.email }}
|
|
|
|
</a>
|
|
|
|
</h4>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-04-21 20:19:43 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</div>
|
|
|
|
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="section" ng-show="editor.card.emails.length > 0">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="email in editor.card.emails">
|
2015-04-21 20:19:43 +02:00
|
|
|
<div class="key">
|
|
|
|
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{email.type}}</label>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-04-21 20:19:43 +02:00
|
|
|
|
|
|
|
<div class="pseudo-input-field">
|
|
|
|
<a href="mailto:{{email.value}}">{{email.value}}</a>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-04-21 20:19:43 +02:00
|
|
|
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2014-12-17 20:58:20 +01:00
|
|
|
</div>
|
2015-04-21 20:19:43 +02:00
|
|
|
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="section" ng-show="editor.card.phones.length > 0">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="phone in editor.card.phones">
|
2015-01-28 09:24:53 +01:00
|
|
|
<div class="key">
|
2015-02-24 03:33:47 +01:00
|
|
|
<label class="pseudo-input-label">{{phone.type}}</label>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-02-24 03:33:47 +01:00
|
|
|
<div class="pseudo-input-field">
|
2015-01-28 09:24:53 +01:00
|
|
|
<a href="tel:{{phone.value}}">{{phone.value}}</a>
|
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2014-12-17 20:58:20 +01:00
|
|
|
</div>
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="section" ng-show="editor.card.urls">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="url in editor.card.urls">
|
2015-01-28 09:24:53 +01:00
|
|
|
<div class="key">
|
2015-02-24 03:33:47 +01:00
|
|
|
<label class="pseudo-input-label"><var:entity const:name="nbsp"/>{{url.type}}
|
2015-01-28 09:24:53 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-02-24 03:33:47 +01:00
|
|
|
<div class="pseudo-input-field">
|
2015-02-26 16:58:17 +01:00
|
|
|
<a href="#" ng-href="{{url.value}}">{{url.value}}</a>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-02-20 05:17:50 +01:00
|
|
|
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2014-12-17 20:58:20 +01:00
|
|
|
</div>
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="section" ng-show="editor.card.addresses">
|
|
|
|
<div class="pseudo-input-container" ng-repeat="address in editor.card.addresses">
|
2015-01-28 09:24:53 +01:00
|
|
|
<div class="key">
|
2015-02-24 03:33:47 +01:00
|
|
|
<label class="pseudo-input-label">{{address.type}}</label>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2015-02-24 03:33:47 +01:00
|
|
|
<div class="pseudo-input-field">
|
2015-02-26 16:58:17 +01:00
|
|
|
<div sg-address="address"><!-- address --></div>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
|
|
|
</div>
|
2014-12-17 20:58:20 +01:00
|
|
|
</div>
|
2015-05-28 19:48:45 +02:00
|
|
|
<div class="pseudo-input-container" ng-show="editor.card.note">
|
2015-01-28 09:24:53 +01:00
|
|
|
<div class="key">
|
2015-02-24 03:33:47 +01:00
|
|
|
<label class="pseudo-input-label">
|
2015-02-20 05:17:50 +01:00
|
|
|
<var:string label:value="Note"/>
|
2015-01-28 09:24:53 +01:00
|
|
|
</label>
|
|
|
|
</div>
|
2015-02-24 03:33:47 +01:00
|
|
|
<div class="pseudo-input-field">
|
2015-05-28 19:48:45 +02:00
|
|
|
<div ng-bind-html="editor.card.note"><!-- note --></div>
|
2015-01-28 09:24:53 +01:00
|
|
|
</div>
|
2014-12-17 20:58:20 +01:00
|
|
|
</div>
|
2015-01-28 09:24:53 +01:00
|
|
|
</section>
|
|
|
|
</md-card-content>
|
|
|
|
|
2015-03-31 16:50:05 +02:00
|
|
|
|
2014-12-17 20:58:20 +01:00
|
|
|
</container>
|