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"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
const:userDefaultsKeys="SOGoContactsCategories"
|
|
|
|
const:jsFiles="Common/user-model.js, Common/acl-model.js, Common/resource.js, Contacts/card-model.js, Contacts/addressbook-model.js"
|
|
|
|
className="UIxPageFrame"
|
|
|
|
title="name"
|
|
|
|
var:popup="isPopup">
|
|
|
|
<script type="text/javascript">
|
|
|
|
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-01-17 05:26:59 +01:00
|
|
|
<!--
|
2009-09-03 16:18:13 +02:00
|
|
|
<div id="uploadDialog" style="display: none" class="dialog left">
|
|
|
|
<div>
|
2009-10-28 18:48:22 +01:00
|
|
|
<h3><var:string label:value="Import Cards"/></h3>
|
2012-09-24 18:18:18 +02:00
|
|
|
<p class="prompt"><var:string label:value="Select a vCard or LDIF file."/></p>
|
2009-12-23 22:14:18 +01:00
|
|
|
<form const:href="" name="uploadForm" id="uploadForm" method="post"
|
2014-06-19 21:52:57 +02:00
|
|
|
enctype="multipart/form-data"
|
|
|
|
onsubmit="return AIM.submit(this, {'onStart' : validateUploadForm,
|
|
|
|
'onComplete' : uploadCompleted})">
|
|
|
|
<p class="prompt"><input type="file" name="contactsFile" id="contactsFile" class="textField" required="required" />
|
|
|
|
<a href="#" class="button actionButton" id="uploadSubmit"
|
|
|
|
onclick="if($('uploadForm').onsubmit()) $('uploadForm').submit()">
|
|
|
|
<span><var:string label:value="Upload" /></span></a>
|
|
|
|
<a href="#" class="button" const:id="uploadCancel">
|
|
|
|
<span><var:string label:value="Cancel" /></span></a></p>
|
2009-09-03 16:18:13 +02:00
|
|
|
</form>
|
2012-09-24 18:18:18 +02:00
|
|
|
<hr/>
|
2009-09-03 16:18:13 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2009-09-03 19:53:38 +02:00
|
|
|
|
2015-02-26 16:58:17 +01:00
|
|
|
<div id="uploadResults" dropdown-content="dropdown-content" class="f-dropdown">
|
2009-09-03 19:53:38 +02:00
|
|
|
<div>
|
2009-10-28 18:48:22 +01:00
|
|
|
<h3><var:string label:value="Import Cards"/></h3>
|
2015-01-17 05:26:59 +01:00
|
|
|
<p id="uploadResultsContent">!- empty -</p>
|
2009-11-04 23:13:20 +01:00
|
|
|
<p><a href="#" class="button" const:id="uploadOK">
|
2014-06-19 21:52:57 +02:00
|
|
|
<span><var:string label:value="Done" /></span></a></p>
|
2012-09-24 18:18:18 +02:00
|
|
|
<hr/>
|
2009-09-03 19:53:38 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2009-06-26 19:48:28 +02:00
|
|
|
|
2015-02-26 16:58:17 +01:00
|
|
|
<ul class="f-dropdown" dropdown-content="dropdown-content" id="contactMenu">
|
2014-06-19 21:52:57 +02:00
|
|
|
<li><var:string label:value="Properties" /></li>
|
|
|
|
<li><var:string label:value="Categories" /></li>
|
2015-01-17 05:26:59 +01:00
|
|
|
<li>!- separator -</li>
|
2014-06-19 21:52:57 +02:00
|
|
|
<li><var:string label:value="Write" /></li>
|
|
|
|
<li><var:string label:value="Instant Message" /></li>
|
2015-01-17 05:26:59 +01:00
|
|
|
<li>!- separator -</li>
|
2014-06-19 21:52:57 +02:00
|
|
|
<li><var:string label:value="Delete" /></li>
|
2015-01-17 05:26:59 +01:00
|
|
|
<li>!- separator -</li>
|
2014-06-19 21:52:57 +02:00
|
|
|
<li><var:string label:value="Move To" /></li>
|
|
|
|
<li><var:string label:value="Copy To" /></li>
|
|
|
|
<li><var:string label:value="Export" /></li>
|
|
|
|
<li><var:string label:value="View Raw Source" /></li>
|
2015-01-17 05:26:59 +01:00
|
|
|
</ul>
|
|
|
|
-->
|
2015-01-28 01:05:35 +01:00
|
|
|
<!--
|
|
|
|
MAIN CONTENT ROW
|
|
|
|
Content of the application view injected injected in the element bellow
|
|
|
|
MUST be the first html element after body
|
|
|
|
SHOULD be a main tag (with role="main")
|
2014-06-19 21:52:57 +02:00
|
|
|
|
2015-01-28 01:05:35 +01:00
|
|
|
Templates script tag wrappers goes next
|
|
|
|
-->
|
2015-03-14 01:35:27 +01:00
|
|
|
<main class="view md-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-01-28 01:05:35 +01:00
|
|
|
<!-- dropdown menu for addressbook options button -->
|
2015-04-02 04:12:07 +02:00
|
|
|
<div id="addressbookProperties" class="f-dropdown icons-dropdown" ng-hide="true">
|
2015-02-26 17:27:36 +01:00
|
|
|
<ul class="button-group">
|
|
|
|
<li label:tooltip="Links to this Address Book"
|
|
|
|
tooltip-popup-delay="500">
|
|
|
|
<span class="button"
|
|
|
|
sg-dropdown-content-toggle="#addressbookLinks">
|
|
|
|
<i class="icon-hyperlink"><!-- links --></i>
|
2015-01-28 01:05:35 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
2015-02-26 17:27:36 +01:00
|
|
|
<li label:tooltip="Rename"
|
|
|
|
tooltip-popup-delay="500">
|
|
|
|
<span class="button" ng-click="edit()">
|
|
|
|
<i class="icon-pencil"><!-- rename --></i>
|
2015-01-28 01:05:35 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
2015-02-26 17:27:36 +01:00
|
|
|
<li ng-show="addressbook.isOwned"
|
|
|
|
label:tooltip="Sharing..."
|
|
|
|
tooltip-popup-delay="500">
|
|
|
|
<span class="button" ng-click="share()">
|
|
|
|
<i class="icon-share"><!-- share --></i>
|
2015-01-28 01:05:35 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
2015-02-26 17:27:36 +01:00
|
|
|
<li label:tooltip="Import Cards"
|
|
|
|
tooltip-popup-delay="500">
|
|
|
|
<span class="button" ng-click="importCards()">
|
|
|
|
<i class="icon-file"><!-- import --></i>
|
2015-01-28 01:05:35 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
2015-02-26 17:27:36 +01:00
|
|
|
<li label:tooltip="Export"
|
|
|
|
tooltip-popup-delay="500">
|
|
|
|
<span class="button" ng-click="exportCards()">
|
|
|
|
<i class="icon-ion-ios7-upload-outline"><!-- export --></i>
|
2015-01-28 01:05:35 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
2015-02-26 17:27:36 +01:00
|
|
|
<li label:tooltip="Delete"
|
|
|
|
tooltip-popup-delay="500">
|
|
|
|
<span class="button" ng-click="confirmDelete(addressbook)">
|
|
|
|
<i class="icon-trash"><!-- delete --></i>
|
2015-01-28 01:05:35 +01:00
|
|
|
</span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-10-08 16:35:50 +02:00
|
|
|
|
2015-01-28 01:05:35 +01:00
|
|
|
<!-- dropdown menu for new card split button
|
|
|
|
<ul id="newListDrop" class="f-dropdown">
|
2015-02-26 16:58:17 +01:00
|
|
|
<li><a class="tiny" ui-sref="addressbook.new({addressbookId: addressbook.id, contactType: 'list'})"><var:string label:value="New List"/></a></li>
|
2015-01-28 01:05:35 +01:00
|
|
|
</ul>
|
|
|
|
-->
|
2014-08-20 21:49:44 +02:00
|
|
|
|
2015-01-28 01:05:35 +01:00
|
|
|
<!-- dropdown menu for addressbook links
|
|
|
|
<div id="addressbookLinks" class="sg-dropdown-content joyride-tip-guide">
|
|
|
|
<span class="joyride-nub left">!- dropdown nub -</span>
|
|
|
|
<div class="joyride-content-wrapper">
|
|
|
|
<ul>
|
|
|
|
<li class="title"><var:string label:value="Links to this Address Book"/></li>
|
|
|
|
<li class="subtitle"><var:string label:value="CardDAV URL for Authenticated User Access"/></li>
|
|
|
|
<li class="value">{{addressbook.cardDavURL}}</li>
|
|
|
|
<var:if condition="isPublicAccessEnabled">
|
|
|
|
<li class="subtitle"><var:string label:value="CardDAV URL for Public Access"/></li>
|
|
|
|
<li class="value">{{addressbook.publicCardDavURL}}</li>
|
|
|
|
</var:if>
|
2014-06-19 21:52:57 +02:00
|
|
|
</ul>
|
2010-04-12 19:51:59 +02:00
|
|
|
</div>
|
2015-01-28 01:05:35 +01:00
|
|
|
</div>
|
|
|
|
-->
|
2014-08-20 21:49:44 +02:00
|
|
|
|
2015-01-28 01:05:35 +01:00
|
|
|
<!-- dropdown menu for subscriptions
|
|
|
|
<div id="folderSubscribe" class="sg-dropdown-content"
|
2015-02-26 16:58:17 +01:00
|
|
|
sg-subscribe="contact"
|
|
|
|
sg-subscribe-on-select="subscribeToFolder">!- subscription dropdown -</div>
|
2015-01-28 01:05:35 +01: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-03-09 19:09:26 +01:00
|
|
|
<md-content md-scroll-y="md-scroll-y" class="md-flex">
|
2015-01-28 01:05:35 +01:00
|
|
|
<md-list>
|
2015-04-09 20:46:54 +02:00
|
|
|
<md-list-item ng-repeat="folder in addressbooks track by folder.id"
|
2015-04-21 19:40:39 +02:00
|
|
|
ui-sref-active="sg-active"
|
|
|
|
ng-dblclick="edit($index)">
|
|
|
|
<i ng-class="{'md-icon-public': folder.isRemote, 'md-icon-contacts': folder.isEditable}"><!-- icon --></i>
|
|
|
|
<button class="md-button md-flex sg-item-name"
|
|
|
|
ng-show="editMode!=folder.id"
|
|
|
|
ng-click="select($index)"
|
|
|
|
ng-cloak="ng-cloak"
|
|
|
|
ui-sref="addressbook({addressbookId: folder.id})">{{folder.name}}</button>
|
|
|
|
<md-input-container
|
|
|
|
class="md-flex md-tile-content"
|
|
|
|
ng-show="editMode==folder.id">
|
|
|
|
<input class="folder-name" type="text"
|
|
|
|
ng-model="folder.name"
|
|
|
|
ng-cloak="ng-cloak"
|
|
|
|
ng-blur="save($index)"
|
|
|
|
sg-focus-on="addressBookName_{{$index}}"
|
|
|
|
sg-enter="save($index)"
|
|
|
|
sg-escape="revertEditing($index)"/>
|
|
|
|
</md-input-container>
|
|
|
|
<i class="md-icon-more-vert"
|
|
|
|
ng-show="currentFolderIsConfigurable(folder)"><!-- options --></i>
|
2015-04-09 20:46:54 +02:00
|
|
|
</md-list-item>
|
2015-01-28 01:05:35 +01:00
|
|
|
</md-list>
|
|
|
|
</md-content>
|
|
|
|
</md-sidenav>
|
2014-08-20 21:49:44 +02:00
|
|
|
|
2015-03-17 03:00:45 +01:00
|
|
|
<section layout="column" class="sg-app-content md-layout-fill">
|
2015-02-20 04:05:53 +01:00
|
|
|
<md-toolbar layout="column" layout-align="space-between start" class="md-tall toolbar-main">
|
2015-03-28 02:13:39 +01:00
|
|
|
<div class="md-toolbar-tools md-toolbar-tools-top sg-padded" layout="row" layout-align="space-between start">
|
2015-04-10 18:22:24 +02:00
|
|
|
<var:component className="UIxTopnavToolbarTemplate" />
|
2015-02-27 21:26:18 +01:00
|
|
|
</div>
|
2015-02-27 22:11:59 +01:00
|
|
|
<div class="md-toolbar-tools md-toolbar-tools-bottom" layout="row" layout-align="space-between center">
|
2015-03-28 02:13:39 +01:00
|
|
|
<div class="view-list cols-6 sg-padded" layout="row" layout-align="space-between center"
|
2015-03-18 19:19:17 +01:00
|
|
|
sg-search="addressbook.$filter(searchText, { search: searchField })">
|
2015-02-27 22:11:59 +01:00
|
|
|
<md-input-container class="sg-search-field-container">
|
2015-03-18 19:19:17 +01:00
|
|
|
<label style="color: white"><i class="md-icon-search"><!--icon--></i><var:string label:value="Search"/></label>
|
|
|
|
<input name="folderSearch" type="search" style="color: white"/>
|
2015-02-27 22:11:59 +01:00
|
|
|
</md-input-container>
|
2015-02-26 06:39:18 +01:00
|
|
|
|
2015-02-20 04:05:53 +01:00
|
|
|
<div class="sg-toolbar-group">
|
2015-03-18 19:19:17 +01:00
|
|
|
<md-select class="sg-toolbar-sort md-contrast-light">
|
|
|
|
<md-option value="name_or_address"><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-02-27 04:32:22 +01:00
|
|
|
</md-select>
|
2015-02-20 04:05:53 +01:00
|
|
|
</div>
|
2015-01-28 03:45:56 +01:00
|
|
|
</div>
|
2015-02-20 04:05:53 +01:00
|
|
|
</div>
|
2015-02-27 22:11:59 +01:00
|
|
|
</md-toolbar>
|
2015-02-20 04:05:53 +01:00
|
|
|
|
|
|
|
<div layout="row" class="md-flex" layout-align="space-between">
|
|
|
|
|
2015-03-28 06:24:31 +01:00
|
|
|
<md-content class="view-list" id="contactsList">
|
2015-02-20 04:05:53 +01:00
|
|
|
<header class="sg-md-subheader">
|
|
|
|
<h2 class="sg-md-subhead-solo fg-sogoBlue-700">Contacts</h2>
|
|
|
|
</header>
|
|
|
|
<!-- Search field & special results
|
2015-02-26 16:58:17 +01:00
|
|
|
<input type="text" placeholder="Search" ng-model="search.filter" ng-keyup="doSearch($event)" />
|
|
|
|
<div ng-switch="search.status">
|
|
|
|
<div ng-switch-when="min-char" class="alert-bg">
|
2015-02-20 04:05:53 +01:00
|
|
|
<i class="icon-warning"></i><var:string label:value="Please enter at least three characters"/>
|
|
|
|
</div>
|
2015-02-26 16:58:17 +01:00
|
|
|
<div ng-switch-when="no-result" class="alert-bg">
|
2015-02-20 04:05:53 +01:00
|
|
|
<i class="icon-ion-search"></i><var:string label:value="No matching card"/>
|
|
|
|
</div>
|
2015-02-26 16:58:17 +01:00
|
|
|
<div ng-switch-when="remote-addressbook" ng-show="addressbook.cards.length == 0" class="alert-bg">
|
2015-02-20 04:05:53 +01:00
|
|
|
<i class="icon-ion-search"></i><var:string label:value="Initiate a search"/>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
-->
|
2015-02-26 16:58:17 +01:00
|
|
|
<md-list vs-repeat="72" vs-scroll-parent="#contactsList">
|
2015-04-09 20:46:54 +02:00
|
|
|
<md-list-item ng-repeat="currentCard in addressbook.cards track by currentCard.id">
|
|
|
|
<div
|
2015-02-27 21:26:18 +01:00
|
|
|
ng-class="{_selected: card.id == currentCard.id}"
|
2015-04-09 20:46:54 +02:00
|
|
|
ng-click="select($index); toggleDetailView()"
|
2015-04-21 19:40:39 +02:00
|
|
|
layout="row"
|
|
|
|
flex="true">
|
2015-04-09 20:46:54 +02:00
|
|
|
<div class="sg-avatar">
|
2015-02-20 04:05:53 +01:00
|
|
|
<!--avatar--><!-- currentCard.tag = vcard || vlist -->
|
|
|
|
</div>
|
|
|
|
<div class="sg-tile-content">
|
2015-02-26 16:58:17 +01:00
|
|
|
<a ui-sref="addressbook.card.view({addressbookId: addressbook.id, cardId: currentCard.id})">
|
2015-02-20 04:05:53 +01:00
|
|
|
<div class="sg-md-body-multi contact-name" ng-bind-html="currentCard.$fullname()"><!-- cn --></div>
|
|
|
|
<div class="sg-md-subhead-multi contact-email">{{currentCard.$preferredEmail()}}</div>
|
|
|
|
</a>
|
|
|
|
</div>
|
2015-04-09 20:46:54 +02:00
|
|
|
</div>
|
|
|
|
</md-list-item>
|
2015-02-20 04:05:53 +01:00
|
|
|
</md-list>
|
|
|
|
</md-content>
|
2015-04-02 08:53:21 +02:00
|
|
|
<md-button class="iconButton md-fab md-fab--bottom md-accent hide-sm" label:aria-label="New Contact" ui-sref="addressbook.new({addressbookId: addressbook.id, contactType: 'card'})"><i class="md-icon-add"><!--icon--></i></md-button>
|
2015-03-25 21:46:06 +01:00
|
|
|
<!-- This extra container is used to animate views transitions
|
|
|
|
double quotes in ng-animate is not a typo -->
|
2015-03-31 16:50:05 +02:00
|
|
|
<div id="detailView" class="view-detail" layout="column">
|
|
|
|
<md-card class="viewer" ui-view="card"><!-- card view --></md-card>
|
|
|
|
</div>
|
|
|
|
|
2015-04-02 08:53:21 +02:00
|
|
|
<md-button class="iconButton md-fab md-accent show-sm" label:aria-label="New Contact" ui-sref="addressbook.new({addressbookId: addressbook.id, contactType: 'card'})"><i class="md-icon-add"><!--icon--></i></md-button>
|
2015-01-28 03:45:56 +01:00
|
|
|
</div>
|
2015-02-20 04:05:53 +01:00
|
|
|
|
|
|
|
</section>
|
2014-09-17 22:28:40 +02:00
|
|
|
|
2015-01-28 01:05:35 +01:00
|
|
|
</script>
|
|
|
|
<!-- modal for addressbook sharing options -->
|
2015-02-26 17:27:36 +01:00
|
|
|
<script type="text/ng-template" id="UIxUserRightsEditor">
|
2015-02-20 04:05:53 +01:00
|
|
|
<var:component className="UIxContactsUserRightsEditor" />
|
2015-01-26 04:33:00 +01:00
|
|
|
</script>
|
2015-02-26 17:27:36 +01:00
|
|
|
<script type="text/ng-template" id="UIxContactViewTemplate">
|
2015-02-20 04:05:53 +01:00
|
|
|
<var:component className="UIxContactViewTemplate" />
|
2014-12-17 20:58:20 +01:00
|
|
|
</script>
|
2009-06-26 19:48:28 +02:00
|
|
|
|
2015-03-14 01:35:27 +01:00
|
|
|
|
|
|
|
|
2015-02-26 17:27:36 +01:00
|
|
|
<var:string value="errorAlertJavaScript" const:escapeHTML="NO" />
|
2015-01-28 01:05:35 +01:00
|
|
|
|
2009-06-26 19:48:28 +02:00
|
|
|
</var:component>
|