2006-06-15 21:34:10 +02:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
2007-08-15 23:13:20 +02:00
|
|
|
<!DOCTYPE var:component>
|
2014-11-25 22:09:55 +01:00
|
|
|
<var:component
|
|
|
|
xmlns="http://www.w3.org/1999/xhtml"
|
|
|
|
xmlns:var="http://www.skyrix.com/od/binding"
|
|
|
|
xmlns:const="http://www.skyrix.com/od/constant"
|
|
|
|
xmlns:rsrc="OGo:url"
|
|
|
|
xmlns:label="OGo:label"
|
|
|
|
className="UIxPageFrame"
|
|
|
|
title="title"
|
2014-12-11 17:24:22 +01:00
|
|
|
const:userDefaultsKeys="SOGoMailMessageCheck,SOGoRefreshViewCheck,SOGoMailSortByThreads,SOGoMailListViewColumnsOrder,SOGoMailDisplayRemoteInlineImages,SOGoMailComposeMessageType,SOGoMailReplyPlacement"
|
2014-11-25 22:09:55 +01:00
|
|
|
const:userSettingsKeys="Mail"
|
2014-12-12 19:39:02 +01:00
|
|
|
const:jsFiles="Common/resource.js, Common/user-model.js, Common/acl-model.js, Contacts/card-model.js, Contacts/addressbook-model.js, Mailer/message-model.js, Mailer/mailbox-model.js, Mailer/account-model.js, vendor/ckeditor/ckeditor.js, vendor/ckeditor/ck.js, vendor/ng-tags-input.js, vendor/angular-file-upload.js"
|
2014-12-12 03:11:20 +01:00
|
|
|
const:cssFiles="ng-tags-input.css">
|
2007-08-15 23:13:20 +02:00
|
|
|
<script type="text/javascript">
|
2010-08-12 22:51:10 +02:00
|
|
|
var mailAccounts = <var:string value="mailAccounts" const:escapeHTML="NO"/>;
|
2014-08-06 20:49:36 +02:00
|
|
|
var userNames = <var:string value="userNames" const:escapeHTML="NO" />;
|
2011-12-29 18:50:48 +01:00
|
|
|
var unseenCountFolders = <var:string value="unseenCountFolders" const:escapeHTML="NO"/>;
|
2007-08-15 23:13:20 +02:00
|
|
|
</script>
|
2008-03-25 20:59:13 +01:00
|
|
|
<style type="text/css">
|
2013-11-11 16:49:58 +01:00
|
|
|
<var:foreach list="availableLabels" item="currentLabel">
|
2013-11-13 21:44:57 +01:00
|
|
|
#label-menu LI.<var:string value="currentLabel.name.asCSSIdentifier"/>,
|
2013-11-13 20:46:08 +01:00
|
|
|
TABLE.messageList TR[labels~=<var:string const:value='"' const:escapeHTML="NO"
|
|
|
|
/><var:string value="currentLabel.name"/><var:string const:value='"' const:escapeHTML="NO"/>] TD
|
2013-11-11 16:49:58 +01:00
|
|
|
{ color: <var:string value="currentLabel.color"/>; }
|
2013-11-13 20:46:08 +01:00
|
|
|
TABLE.messageList TR[labels~=<var:string const:value='"' const:escapeHTML="NO"
|
|
|
|
/><var:string value="currentLabel.name"/><var:string const:value='"' const:escapeHTML="NO"/>]._selected TD
|
|
|
|
{ color: #fff;
|
|
|
|
background-color: <var:string value="currentLabel.color"/> !important; }
|
|
|
|
</var:foreach>
|
2008-03-25 20:59:13 +01:00
|
|
|
</style>
|
2014-11-25 22:09:55 +01:00
|
|
|
|
2015-01-09 21:58:11 +01:00
|
|
|
<!--
|
2009-09-25 22:53:00 +02:00
|
|
|
<div id="signatureFlagMessage" style="display: none" class="dialog right">
|
|
|
|
</div>
|
2014-11-25 22:09:55 +01:00
|
|
|
|
|
|
|
<div class="f-dropdown" id="accountIconMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Subscribe..." /></li>
|
|
|
|
<li><var:string label:value="Get Messages for Account" /></li>
|
|
|
|
<li><var:string label:value="New Folder..." /></li>
|
|
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
|
|
<li><var:string label:value="Properties..." /></li>
|
2010-09-30 20:05:14 +02:00
|
|
|
<li><var:string label:value="Delegation..." /></li>
|
2007-08-15 23:13:20 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2006-07-11 19:53:09 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="inboxIconMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Open in New Mail Window" /></li>
|
|
|
|
<li><var:string label:value="Copy Folder Location" /></li>
|
|
|
|
<li><var:string label:value="Subscribe..." /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2013-03-15 16:06:26 +01:00
|
|
|
<li><var:string label:value="Mark Folder Read" /></li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="New Folder..." /></li>
|
|
|
|
<li><var:string label:value="Compact This Folder" /></li>
|
2014-05-28 17:24:10 +02:00
|
|
|
<li><var:string label:value="Export This Folder" /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-11-25 22:09:55 +01:00
|
|
|
|
|
|
|
<div class="f-dropdown" id="trashIconMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Open in New Mail Window" /></li>
|
|
|
|
<li><var:string label:value="Copy Folder Location" /></li>
|
|
|
|
<li><var:string label:value="Subscribe..." /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2013-03-15 16:06:26 +01:00
|
|
|
<li><var:string label:value="Mark Folder Read" /></li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="New Subfolder..." /></li>
|
|
|
|
<li><var:string label:value="Compact This Folder" /></li>
|
2015-03-13 11:41:07 +01:00
|
|
|
<li><var:string label:value="Export This Folder" /></li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Empty Trash" /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2006-07-11 19:53:09 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="mailboxIconMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Open in New Mail Window" /></li>
|
|
|
|
<li><var:string label:value="Copy Folder Location" /></li>
|
|
|
|
<li><var:string label:value="Subscribe..." /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2013-03-15 16:06:26 +01:00
|
|
|
<li><var:string label:value="Mark Folder Read" /></li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="New Subfolder..." /></li>
|
|
|
|
<li><var:string label:value="Rename Folder..." /></li>
|
|
|
|
<li><var:string label:value="Compact This Folder" /></li>
|
2015-03-13 11:41:07 +01:00
|
|
|
<li><var:string label:value="Export This Folder" /></li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Delete Folder" /></li>
|
2007-10-17 23:03:39 +02:00
|
|
|
<li><var:string label:value="Use This Folder For" /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2007-10-17 23:03:39 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="folderTypeMenu">
|
2007-10-17 23:03:39 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Sent Messages" /></li>
|
|
|
|
<li><var:string label:value="Drafts" /></li>
|
|
|
|
<li><var:string label:value="Deleted Messages" /></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-11-25 22:09:55 +01:00
|
|
|
|
|
|
|
<div class="f-dropdown" id="moveMailboxMenu">
|
2014-01-03 22:56:51 +01:00
|
|
|
<ul>
|
|
|
|
<var:foreach list="clientObject.mailAccounts" item="currentLabel">
|
|
|
|
<li><img rsrc:src="tbtv_account_17x17.png"/> <var:string value="currentLabel.name"/></li>
|
|
|
|
</var:foreach>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="copyMailboxMenu">
|
2014-01-03 22:56:51 +01:00
|
|
|
<ul>
|
|
|
|
<var:foreach list="clientObject.mailAccounts" item="currentLabel">
|
|
|
|
<li><img rsrc:src="tbtv_account_17x17.png"/> <var:string value="currentLabel.name"/></li>
|
|
|
|
</var:foreach>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="messageListMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Open Message In New Window"/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Reply to Sender Only"/></li>
|
|
|
|
<li><var:string label:value="Reply to All"/></li>
|
|
|
|
<li><var:string label:value="Forward"/></li>
|
|
|
|
<li><var:string label:value="Edit As New..."/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Move To"/></li>
|
|
|
|
<li><var:string label:value="Copy To"/></li>
|
|
|
|
<li><var:string label:value="Label"/></li>
|
|
|
|
<li><var:string label:value="Mark"/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Save As..."/></li>
|
|
|
|
<li><var:string label:value="View Message Source"/></li>
|
|
|
|
<li><var:string label:value="Print Preview"/></li>
|
|
|
|
<li><var:string label:value="Print..."/></li>
|
|
|
|
<li><var:string label:value="Delete Message"/></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="messagesListMenu">
|
2007-11-23 21:36:49 +01:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Forward"/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-11-23 21:36:49 +01:00
|
|
|
<li><var:string label:value="Move To"/></li>
|
|
|
|
<li><var:string label:value="Copy To"/></li>
|
|
|
|
<li><var:string label:value="Label"/></li>
|
|
|
|
<li><var:string label:value="Mark"/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2008-09-30 15:42:48 +02:00
|
|
|
<li><var:string label:value="Save As..."/></li>
|
2007-11-23 21:36:49 +01:00
|
|
|
<li><var:string label:value="Print Preview"/></li>
|
|
|
|
<li><var:string label:value="Print..."/></li>
|
|
|
|
<li><var:string label:value="Delete Selected Messages"/></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="messageContentMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<ul>
|
|
|
|
<li><var:string label:value="Reply to Sender Only"/></li>
|
|
|
|
<li><var:string label:value="Reply to All"/></li>
|
|
|
|
<li><var:string label:value="Forward"/></li>
|
|
|
|
<li><var:string label:value="Edit As New..."/></li>
|
|
|
|
<li><var:string label:value="Move To"/></li>
|
|
|
|
<li><var:string label:value="Copy To"/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Label"/></li>
|
|
|
|
<li><var:string label:value="Mark"/></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Save As..."/></li>
|
|
|
|
<li><var:string label:value="View Message Source"/></li>
|
|
|
|
<li><var:string label:value="Print Preview"/></li>
|
|
|
|
<li><var:string label:value="Print..."/></li>
|
|
|
|
<li><var:string label:value="Delete Message"/></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2006-06-15 21:34:10 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="label-menu">
|
2007-10-22 23:59:20 +02:00
|
|
|
<ul id="" class="choiceMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="None" /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2013-11-11 16:49:58 +01:00
|
|
|
<var:foreach list="availableLabels" item="currentLabel">
|
2013-11-13 21:44:57 +01:00
|
|
|
<li var:class="currentLabel.name.asCSSIdentifier" var:data-name="currentLabel.name"> <var:string value="currentLabel.label"/></li>
|
2013-11-11 16:49:58 +01:00
|
|
|
</var:foreach>
|
2007-08-15 23:13:20 +02:00
|
|
|
</ul>
|
|
|
|
</div>
|
2006-07-13 00:03:05 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="mark-menu">
|
2010-08-23 17:32:52 +02:00
|
|
|
<ul id="" class="choiceMenu">
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="As Read" /></li>
|
|
|
|
<li><var:string label:value="Thread As Read" /></li>
|
|
|
|
<li><var:string label:value="As Read By Date..." /></li>
|
|
|
|
<li><var:string label:value="All Read" /></li>
|
2015-01-09 21:58:11 +01:00
|
|
|
<li> separator </li>
|
2007-08-15 23:13:20 +02:00
|
|
|
<li><var:string label:value="Flag" /></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2006-12-22 17:58:30 +01:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="addressMenu">
|
2007-11-02 21:12:41 +01:00
|
|
|
<ul>
|
|
|
|
<li id="add_to_addressbook"><var:string label:value="Add to Address Book..."/></li>
|
|
|
|
<li id="compose_mailto"><var:string label:value="Compose Mail To"/></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<div class="f-dropdown" id="imageMenu">
|
2007-11-26 22:16:00 +01:00
|
|
|
<ul>
|
2007-12-10 23:34:12 +01:00
|
|
|
<li id="save_image"><var:string label:value="Save Image"/></li>
|
2007-11-26 22:16:00 +01:00
|
|
|
</ul>
|
|
|
|
</div>
|
2015-01-09 21:58:11 +01:00
|
|
|
-->
|
2015-01-14 09:11:47 +01:00
|
|
|
<!--FIXME : repport in-line styling in style definitions -->
|
2015-01-13 22:24:42 +01:00
|
|
|
<div ui-view="mailboxes" layout="row" style="max-height: 100%"><!-- mailboxes list --></div>
|
2007-05-25 23:19:31 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<script type="text/ng-template" id="mailboxes.html">
|
2006-12-22 17:58:30 +01:00
|
|
|
|
2015-01-08 17:52:10 +01:00
|
|
|
<!-- dropdown menu for mailbox options button -->
|
2014-11-25 22:09:55 +01:00
|
|
|
<div id="folderProperties" class="f-dropdown icons-dropdown" data-dropdown-content="dropdown-content">
|
|
|
|
<ul class="button-group">
|
2014-12-18 22:30:17 +01:00
|
|
|
<li data-ng-show="currentFolder.isEditable">
|
2015-01-08 17:52:10 +01:00
|
|
|
<span class="button" data-ng-click="editFolder(currentFolder)"><i class="icon-pencil"><!-- rename --></i></span>
|
2014-11-25 22:09:55 +01:00
|
|
|
</li>
|
2014-12-18 22:30:17 +01:00
|
|
|
<li data-ng-show="currentFolder.isEditable">
|
|
|
|
<span class="button" data-ng-click="newFolder(currentFolder)"><i class="icon-plus"><!-- new mailbox --></i></span>
|
|
|
|
</li>
|
|
|
|
<li data-ng-show="currentFolder.isEditable">
|
2014-11-25 22:09:55 +01:00
|
|
|
<span class="button" data-ng-click="share()"><i class="icon-earth"><!-- share --></i></span>
|
|
|
|
</li>
|
2014-11-30 14:50:26 +01:00
|
|
|
<li>
|
|
|
|
<span class="button" data-ng-click="exportMails()"><i class="icon-ion-ios7-upload-outline"><!-- export --></i></span>
|
|
|
|
</li>
|
2014-12-18 22:30:17 +01:00
|
|
|
<li data-ng-show="currentFolder.isEditable">
|
2014-11-25 22:09:55 +01:00
|
|
|
<span class="button" data-ng-click="confirmDelete()"><i class="icon-trash"><!-- delete --></i></span>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2010-05-27 16:41:59 +02:00
|
|
|
|
2015-01-09 21:58:11 +01:00
|
|
|
<md-sidenav class="md-sidenav-left md-whiteframe-z1" md-component-id="left" md-is-locked-open="$media('gt-md')" layout="column">
|
|
|
|
<md-toolbar class="md-tall" layout-align="end start">
|
|
|
|
<h2 class="md-toolbar-tools md-toolbar-tools-bottom">
|
2015-01-17 05:29:33 +01:00
|
|
|
<span class="md-flex">{{activeUser.identification}}</span>
|
2015-01-09 21:58:11 +01:00
|
|
|
</h2>
|
|
|
|
</md-toolbar>
|
|
|
|
<md-content md-scroll-y="md-scroll-y" class="md-padding" ng-controller="LeftCtrl">
|
|
|
|
<md-button ng-click="close()" class="md-primary" hide-gt-md="hide-gt-md">Close</md-button>
|
|
|
|
<md-list ng-repeat="account in accounts track by account.id">
|
|
|
|
<md-item>
|
|
|
|
<md-item-content>
|
|
|
|
<div class="md-tile-content">
|
|
|
|
<md-button><h3>{{account.name}}</h3></md-button>
|
|
|
|
</div>
|
|
|
|
</md-item-content>
|
|
|
|
</md-item>
|
2014-12-18 21:22:29 +01:00
|
|
|
<sg-folder-tree data-ng-repeat="folder in account.$mailboxes track by folder.id"
|
2014-12-11 17:24:22 +01:00
|
|
|
data-sg-root="account"
|
|
|
|
data-sg-folder="folder"
|
2015-01-08 17:52:10 +01:00
|
|
|
data-sg-select-folder="setCurrentFolder"><!-- tree --></sg-folder-tree>
|
2015-01-09 21:58:11 +01:00
|
|
|
</md-list>
|
|
|
|
</md-content>
|
|
|
|
</md-sidenav>
|
|
|
|
|
|
|
|
<!--<div class="newItemsToolbar">
|
|
|
|
<a class="button tiny radius split" data-ui-sref="mail.newMessage()"><var:string label:value="Compose"/><span data-dropdown-toggle="#draftsDrop"></span></a><br/>
|
|
|
|
</div>-->
|
|
|
|
|
|
|
|
<main layout="column" layout-fill="layout-fill">
|
2015-01-16 13:52:29 +01:00
|
|
|
<md-toolbar layout="row" layout-align="space-between start" class="md-tall md-grey">
|
2015-01-14 17:36:10 +01:00
|
|
|
<!--fixme : md-toolbar-tools height is inconsistently defined, in former version it was 64px (basic toolbar height), here it's 100% -->
|
2015-01-17 05:31:55 +01:00
|
|
|
<div class="md-toolbar-tools" ng-controller="toggleCtrl">
|
2015-01-09 21:58:11 +01:00
|
|
|
<span flex="flex">
|
|
|
|
<md-button ng-click="toggleLeft()" class="md-primary" hide-gt-md="hide-gt-md"><span class="icon-ic_menu_24px"></span></md-button>
|
|
|
|
<div class="display-1" style="font-size: 2em; font-weight: 300">
|
|
|
|
[[Calendar]]
|
|
|
|
</div>
|
|
|
|
</span>
|
2015-01-14 17:36:10 +01:00
|
|
|
<span class="sd-toolbar-tools">
|
2015-01-09 21:58:11 +01:00
|
|
|
<span>search</span>
|
|
|
|
</span>
|
|
|
|
</div>
|
|
|
|
</md-toolbar>
|
2015-01-14 17:36:10 +01:00
|
|
|
<md-content layout="row" flex="flex" ui-view="mailbox"><!-- messages list --></md-content>
|
2015-01-09 21:58:11 +01:00
|
|
|
</main>
|
2014-11-25 22:09:55 +01:00
|
|
|
</script>
|
2010-05-27 16:41:59 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<script type="text/ng-template" id="mailbox.html">
|
2014-12-17 20:58:20 +01:00
|
|
|
<var:component className="UIxMailFolderTemplate"/>
|
2014-11-25 22:09:55 +01:00
|
|
|
</script>
|
2010-05-27 16:41:59 +02:00
|
|
|
|
2014-11-25 22:09:55 +01:00
|
|
|
<script type="text/ng-template" id="message.html">
|
2014-12-17 20:58:20 +01:00
|
|
|
<var:component className="UIxMailViewTemplate"/>
|
2014-11-25 22:09:55 +01:00
|
|
|
</script>
|
2014-12-11 17:24:22 +01:00
|
|
|
|
2007-08-15 23:13:20 +02:00
|
|
|
</var:component>
|