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"
|
2015-08-27 17:01:23 +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">
|
2015-02-26 17:27:36 +01:00
|
|
|
<script type="text/javascript">
|
2015-04-24 14:45:39 +02:00
|
|
|
var contactFolders = <var:string value="contactFolders" const:escapeHTML="NO" />;
|
2014-06-19 21:52:57 +02:00
|
|
|
</script>
|
2009-06-26 19:48:28 +02:00
|
|
|
|
2015-08-24 17:20:35 +02:00
|
|
|
<main class="view layout-fill" ui-view="addressbooks" layout="row" ng-controller="navController"><!-- addressbooks list --></main>
|
2015-01-26 03:30:27 +01:00
|
|
|
|
2015-01-28 01:05:35 +01:00
|
|
|
<!-- TEMPLATE SCRIPT WRAPPER -->
|
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-03-28 06:24:31 +01:00
|
|
|
<md-sidenav id="left-sidenav" class="md-sidenav-left md-whiteframe-z1" md-component-id="left" md-is-locked-open="isGtMedium" layout="column">
|
2015-04-03 17:34:05 +02:00
|
|
|
<var:component className="UIxSidenavToolbarTemplate" />
|
2015-07-04 03:40:37 +02:00
|
|
|
<!-- <div style="position: relative; display: flex;"> -->
|
|
|
|
<md-content md-scroll-y="md-scroll-y">
|
2015-04-24 14:45:39 +02:00
|
|
|
<!-- User's addressbooks -->
|
|
|
|
<section>
|
|
|
|
<md-subheader class="sg-md-subheader">
|
|
|
|
<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"
|
|
|
|
ng-click="app.select(folder)"
|
|
|
|
ng-dblclick="app.edit(folder)"
|
2015-04-29 17:23:21 +02:00
|
|
|
ui-sref="app.addressbook({addressbookId: folder.id})"
|
|
|
|
ui-sref-active="sg-active">
|
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"
|
2015-07-04 03:40:37 +02:00
|
|
|
ng-show="app.editMode!=folder.id">{{folder.name}}</p>
|
2015-04-29 17:23:21 +02:00
|
|
|
<md-input-container class="md-flex md-tile-content"
|
2015-07-28 20:16:56 +02:00
|
|
|
ng-show="app.editMode == folder.id">
|
2015-04-24 14:45:39 +02:00
|
|
|
<input class="folder-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"
|
|
|
|
ng-click="$mdOpenMenu()"
|
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-11 20:32:07 +02:00
|
|
|
<md-menu-content width="2">
|
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-11 20:32:07 +02:00
|
|
|
<md-menu-item>
|
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>
|
|
|
|
<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>
|
2015-06-12 14:55:28 +02:00
|
|
|
<md-button type="button" ng-click="app.exportCards()">
|
|
|
|
<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>
|
|
|
|
<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>
|
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>
|
|
|
|
<md-subheader class="sg-md-subheader">
|
|
|
|
<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-07-04 03:40:37 +02:00
|
|
|
sg-subscribe="contact"
|
|
|
|
sg-subscribe-on-select="app.subscribeToFolder(folderData)">
|
|
|
|
<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"
|
|
|
|
ng-click="app.select(folder)"
|
|
|
|
ng-dblclick="app.edit(folder)"
|
2015-04-29 17:23:21 +02:00
|
|
|
ui-sref="app.addressbook({addressbookId: folder.id})"
|
|
|
|
ui-sref-active="sg-active">
|
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"
|
|
|
|
ng-show="editMode!=folder.id">{{folder.name}}</p>
|
|
|
|
<md-input-container class="md-flex md-tile-content"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-show="app.editMode==folder.id">
|
2015-04-24 14:45:39 +02:00
|
|
|
<input class="folder-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"
|
|
|
|
ng-show="app.service.selectedFolder.id==folder.id">
|
|
|
|
<md-icon label:aria-label="Options"
|
|
|
|
ng-click="$mdOpenMenu()"
|
|
|
|
md-menu-origin="md-menu-origin">more_vert</md-icon>
|
2015-06-15 15:53:10 +02:00
|
|
|
<md-menu-content width="2">
|
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>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
|
|
|
</section>
|
|
|
|
<!-- Remote/domain addressbooks -->
|
|
|
|
<section>
|
|
|
|
<md-subheader class="sg-md-subheader md-padding">
|
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"
|
|
|
|
ng-click="app.select(folder)"
|
2015-04-29 17:23:21 +02:00
|
|
|
ui-sref="app.addressbook({addressbookId: folder.id})"
|
2015-04-24 14:45:39 +02:00
|
|
|
ui-sref-active="sg-active">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>public</md-icon>
|
2015-04-29 17:23:21 +02:00
|
|
|
<p class="sg-item-name">{{folder.name}}</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>
|
2015-07-04 03:40:37 +02:00
|
|
|
<!-- </div> -->
|
2015-01-28 01:05:35 +01:00
|
|
|
</md-sidenav>
|
2014-08-20 21:49:44 +02:00
|
|
|
|
2015-08-24 17:20:35 +02:00
|
|
|
<section layout="column" class="sg-app-content 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">
|
|
|
|
<md-toolbar layout="column" layout-align="space-between start" class="md-tall toolbar-main">
|
2015-08-26 02:47:12 +02:00
|
|
|
<div class="md-toolbar-tools md-toolbar-tools-top" layout="row" layout-align="space-between start">
|
2015-04-24 14:45:39 +02:00
|
|
|
<var:component className="UIxTopnavToolbarTemplate" />
|
|
|
|
</div>
|
2015-07-22 18:10:25 +02:00
|
|
|
<div class="md-toolbar-tools" layout="row" layout-align="space-between center"
|
2015-05-28 19:48:45 +02:00
|
|
|
ng-show="addressbook.selectedFolder.$selectedCount() == 0">
|
2015-07-20 21:03:29 +02:00
|
|
|
<div class="view-list" layout="row" layout-align="space-between center"
|
|
|
|
ng-hide="addressbook.mode.search">
|
2015-04-24 14:45:39 +02:00
|
|
|
<div class="sg-toolbar-group">
|
2015-07-20 21:03:29 +02:00
|
|
|
<md-button class="sg-icon-button" label:aria-label="Search"
|
|
|
|
ng-click="addressbook.mode.search = true">
|
|
|
|
<md-icon>search</md-icon>
|
|
|
|
</md-button>
|
2015-01-28 03:45:56 +01:00
|
|
|
</div>
|
2015-07-20 20:24:36 +02:00
|
|
|
<div class="sg-toolbar-group-last">
|
|
|
|
<md-menu>
|
|
|
|
<md-button class="sg-icon-button" label:aria-label="Sort"
|
|
|
|
ng-click="$mdOpenMenu()">
|
|
|
|
<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>
|
|
|
|
</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 >
|
2015-08-14 21:22:59 +02:00
|
|
|
<md-button ng-click="addressbook.sort(addressbook.selectedFolder.constructor.$query.sort)">
|
2015-07-20 21:03:29 +02:00
|
|
|
<md-checkbox
|
2015-08-14 21:22:59 +02:00
|
|
|
ng-model="addressbook.selectedFolder.constructor.$query.asc"
|
2015-07-20 21:03:29 +02:00
|
|
|
ng-true-value="0"
|
|
|
|
ng-false-value="1"><var:string label:value="Descending Order"/></md-checkbox>
|
|
|
|
</md-button>
|
|
|
|
</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-02-20 04:05:53 +01:00
|
|
|
</div>
|
2015-07-20 21:03:29 +02:00
|
|
|
<!-- search mode -->
|
|
|
|
<div class="view-list sg-padded--right sg-toolbar-search" layout="row" layout-align="space-between center"
|
|
|
|
ng-show="addressbook.mode.search"
|
|
|
|
sg-search="addressbook.selectedFolder.$filter(searchText, { search: searchField })">
|
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
sg-search-cancel="addressbook.cancelSearch()"
|
|
|
|
label:aria-label="Back">
|
|
|
|
<md-icon>arrow_back</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-input-container>
|
|
|
|
<input name="folderSearch" type="search" />
|
|
|
|
</md-input-container>
|
|
|
|
<md-input-container>
|
|
|
|
<md-select>
|
|
|
|
<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>
|
2015-08-06 17:26:26 +02:00
|
|
|
</md-select>
|
2015-07-20 21:03:29 +02:00
|
|
|
</md-input-container>
|
|
|
|
</div>
|
2015-04-24 14:45:39 +02:00
|
|
|
</div>
|
2015-08-25 20:53:43 +02:00
|
|
|
<!-- multiple selection mode -->
|
|
|
|
<div class="md-toolbar-tools" layout="row" layout-align="space-between center"
|
|
|
|
ng-show="addressbook.selectedFolder.$selectedCount() > 0">
|
|
|
|
<div class="view-list" layout="row" layout-align="space-between center">
|
|
|
|
<div class="sg-toolbar-group">
|
|
|
|
<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>
|
|
|
|
</div>
|
|
|
|
<div class="sg-toolbar-group-last">
|
2015-08-05 21:04:47 +02:00
|
|
|
<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>
|
2015-08-21 01:42:24 +02:00
|
|
|
<md-button class="sg-icon-button"
|
|
|
|
ng-show="addressbook.selectedFolder.acls.objectEraser"
|
|
|
|
ng-click="addressbook.confirmDeleteSelectedCards()">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>delete</md-icon>
|
2015-05-08 21:47:09 +02:00
|
|
|
</md-button>
|
2015-08-10 15:48:47 +02:00
|
|
|
<md-menu>
|
|
|
|
<md-button class="sg-icon-button" label:aria-label="Copy contacts" ng-click="$mdOpenMenu()">
|
|
|
|
<md-tooltip md-direction="left"><var:string label:value="Copy To"/></md-tooltip>
|
|
|
|
<md-icon>content_copy</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content width="4">
|
|
|
|
<md-menu-item>
|
2015-08-12 03:16:16 +02:00
|
|
|
<md-button class="md-primary" ng-disabled="true"><var:string label:value="Address Books"/></md-button>
|
2015-08-10 15:48:47 +02:00
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-divider><!-- divider --></md-menu-divider>
|
|
|
|
<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)">
|
|
|
|
<span ng-class="'sg-child-level-' + folder.level">{{folder.name}}</span>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-08-05 22:02:57 +02:00
|
|
|
<md-menu>
|
|
|
|
<md-button class="sg-icon-button" label:aria-label="More messages options" ng-click="$mdOpenMenu()">
|
|
|
|
<md-icon>more_vert</md-icon>
|
|
|
|
</md-button>
|
|
|
|
<md-menu-content width="2">
|
|
|
|
<md-menu-item>
|
2015-08-27 17:01:23 +02:00
|
|
|
<md-button ng-click="addressbook.newMessageWithSelectedCards($event)">
|
2015-08-05 22:02:57 +02:00
|
|
|
<var:string label:value="Write"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
<md-menu-item>
|
|
|
|
<md-button ng-click="addressbook.saveSelectedCards()">
|
|
|
|
<var:string label:value="Export"/>
|
|
|
|
</md-button>
|
|
|
|
</md-menu-item>
|
|
|
|
</md-menu-content>
|
|
|
|
</md-menu>
|
2015-08-25 20:53:43 +02:00
|
|
|
</div>
|
2015-05-08 21:47:09 +02:00
|
|
|
</div>
|
2015-08-25 20:53:43 +02:00
|
|
|
</div>
|
2015-04-24 14:45:39 +02:00
|
|
|
</md-toolbar>
|
2015-08-24 23:28:01 +02:00
|
|
|
<div layout="row" class="md-flex">
|
2015-07-15 19:44:17 +02:00
|
|
|
<div class="view-list" layout="column">
|
|
|
|
<md-content id="contactsList" layout="column" class="md-flex">
|
|
|
|
<header class="sg-md-subheader sg-md-subheader--fixed">
|
2015-07-24 21:35:29 +02:00
|
|
|
<h2 class="md-default-theme sg-md-subhead-solo fg-sogoBlue-700">
|
|
|
|
<span ng-show="addressbook.selectedFolder.cards.length > 0">{{addressbook.selectedFolder.cards.length}} <var:string label:value="contacts"/></span>
|
|
|
|
<span ng-show="addressbook.selectedFolder.cards.length == 0"><var:string label:value="No contact"/></span>
|
|
|
|
</h2>
|
2015-07-15 19:44:17 +02:00
|
|
|
</header>
|
|
|
|
<md-virtual-repeat-container class="md-flex">
|
2015-08-07 17:17:09 +02:00
|
|
|
<md-list class="sg-section-list">
|
2015-08-24 23:28:01 +02:00
|
|
|
<div md-virtual-repeat="currentCard in addressbook.selectedFolder.cards" md-item-size="72">
|
2015-07-15 19:44:17 +02:00
|
|
|
<md-list-item
|
|
|
|
ng-class="{'sg-active': currentCard.id == addressbook.selectedFolder.selectedCard}"
|
|
|
|
ng-click="addressbook.selectCard(currentCard)"
|
|
|
|
ui-sref="app.addressbook.card.view({addressbookId: addressbook.selectedFolder.id, cardId: currentCard.id})">
|
2015-08-14 21:22:59 +02:00
|
|
|
<div class="sg-selected-avatar" ng-show="currentCard.selected"
|
|
|
|
ng-click="currentCard.selected = !currentCard.selected">
|
|
|
|
<!-- selected avatar -->
|
|
|
|
</div>
|
|
|
|
<sg-avatar-image class="md-tile-left"
|
|
|
|
ng-show="addressbook.notSelectedComponent(currentCard, 'vcard')"
|
|
|
|
ng-click="currentCard.selected = !currentCard.selected"
|
|
|
|
sg-email="currentCard.$preferredEmail(addressbook.selectedFolder.constructor.$query)"
|
2015-08-25 20:53:43 +02:00
|
|
|
size="40">
|
2015-08-14 21:22:59 +02:00
|
|
|
<!-- contact avatar -->
|
|
|
|
</sg-avatar-image>
|
|
|
|
<div class="sg-list-avatar"
|
|
|
|
ng-show="addressbook.notSelectedComponent(currentCard, 'vlist')"
|
|
|
|
ng-click="currentCard.selected = !currentCard.selected">
|
|
|
|
<!-- list avatar -->
|
|
|
|
</div>
|
2015-07-15 19:44:17 +02:00
|
|
|
<div class="sg-tile-content">
|
|
|
|
<div class="sg-md-subhead-multi" ng-bind-html="currentCard.$fullname()"><!-- cn --></div>
|
2015-08-14 21:22:59 +02:00
|
|
|
<div class="sg-md-body-multi">{{currentCard.$preferredEmail(addressbook.selectedFolder.constructor.$query)}}</div>
|
2015-07-15 19:44:17 +02:00
|
|
|
</div>
|
|
|
|
</md-list-item>
|
|
|
|
</div>
|
|
|
|
</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-button class="md-fab md-fab-bottom-right md-accent"
|
|
|
|
label:aria-label="New Contact"
|
2015-08-20 21:47:11 +02:00
|
|
|
ng-show="addressbook.selectedFolder.acls.objectCreator"
|
2015-07-15 19:44:17 +02:00
|
|
|
ng-click="addressbook.newComponent($event)">
|
|
|
|
<md-icon>add</md-icon>
|
|
|
|
</md-button>
|
|
|
|
</md-content>
|
2015-04-29 17:23:21 +02:00
|
|
|
</div>
|
2015-04-24 14:45:39 +02:00
|
|
|
|
2015-08-27 19:37:47 +02:00
|
|
|
<md-content id="detailView" class="view-detail md-hue-1" layout="column" layout-align="center center"
|
2015-08-26 23:28:03 +02:00
|
|
|
ng-class="{ 'sg-close': !addressbook.selectedFolder.selectedCard }"
|
2015-08-27 19:37:47 +02:00
|
|
|
ui-view="card">
|
|
|
|
<md-input-container class="hide-sm md-hue-1" style="flex-grow: 0">
|
|
|
|
<label class="sg-md-title"><var:string label:value="No contact selected"/></label>
|
|
|
|
</md-input-container>
|
|
|
|
</md-content>
|
2015-02-20 04:05:53 +01:00
|
|
|
|
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-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>
|