2006-10-30 23:38:22 +01:00
|
|
|
<?xml version='1.0' standalone='yes'?>
|
2009-06-26 19:48:28 +02:00
|
|
|
<!DOCTYPE var:component>
|
|
|
|
<var:component
|
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-08-03 17:53:54 +02:00
|
|
|
xmlns:rsrc="OGo:url"
|
2015-02-26 17:27:36 +01:00
|
|
|
xmlns:label="OGo:label"
|
|
|
|
className="UIxPageFrame"
|
2015-08-03 17:53:54 +02:00
|
|
|
title="title"
|
|
|
|
const:userDefaultsKeys="SOGoContactsCategories"
|
2016-05-04 20:15:18 +02:00
|
|
|
const:jsFiles="vendor/ckeditor/ckeditor.js, vendor/ckeditor/ck.js, Common.js, Preferences.services.js, Mailer.services.js, Contacts.js, Contacts.services.js, vendor/angular-file-upload.min.js, vendor/FileSaver.min.js">
|
2015-02-26 17:27:36 +01:00
|
|
|
<script type="text/javascript">
|
2016-11-08 18:24:56 +01:00
|
|
|
var contactFolders = <var:string value="contactFolders.jsonRepresentation" const:escapeHTML="NO" />;
|
2014-06-19 21:52:57 +02:00
|
|
|
</script>
|
2009-06-26 19:48:28 +02:00
|
|
|
|
2016-03-08 19:20:34 +01:00
|
|
|
<main class="view"
|
|
|
|
layout="row" layout-fill="layout-fill"
|
|
|
|
ui-view="addressbooks"
|
|
|
|
ng-controller="navController"><!-- addressbooks list --></main>
|
2015-01-26 03:30:27 +01:00
|
|
|
|
2016-08-05 22:08:04 +02:00
|
|
|
<sg-draggable-helper>
|
|
|
|
<md-icon>person</md-icon>
|
|
|
|
<sg-draggable-helper-counter class="md-default-theme md-warn md-hue-1 md-bg"><!-- count --></sg-draggable-helper-counter>
|
|
|
|
</sg-draggable-helper>
|
|
|
|
|
2015-02-26 17:27:36 +01:00
|
|
|
<script type="text/ng-template" id="UIxContactFoldersView">
|
2014-10-08 16:35:50 +02:00
|
|
|
|
2015-08-06 17:26:26 +02:00
|
|
|
<!-- Sidenav -->
|
2015-11-27 22:40:23 +01:00
|
|
|
<md-sidenav class="md-sidenav-left md-whiteframe-z1" layout="column"
|
|
|
|
md-component-id="left" md-is-locked-open="isGtMedium"
|
2016-03-08 19:20:34 +01:00
|
|
|
ng-class="{ 'sg-close': leftIsClose }">
|
2015-04-03 17:34:05 +02:00
|
|
|
<var:component className="UIxSidenavToolbarTemplate" />
|
2016-04-21 19:40:47 +02:00
|
|
|
<md-content md-scroll-y="md-scroll-y" class="md-flex"
|
|
|
|
md-colors="::{ backgroundColor: 'default-background-300' }">
|
2015-04-24 14:45:39 +02:00
|
|
|
<!-- User's addressbooks -->
|
|
|
|
<section>
|
2016-05-17 21:10:09 +02:00
|
|
|
<md-subheader class="sg-md-subheader--with-secondary-icon"
|
2016-04-21 19:40:47 +02:00
|
|
|
md-colors="::{background: 'default-background-300'}">
|
2015-04-24 14:45:39 +02:00
|
|
|
<div layout="row" layout-align="space-between center">
|
2015-08-12 03:16:16 +02:00
|
|
|
<span><var:string label:value="Address Books"/></span>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="New Addressbook..."
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-click="app.newAddressbook()">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add_circle_outline</md-icon>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-subheader>
|
|
|
|
<md-list>
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-list-item ng-repeat="folder in app.service.$addressbooks track by folder.id"
|
2015-09-24 17:12:02 +02:00
|
|
|
ng-click="app.select($event, folder)"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-dblclick="app.edit(folder)"
|
2016-08-30 23:49:17 +02:00
|
|
|
aria-label="{{::folder.name}}"
|
2015-04-29 17:23:21 +02:00
|
|
|
ui-sref="app.addressbook({addressbookId: folder.id})"
|
2016-08-05 22:08:04 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1"
|
|
|
|
sg-droppable="app.isDroppableFolder(dragFolder, folder)"
|
|
|
|
sg-drop="app.dragSelectedCards(dragFolder, folder, dragMode)">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>contacts</md-icon>
|
2015-04-29 17:23:21 +02:00
|
|
|
<p class="sg-item-name"
|
2016-06-17 21:41:10 +02:00
|
|
|
ng-show="app.editMode!=folder.id">
|
|
|
|
{{folder.name}}
|
|
|
|
<md-tooltip md-delay="2000">{{folder.name}}</md-tooltip>
|
|
|
|
</p>
|
2015-09-24 17:12:02 +02:00
|
|
|
<md-input-container class="md-flex"
|
2015-07-28 20:16:56 +02:00
|
|
|
ng-show="app.editMode == folder.id">
|
2015-09-16 22:15:04 +02:00
|
|
|
<input class="sg-item-name" type="text"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="Name of the Address Book"
|
2015-04-24 14:45:39 +02:00
|
|
|
ng-model="folder.name"
|
|
|
|
ng-cloak="ng-cloak"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-blur="app.save(folder)"
|
2015-04-24 14:45:39 +02:00
|
|
|
sg-focus-on="addressBookName_{{folder.id}}"
|
2015-05-28 19:48:45 +02:00
|
|
|
sg-enter="app.save(folder)"
|
|
|
|
sg-escape="app.revertEditing(folder)"/>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-menu class="md-secondary"
|
2015-07-28 20:16:56 +02:00
|
|
|
ng-show="app.service.selectedFolder.id == folder.id">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon label:aria-label="Options"
|
2016-11-01 20:54:56 +01:00
|
|
|
ng-click="$mdMenu.open()"
|
2015-07-04 03:40:37 +02:00
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-11 20:32:07 +02:00
|
|
|
<md-menu-content width="2">
|
2016-03-11 20:28:43 +01:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.showProperties(folder)">
|
|
|
|
<var:string label:value="Properties"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-08-10 20:13:25 +02:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.edit(folder)">
|
|
|
|
<var:string label:value="Rename"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-09-21 21:00:32 +02:00
|
|
|
<md-menu-item ng-show="folder.id != 'personal'">
|
2015-06-12 14:55:28 +02:00
|
|
|
<md-button type="button" ng-click="app.confirmDelete()">
|
|
|
|
<var:string label:value="Delete"/>
|
2015-06-11 20:32:07 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-08-22 02:56:21 +02:00
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
2016-03-11 20:28:43 +01:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.showLinks(folder)">
|
|
|
|
<var:string label:value="Links to this Address Book"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
2015-08-22 02:56:21 +02:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.importCards($event, folder)">
|
|
|
|
<var:string label:value="Import"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-06-11 20:32:07 +02:00
|
|
|
<md-menu-item>
|
2016-05-04 20:15:18 +02:00
|
|
|
<md-button type="button" ng-click="folder.exportCards(false)">
|
2015-06-12 14:55:28 +02:00
|
|
|
<var:string label:value="Export"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-06-12 17:21:02 +02:00
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
2015-06-12 14:55:28 +02:00
|
|
|
<md-menu-item>
|
2015-06-15 17:34:48 +02:00
|
|
|
<md-button type="button" ng-click="app.share(folder)">
|
2015-06-12 14:55:28 +02:00
|
|
|
<var:string label:value="Sharing..."/>
|
2015-06-11 20:32:07 +02:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
|
|
|
<!-- Subscriptions -->
|
|
|
|
<section>
|
2016-05-17 21:10:09 +02:00
|
|
|
<md-subheader class="sg-md-subheader--with-secondary-icon"
|
2016-04-21 19:40:47 +02:00
|
|
|
md-colors="::{background: 'default-background-300'}">
|
2015-04-24 14:45:39 +02:00
|
|
|
<div layout="row" layout-align="space-between center">
|
|
|
|
<span><var:string label:value="Subscriptions"/></span>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="Subscribe to an Addressbook..."
|
2015-12-04 21:00:58 +01:00
|
|
|
sg-subscribe="contact"
|
|
|
|
sg-subscribe-on-select="app.subscribeToFolder(folderData)">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>add_circle_outline</md-icon>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-subheader>
|
|
|
|
<md-list>
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-list-item ng-repeat="folder in app.service.$subscriptions track by folder.id"
|
2015-09-24 17:12:02 +02:00
|
|
|
ng-click="app.select($event, folder)"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-dblclick="app.edit(folder)"
|
2015-04-29 17:23:21 +02:00
|
|
|
ui-sref="app.addressbook({addressbookId: folder.id})"
|
2016-08-05 22:08:04 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1"
|
|
|
|
sg-droppable="app.isDroppableFolder(dragFolder, folder)"
|
|
|
|
sg-drop="app.dragSelectedCards(dragFolder, folder, dragMode)">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>contacts</md-icon>
|
2015-04-29 17:23:21 +02:00
|
|
|
<p class="sg-item-name"
|
2016-06-17 21:41:10 +02:00
|
|
|
ng-show="app.editMode!=folder.id">
|
|
|
|
{{folder.name}}
|
|
|
|
<md-tooltip md-delay="2000">{{folder.name}}</md-tooltip>
|
|
|
|
</p>
|
2015-09-24 17:12:02 +02:00
|
|
|
<md-input-container class="md-flex"
|
2016-12-19 17:15:35 +01:00
|
|
|
ng-show="app.editMode == folder.id">
|
2015-09-16 22:15:04 +02:00
|
|
|
<input class="sg-item-name" type="text"
|
2015-04-29 17:23:21 +02:00
|
|
|
label:aria-label="Name of the Address Book"
|
2015-04-24 14:45:39 +02:00
|
|
|
ng-model="folder.name"
|
|
|
|
ng-cloak="ng-cloak"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-blur="app.save(folder)"
|
2015-04-24 14:45:39 +02:00
|
|
|
sg-focus-on="addressBookName_{{folder.id}}"
|
2015-05-28 19:48:45 +02:00
|
|
|
sg-enter="app.save(folder)"
|
|
|
|
sg-escape="app.revertEditing(folder)"/>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-input-container>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-menu class="md-secondary"
|
2016-12-19 17:15:35 +01:00
|
|
|
ng-show="app.service.selectedFolder.id == folder.id">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon label:aria-label="Options"
|
2016-11-01 20:54:56 +01:00
|
|
|
ng-click="$mdMenu.open()"
|
2015-07-04 03:40:37 +02:00
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-15 15:53:10 +02:00
|
|
|
<md-menu-content width="2">
|
2016-10-26 23:27:25 +02:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.showProperties(folder)">
|
|
|
|
<var:string label:value="Properties"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-08-10 20:13:25 +02:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.edit(folder)">
|
|
|
|
<var:string label:value="Rename"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-06-15 15:53:10 +02:00
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="app.confirmDelete(folder)">
|
|
|
|
<var:string label:value="Delete"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-11-04 16:38:24 +01:00
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item>
|
2016-10-26 23:27:25 +02:00
|
|
|
<md-button type="button" ng-click="app.showLinks(folder)">
|
|
|
|
<var:string label:value="Links to this Address Book"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item ng-show="::folder.acls.objectCreator">
|
|
|
|
<md-button type="button" ng-click="app.importCards($event, folder)">
|
|
|
|
<var:string label:value="Import"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button type="button" ng-click="folder.exportCards(false)">
|
|
|
|
<var:string label:value="Export"/>
|
2015-11-04 16:38:24 +01:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-06-15 15:53:10 +02:00
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
|
|
|
<!-- Remote/domain addressbooks -->
|
|
|
|
<section>
|
2016-05-17 21:10:09 +02:00
|
|
|
<md-subheader class="sg-md-subheader--with-secondary-icon"
|
2016-04-21 19:40:47 +02:00
|
|
|
md-colors="::{background: 'default-background-300'}">
|
2015-04-29 17:23:21 +02:00
|
|
|
<var:string label:value="Global Addressbooks"/>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-subheader>
|
|
|
|
<md-list>
|
2015-05-28 19:48:45 +02:00
|
|
|
<md-list-item ng-repeat="folder in app.service.$remotes track by folder.id"
|
2015-09-24 17:12:02 +02:00
|
|
|
ng-click="app.select($event, folder)"
|
2015-04-29 17:23:21 +02:00
|
|
|
ui-sref="app.addressbook({addressbookId: folder.id})"
|
2015-09-09 22:35:09 +02:00
|
|
|
ui-sref-active="md-default-theme md-background md-bg md-hue-1">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>public</md-icon>
|
2016-06-17 21:41:10 +02:00
|
|
|
<p class="sg-item-name">
|
|
|
|
{{folder.name}}
|
|
|
|
<md-tooltip md-delay="2000">{{folder.name}}</md-tooltip>
|
|
|
|
</p>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
2015-01-28 01:05:35 +01:00
|
|
|
</md-content>
|
|
|
|
</md-sidenav>
|
2014-08-20 21:49:44 +02:00
|
|
|
|
2016-03-08 19:20:34 +01:00
|
|
|
<section layout="column" layout-fill="layout-fill" ui-view="addressbook"><!-- contacts list --></section>
|
2015-04-24 14:45:39 +02:00
|
|
|
</script>
|
2015-02-26 06:39:18 +01:00
|
|
|
|
2015-04-24 14:45:39 +02:00
|
|
|
<script type="text/ng-template" id="addressbook">
|
2015-09-03 22:10:05 +02:00
|
|
|
<md-toolbar layout="row" layout-align="space-between center" class="toolbar-main">
|
2016-03-30 03:59:21 +02:00
|
|
|
<var:component className="UIxTopnavToolbar" />
|
2015-09-03 22:10:05 +02:00
|
|
|
</md-toolbar>
|
|
|
|
|
|
|
|
<div layout="row" class="md-flex">
|
|
|
|
|
2016-11-10 22:03:00 +01:00
|
|
|
<div class="view-list" layout="column" ng-class="{'view-list--close': centerIsClose}">
|
2015-09-03 22:10:05 +02:00
|
|
|
|
|
|
|
<!-- single-selection toolbar -->
|
2015-12-04 21:00:58 +01:00
|
|
|
<md-toolbar class="md-accent md-hue-1"
|
2016-03-08 19:20:34 +01:00
|
|
|
ng-hide="addressbook.mode.multiple">
|
2015-09-09 22:35:09 +02:00
|
|
|
<!-- sort mode (default) -->
|
2015-09-03 22:10:05 +02:00
|
|
|
<div class="md-toolbar-tools" ng-hide="addressbook.mode.search">
|
2015-07-20 21:03:29 +02:00
|
|
|
<md-button class="sg-icon-button" label:aria-label="Search"
|
2016-10-03 17:44:51 +02:00
|
|
|
ng-click="addressbook.searchMode()">
|
2015-07-20 21:03:29 +02:00
|
|
|
<md-icon>search</md-icon>
|
|
|
|
</md-button>
|
2015-12-10 02:27:22 +01:00
|
|
|
<a href="javascript:void(0)" class="sg-folder-name"
|
2016-10-05 21:23:18 +02:00
|
|
|
ng-click="addressbook.searchMode()">{{addressbook.selectedFolder.name}}</a>
|
2015-07-20 20:24:36 +02:00
|
|
|
<md-menu>
|
|
|
|
<md-button class="sg-icon-button" label:aria-label="Sort"
|
2016-11-01 20:54:56 +01:00
|
|
|
ng-click="$mdMenu.open()">
|
2015-07-20 20:24:36 +02:00
|
|
|
<md-icon>sort</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_cn')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_cn') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Name"/>
|
|
|
|
</md-button>
|
2015-09-24 16:55:08 +02:00
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_sn')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_sn') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Lastname"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_givenname')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_givenname') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Firstname"/>
|
|
|
|
</md-button>
|
2015-07-20 20:24:36 +02:00
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_mail')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_mail') }">
|
|
|
|
<!-- selected --></md-icon> <var:string label:value="Email"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_screenname')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_screenname') }">
|
|
|
|
<!-- selected --></md-icon> <var:string
|
|
|
|
label:value="Screen Name"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_o')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_o') }">
|
|
|
|
<!-- selected --></md-icon> <var:string
|
|
|
|
label:value="Organization"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.sort('c_telephonenumber')">
|
|
|
|
<md-icon ng-class="{ 'icon-check': addressbook.sortedBy('c_telephonenumber') }">
|
|
|
|
<!-- selected --></md-icon> <var:string
|
|
|
|
label:value="Preferred Phone"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2015-07-20 21:03:29 +02:00
|
|
|
<md-menu-divider> <!-- divider --></md-menu-divider>
|
|
|
|
<md-menu-item >
|
2016-03-01 20:15:04 +01:00
|
|
|
<sg-checkmark
|
|
|
|
ng-change="addressbook.sort(addressbook.selectedFolder.constructor.$query.sort)"
|
|
|
|
ng-model="addressbook.selectedFolder.constructor.$query.asc"
|
|
|
|
sg-true-value="0"
|
|
|
|
sg-false-value="1"><var:string label:value="Descending Order"/></sg-checkmark>
|
2015-07-20 21:03:29 +02:00
|
|
|
</md-menu-item>
|
2015-07-20 20:24:36 +02:00
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-07-30 19:06:28 +02:00
|
|
|
<md-button class="sg-icon-button" aria-label="Refresh" ng-click="addressbook.selectedFolder.$reload()" >
|
|
|
|
<md-icon>refresh</md-icon>
|
|
|
|
</md-button>
|
2015-07-20 20:24:36 +02:00
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
<!-- search mode -->
|
2016-02-25 03:30:33 +01:00
|
|
|
<form name="searchForm" class="md-toolbar-tools sg-toolbar-secondary"
|
2015-12-11 21:11:53 +01:00
|
|
|
layout="row"
|
2015-09-03 22:10:05 +02:00
|
|
|
ng-show="addressbook.mode.search"
|
2016-02-25 03:30:33 +01:00
|
|
|
sg-search="addressbook.selectedFolder.$filter(searchText, { search: searchField })"
|
|
|
|
sg-allow-dot="addressbook.selectedFolder.listRequiresDot">
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-button class="md-icon-button"
|
2015-09-03 22:10:05 +02:00
|
|
|
sg-search-cancel="addressbook.cancelSearch()"
|
|
|
|
label:aria-label="Back">
|
|
|
|
<md-icon>arrow_back</md-icon>
|
|
|
|
</md-button>
|
2015-12-11 21:11:53 +01:00
|
|
|
<md-input-container class="md-flex" md-no-float="md-no-float">
|
2016-10-03 17:44:51 +02:00
|
|
|
<input name="folderSearch" type="search" var:minlength="minimumSearchLength" label:placeholder="Search" sg-focus-on="search"/>
|
2016-02-25 03:30:33 +01:00
|
|
|
<div ng-messages="searchForm.folderSearch.$error" ng-show="searchForm.folderSearch.$dirty">
|
|
|
|
<div ng-message="minlength"><var:string value="minimumSearchLengthLabel"/></div>
|
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</md-input-container>
|
2015-09-21 18:27:51 +02:00
|
|
|
<md-input-container flex="25">
|
2016-04-21 19:40:47 +02:00
|
|
|
<md-select label:aria-label="Search scope">
|
2015-09-03 22:10:05 +02:00
|
|
|
<md-option value="name_or_address" selected="selected"><var:string label:value="Name or Email"/></md-option>
|
|
|
|
<md-option value="category"><var:string label:value="Category"/></md-option>
|
|
|
|
<md-option value="organization"><var:string label:value="Organization"/></md-option>
|
|
|
|
</md-select>
|
|
|
|
</md-input-container>
|
2016-02-25 03:30:33 +01:00
|
|
|
</form>
|
2015-09-03 22:10:05 +02:00
|
|
|
</md-toolbar>
|
|
|
|
|
|
|
|
<!-- multiple selection mode -->
|
2015-10-01 15:34:37 +02:00
|
|
|
<md-toolbar class="md-whiteframe-z1 md-hue-1 sg-toolbar-secondary"
|
2016-03-08 19:20:34 +01:00
|
|
|
ng-show="addressbook.mode.multiple">
|
2015-09-03 22:10:05 +02:00
|
|
|
<div class="md-toolbar-tools">
|
2015-08-25 20:53:43 +02:00
|
|
|
<md-button class="sg-icon-button" ng-click="addressbook.unselectCards()">
|
|
|
|
<md-icon>arrow_back</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<label>{{addressbook.selectedFolder.$selectedCount()}} <var:string label:value="selected"/></label>
|
2015-09-03 22:10:05 +02:00
|
|
|
<div class="md-flex"><!-- spacer --></div>
|
|
|
|
<md-button class="sg-icon-button" ng-click="addressbook.selectAll()">
|
|
|
|
<md-tooltip md-direction="left"><var:string label:value="Select All"/></md-tooltip>
|
|
|
|
<md-icon>select_all</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
ng-show="addressbook.selectedFolder.acls.objectEraser"
|
2016-10-17 18:04:18 +02:00
|
|
|
ng-click="addressbook.confirmDeleteSelectedCards($event)">
|
2015-09-03 22:10:05 +02:00
|
|
|
<md-icon>delete</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu>
|
2016-11-01 20:54:56 +01:00
|
|
|
<md-button class="sg-icon-button" label:aria-label="More messages options" ng-click="$mdMenu.open()">
|
2015-09-03 22:10:05 +02:00
|
|
|
<md-icon>more_vert</md-icon>
|
2015-08-05 22:02:57 +02:00
|
|
|
</md-button>
|
2016-08-05 22:08:04 +02:00
|
|
|
<md-menu-content width="3">
|
2015-09-03 22:10:05 +02:00
|
|
|
<md-menu-item>
|
2017-01-26 18:29:07 +01:00
|
|
|
<md-menu>
|
|
|
|
<md-button label:aria-label="Write" ng-click="$mdMenu.open($event)">
|
|
|
|
<var:string label:value="Write"/>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content class="md-dense" width="3">
|
|
|
|
<md-menu-item>
|
2017-01-27 16:37:13 +01:00
|
|
|
<md-button ng-click="addressbook.newMessageWithSelectedCards($event, 'to')">
|
2017-01-26 18:29:07 +01:00
|
|
|
<var:string label:value="To"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
2017-01-27 16:37:13 +01:00
|
|
|
<md-button ng-click="addressbook.newMessageWithSelectedCards($event, 'cc')">
|
2017-01-28 17:53:05 +01:00
|
|
|
<var:string label:value="Carbon Copy (Cc)"/>
|
2017-01-26 18:29:07 +01:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
2017-01-27 16:37:13 +01:00
|
|
|
<md-button ng-click="addressbook.newMessageWithSelectedCards($event, 'bcc')">
|
2017-01-28 17:53:05 +01:00
|
|
|
<var:string label:value="Blind Carbon Copy (Bcc)"/>
|
2017-01-26 18:29:07 +01:00
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
|
|
|
</md-menu-item>
|
2015-12-10 02:28:07 +01:00
|
|
|
<md-menu-item ng-hide="addressbook.selectedFolder.isRemote">
|
2016-05-04 20:15:18 +02:00
|
|
|
<md-button ng-click="addressbook.selectedFolder.exportCards(true)">
|
2015-09-03 22:10:05 +02:00
|
|
|
<var:string label:value="Export"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
2017-03-23 18:07:07 +01:00
|
|
|
<md-menu-item ng-show="app.service.$addressbooks.length > 1">
|
2016-08-05 22:08:04 +02:00
|
|
|
<md-menu>
|
2016-11-01 20:54:56 +01:00
|
|
|
<md-button label:aria-label="Copy To" ng-click="$mdMenu.open($event)">
|
2016-08-05 22:08:04 +02:00
|
|
|
<var:string label:value="Copy To"/>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content class="md-dense" width="4">
|
|
|
|
<md-menu-item ng-repeat="folder in app.service.$addressbooks track by folder.id"
|
|
|
|
ng-hide="addressbook.selectedFolder.id == folder.id">
|
|
|
|
<md-button ng-click="addressbook.copySelectedCards(folder.id)">{{folder.name}}</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-repeat="folder in app.service.$subscriptions track by folder.id"
|
|
|
|
ng-hide="addressbook.selectedFolder.id == folder.id">
|
|
|
|
<md-button ng-click="addressbook.copySelectedCards(folder.id)"
|
|
|
|
ng-disabled="!folder.acls.objectCreator">{{folder.name}}</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
|
|
|
</md-menu-item>
|
2017-03-23 18:07:07 +01:00
|
|
|
<md-menu-item ng-if="app.service.$addressbooks.length > 1"
|
|
|
|
ng-show="addressbook.selectedFolder.acls.objectEraser">
|
2016-08-05 22:08:04 +02:00
|
|
|
<md-menu>
|
2016-11-01 20:54:56 +01:00
|
|
|
<md-button label:aria-label="Move To" ng-click="$mdMenu.open($event)">
|
2016-08-05 22:08:04 +02:00
|
|
|
<var:string label:value="Move To"/>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content class="md-dense" width="4">
|
|
|
|
<md-menu-item ng-repeat="folder in app.service.$addressbooks track by folder.id"
|
|
|
|
ng-hide="addressbook.selectedFolder.id == folder.id">
|
|
|
|
<md-button ng-click="addressbook.moveSelectedCards(folder.id)">{{folder.name}}</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item ng-repeat="folder in app.service.$subscriptions track by folder.id"
|
|
|
|
ng-hide="addressbook.selectedFolder.id == folder.id">
|
|
|
|
<md-button ng-click="addressbook.moveSelectedCards(folder.id)"
|
|
|
|
ng-disabled="!folder.acls.objectCreator">{{folder.name}}</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
|
|
|
</md-menu-item>
|
2015-09-03 22:10:05 +02:00
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-08-25 20:53:43 +02:00
|
|
|
</div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</md-toolbar>
|
|
|
|
|
2015-12-04 21:00:58 +01:00
|
|
|
<md-divider><!-- divider --></md-divider>
|
|
|
|
|
2015-07-15 19:44:17 +02:00
|
|
|
<md-content id="contactsList" layout="column" class="md-flex">
|
2015-09-15 03:35:34 +02:00
|
|
|
<md-subheader ng-show="addressbook.service.$query.value">
|
2016-02-20 05:19:07 +01:00
|
|
|
<span ng-switch="addressbook.selectedFolder.$cards.length">
|
2015-09-15 03:35:34 +02:00
|
|
|
<span ng-switch-when="0"><var:string label:value="No matching contact"/></span>
|
2016-02-20 05:19:07 +01:00
|
|
|
<span ng-switch-default="true">{{addressbook.selectedFolder.$cards.length}} <var:string label:value="matching contacts"/></span>
|
2015-09-15 03:35:34 +02:00
|
|
|
</span>
|
|
|
|
</md-subheader>
|
2015-09-24 17:01:27 +02:00
|
|
|
<md-subheader ng-hide="addressbook.service.$query.value">
|
2016-02-25 03:30:33 +01:00
|
|
|
<span ng-switch="addressbook.selectedFolder.listRequiresDot">
|
2015-09-24 17:01:27 +02:00
|
|
|
<span ng-switch-when="1">
|
|
|
|
<var:string label:value="Start a search to browse this address book"/>
|
|
|
|
</span>
|
|
|
|
<span ng-switch-default="true">
|
2016-02-20 05:19:07 +01:00
|
|
|
<span ng-switch="addressbook.selectedFolder.$cards.length">
|
2015-09-24 17:01:27 +02:00
|
|
|
<span ng-switch-when="0"><var:string label:value="No contact"/></span>
|
2016-02-20 05:19:07 +01:00
|
|
|
<span ng-switch-default="true">{{addressbook.selectedFolder.$cards.length}} <var:string label:value="contacts"/></span>
|
2015-09-24 17:01:27 +02:00
|
|
|
</span>
|
2015-09-15 03:35:34 +02:00
|
|
|
</span>
|
2015-09-09 20:43:09 +02:00
|
|
|
</span>
|
|
|
|
</md-subheader>
|
2016-02-20 05:19:07 +01:00
|
|
|
<md-virtual-repeat-container class="md-flex" md-top-index="addressbook.selectedFolder.$topIndex">
|
2016-04-21 19:40:47 +02:00
|
|
|
<md-list class="sg-section-list"
|
2016-08-05 22:08:04 +02:00
|
|
|
ng-class="{ 'sg-list-selectable': addressbook.mode.multiple }"
|
|
|
|
sg-draggable="addressbook.selectedFolder"
|
|
|
|
sg-drag-start="addressbook.selectedFolder.hasSelectedCard() ||
|
|
|
|
addressbook.selectedFolder.$selectedCount()"
|
|
|
|
sg-drag-count="addressbook.selectedFolder.$selectedCount()">
|
2015-12-21 17:40:01 +01:00
|
|
|
<md-list-item
|
2016-01-09 03:30:52 +01:00
|
|
|
class="md-default-theme md-accent md-hue-2"
|
2015-12-21 17:40:01 +01:00
|
|
|
ng-class="{'md-bg': addressbook.selectedFolder.isSelectedCard(currentCard.id)}"
|
2016-02-20 05:19:07 +01:00
|
|
|
md-virtual-repeat="currentCard in addressbook.selectedFolder"
|
|
|
|
md-on-demand="md-on-demand" md-item-size="56"
|
2016-02-04 22:50:06 +01:00
|
|
|
aria-label="{{currentCard.$fullname()}}"
|
2015-12-21 17:40:01 +01:00
|
|
|
ng-click="addressbook.selectCard(currentCard)">
|
2016-04-21 19:40:47 +02:00
|
|
|
<div class="sg-tile-content">
|
|
|
|
<div class="sg-md-subhead">
|
2016-05-25 17:33:25 +02:00
|
|
|
<div ng-bind-html="currentCard.$fullname({html: true})"><!-- cn --></div>
|
2016-04-21 19:40:47 +02:00
|
|
|
</div>
|
|
|
|
<div class="sg-md-body">
|
2016-05-25 16:52:04 +02:00
|
|
|
<div>{{currentCard.$preferredEmail(addressbook.selectedFolder.constructor.$query.value)}}</div>
|
2016-04-21 19:40:47 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div class="sg-tile-icons"><!-- spacer --></div>
|
|
|
|
<div class="md-secondary sg-avatar-selectable"
|
2016-08-30 23:49:17 +02:00
|
|
|
label:aria-label="Toggle item"
|
2016-04-21 19:40:47 +02:00
|
|
|
ng-class="{ 'sg-avatar-selected': currentCard.selected }"
|
2015-12-21 17:40:01 +01:00
|
|
|
ng-click="addressbook.toggleCardSelection($event, currentCard)">
|
2016-06-08 20:02:45 +02:00
|
|
|
<sg-avatar-image
|
2016-08-30 23:49:17 +02:00
|
|
|
sg-email="currentCard.$preferredEmail(addressbook.selectedFolder.constructor.$query.value)"
|
|
|
|
sg-src="currentCard.photoURL"
|
2016-11-11 22:46:55 +01:00
|
|
|
size="40">{{ currentCard.$avatarIcon }}</sg-avatar-image>
|
2015-12-21 17:40:01 +01:00
|
|
|
</div>
|
2016-08-30 22:27:13 +02:00
|
|
|
<div class="sg-progress-linear-bottom"
|
|
|
|
ng-show="currentCard.$isLoading()">
|
2016-05-30 18:29:58 +02:00
|
|
|
<md-progress-linear class="md-accent"
|
2016-08-30 22:27:13 +02:00
|
|
|
md-mode="indeterminate"><!-- progress --></md-progress-linear>
|
2016-05-30 18:29:58 +02:00
|
|
|
</div>
|
2015-12-21 17:40:01 +01:00
|
|
|
</md-list-item>
|
2015-07-15 19:44:17 +02:00
|
|
|
</md-list>
|
|
|
|
</md-virtual-repeat-container>
|
2015-08-27 20:09:43 +02:00
|
|
|
<div class="sg-progress-circular-floating"
|
|
|
|
ng-show="addressbook.selectedFolder.$isLoading">
|
|
|
|
<md-progress-circular class="md-accent"
|
|
|
|
md-mode="indeterminate"
|
|
|
|
md-diameter="32"><!-- progress --></md-progress-circular>
|
|
|
|
</div>
|
2015-07-15 19:44:17 +02:00
|
|
|
</md-content>
|
2015-04-29 17:23:21 +02:00
|
|
|
</div>
|
2015-04-24 14:45:39 +02:00
|
|
|
|
2017-02-02 03:32:16 +01:00
|
|
|
<md-fab-speed-dial
|
|
|
|
class="md-scale sg-fab-bottom-center"
|
|
|
|
ng-cloak="ng-cloak"
|
|
|
|
ng-class="{ 'sg-sidenav-close': leftIsClose, 'sg-center-close': centerIsClose }"
|
|
|
|
md-direction="up"
|
|
|
|
ng-show="addressbook.selectedFolder.isOwned || addressbook.selectedFolder.acls.objectCreator">
|
|
|
|
<md-fab-trigger>
|
|
|
|
<md-button class="md-fab md-accent" label:aria-label="New Contact">
|
|
|
|
<md-icon>add</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-fab-trigger>
|
|
|
|
<md-fab-actions>
|
|
|
|
<md-button var:aria-label="Contact" class="md-fab md-raised md-mini"
|
|
|
|
ng-click="addressbook.newComponent('card')">
|
|
|
|
<md-tooltip md-direction="left"><var:string label:value="Create a new address book card"/></md-tooltip>
|
|
|
|
<md-icon>person</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-button var:aria-label="List" class="md-fab md-raised md-mini"
|
|
|
|
ng-hide="addressbook.selectedFolder.isRemote"
|
|
|
|
ng-click="addressbook.newComponent('list')">
|
|
|
|
<md-tooltip md-direction="left"><var:string label:value="Create a new list"/></md-tooltip>
|
|
|
|
<md-icon>group</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-fab-actions>
|
|
|
|
</md-fab-speed-dial>
|
|
|
|
|
2016-04-21 19:40:47 +02:00
|
|
|
<div id="detailView" class="view-detail"
|
2015-11-27 23:32:08 +01:00
|
|
|
layout="column" layout-align="start center"
|
2015-08-26 23:28:03 +02:00
|
|
|
ng-class="{ 'sg-close': !addressbook.selectedFolder.selectedCard }"
|
2016-04-21 19:40:47 +02:00
|
|
|
md-colors="::{backgroundColor: 'default-background-200'}"
|
2015-08-27 19:37:47 +02:00
|
|
|
ui-view="card">
|
2016-05-18 20:35:24 +02:00
|
|
|
<md-content class="hide show-gt-md md-flex"
|
2016-04-21 19:40:47 +02:00
|
|
|
md-colors="::{backgroundColor: 'default-background-200'}"
|
2016-03-08 19:20:34 +01:00
|
|
|
layout="column" layout-align="center center" layout-fill="layout-fill">
|
2016-04-21 19:40:47 +02:00
|
|
|
<div class="sg-md-title"
|
|
|
|
md-colors="::{color: 'default-background-500'}"><var:string label:value="No contact selected"/></div>
|
2015-09-03 22:10:05 +02:00
|
|
|
</md-content>
|
|
|
|
</div>
|
2015-04-24 14:45:39 +02:00
|
|
|
</div>
|
|
|
|
</script>
|
2014-09-17 22:28:40 +02:00
|
|
|
|
2015-04-24 14:45:39 +02:00
|
|
|
<!-- modal for addressbook sharing options -->
|
|
|
|
<script type="text/ng-template" id="UIxUserRightsEditor">
|
|
|
|
<var:component className="UIxContactsUserRightsEditor" />
|
|
|
|
</script>
|
2015-05-06 22:15:03 +02:00
|
|
|
|
2015-11-10 21:05:41 +01:00
|
|
|
<!-- modal for cards import -->
|
|
|
|
<script type="text/ng-template" id="UIxContactsImportDialog">
|
2015-12-09 22:52:54 +01:00
|
|
|
<md-dialog flex="40" flex-sm="80" flex-xs="100" label:aria-label="Import Cards">
|
2015-11-10 21:05:41 +01:00
|
|
|
<md-toolbar>
|
|
|
|
<div class="md-toolbar-tools">
|
|
|
|
<md-icon class="material-icons sg-icon-toolbar-bg">import_export</md-icon>
|
|
|
|
<div class="md-flex">
|
|
|
|
<div class="sg-md-title"><var:string label:value="Import Cards"/></div>
|
|
|
|
</div>
|
|
|
|
<md-button class="md-icon-button" ng-click="$CardsImportDialogController.close()">
|
|
|
|
<md-icon aria-label="Close dialog">close</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
|
|
|
<md-dialog-content class="md-dialog-content">
|
|
|
|
<p><var:string label:value="Select a vCard or LDIF file."/></p>
|
|
|
|
</md-dialog-content>
|
|
|
|
<md-dialog-actions>
|
2016-10-17 18:04:18 +02:00
|
|
|
<div layout="row" layout-align="space-around" class="md-flex"
|
|
|
|
ng-if="$CardsImportDialogController.uploader.isUploading">
|
|
|
|
<md-progress-circular class="md-accent"
|
|
|
|
md-mode="determinate"
|
|
|
|
md-diameter="25"
|
|
|
|
ng-if="$CardsImportDialogController.uploader.progress != 100"
|
|
|
|
value="{{$CardsImportDialogController.uploader.progress}}">
|
|
|
|
<!-- while uploading -->
|
|
|
|
</md-progress-circular>
|
|
|
|
<md-progress-circular class="md-warn"
|
|
|
|
md-mode="indeterminate"
|
|
|
|
md-diameter="25"
|
|
|
|
ng-if="$CardsImportDialogController.uploader.progress == 100">
|
|
|
|
<!-- while waiting for server's response -->
|
|
|
|
</md-progress-circular>
|
|
|
|
</div>
|
2015-11-10 21:05:41 +01:00
|
|
|
<label class="md-button" for="file-input" ng-hide="$CardsImportDialogController.uploader.isUploading">
|
|
|
|
<span><var:string label:value="Upload"/></span>
|
|
|
|
</label>
|
|
|
|
<input id="file-input" type="file" class="ng-hide"
|
|
|
|
nv-file-select="nv-file-select"
|
|
|
|
uploader="$CardsImportDialogController.uploader"/>
|
|
|
|
</md-dialog-actions>
|
|
|
|
</md-dialog>
|
|
|
|
</script>
|
|
|
|
|
2015-04-24 14:45:39 +02:00
|
|
|
<script type="text/ng-template" id="UIxContactViewTemplate">
|
|
|
|
<var:component className="UIxContactViewTemplate" />
|
2015-01-28 01:05:35 +01:00
|
|
|
</script>
|
2009-06-26 19:48:28 +02:00
|
|
|
|
|
|
|
</var:component>
|