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
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-03-18 19:59:06 +01:00
xmlns:label="OGo:label"
2015-02-26 17:27:36 +01:00
className="UIxPageFrame"
title="title"
const:userDefaultsKeys="SOGoMailMessageCheck,SOGoRefreshViewCheck,SOGoMailSortByThreads,SOGoMailListViewColumnsOrder,SOGoMailDisplayRemoteInlineImages,SOGoMailComposeMessageType,SOGoMailReplyPlacement"
const:userSettingsKeys="Mail"
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">
<!--const:cssFiles="ng-tags-input.css">-->
<script type="text/javascript">
var mailAccounts =<var:string value="mailAccounts" const:escapeHTML="NO" />;
var userNames =<var:string value="userNames" const:escapeHTML="NO" />;
var unseenCountFolders =<var:string value="unseenCountFolders" const:escapeHTML="NO" />;
2007-08-15 23:13:20 +02:00
</script>
2015-02-26 17:27:36 +01:00
<style type="text/css">
<var:foreach list="availableLabels" item="currentLabel">
#label-menu LI.<var:string value="currentLabel.name.asCSSIdentifier" />,
2015-01-26 04:33:00 +01:00
TABLE.messageList TR[labels~=
2015-02-26 17:27:36 +01:00
<var:string const:value = '"' const:escapeHTML="NO"
2015-01-26 04:33:00 +01:00
/>
2015-02-26 17:27:36 +01:00
<var:string value="currentLabel.name" />
<var:string const:value = '"' const:escapeHTML="NO" />] TD
{ color:<var:string value="currentLabel.color" />; }
2015-01-26 04:33:00 +01:00
TABLE.messageList TR[labels~=
2015-02-26 17:27:36 +01:00
<var:string const:value = '"' const:escapeHTML="NO"
2015-01-26 04:33:00 +01:00
/>
2015-02-26 17:27:36 +01:00
<var:string value="currentLabel.name" />
<var:string const:value = '"' const:escapeHTML="NO" />]._selected TD
2015-01-26 04:33:00 +01:00
{ color: #fff;
background-color:
2015-02-26 17:27:36 +01:00
<var:string value="currentLabel.color" />
2015-01-26 04:33:00 +01:00
!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">
2015-02-26 16:58:17 +01:00
<li var:class="currentLabel.name.asCSSIdentifier" var: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-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")
2007-05-25 23:19:31 +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="mailboxes" layout="row" ng-controller="navController"><!-- mailboxes list --></main>
2006-12-22 17:58:30 +01:00
2015-01-28 03:45:56 +01:00
<!-- TEMPLATE SCRIPT WRAPPER -->
2015-02-26 17:27:36 +01:00
<script type="text/ng-template" id="UIxMailMainFrame">
2015-01-08 17:52:10 +01:00
<!-- dropdown menu for mailbox options button -->
2015-04-01 00:33:14 +02:00
<div id="folderProperties" class ="f-dropdown icons-dropdown" dropdown-content="dropdown-content" ng-hide="true">
2015-02-26 17:27:36 +01:00
<ul class="button-group">
<li ng-show="currentFolder.isEditable">
<span class="button" ng-click="editFolder(currentFolder)">
<i class="icon-pencil"><!-- rename --></i>
2015-01-26 04:33:00 +01:00
</span>
2014-11-25 22:09:55 +01:00
</li>
2015-02-26 17:27:36 +01:00
<li ng-show="currentFolder.isEditable">
<span class="button" ng-click="newFolder(currentFolder)">
<i class="icon-plus"><!-- new mailbox --></i>
2015-01-26 04:33:00 +01:00
</span>
2014-12-18 22:30:17 +01:00
</li>
2015-02-26 17:27:36 +01:00
<li ng-show="currentFolder.isEditable">
<span class="button" ng-click="share()">
<i class="icon-earth"><!-- share --></i>
2015-01-26 04:33:00 +01:00
</span>
2014-11-25 22:09:55 +01:00
</li>
2014-11-30 14:50:26 +01:00
<li>
2015-02-26 17:27:36 +01:00
<span class="button" ng-click="exportMails()">
<i class="icon-ion-ios7-upload-outline"><!-- export --></i>
2015-01-26 04:33:00 +01:00
</span>
2014-11-30 14:50:26 +01:00
</li>
2015-02-26 17:27:36 +01:00
<li ng-show="currentFolder.isEditable">
<span class="button" ng-click="confirmDelete()">
<i class="icon-trash"><!-- delete --></i>
2015-01-26 04:33:00 +01:00
</span>
2014-11-25 22:09:55 +01:00
</li>
</ul>
</div>
2010-05-27 16:41:59 +02:00
2015-01-28 01:05:35 +01:00
<!-- Sidenav -->
2015-03-31 19:17:37 +02:00
<md-sidenav id="left-sidenav" class="md-sidenav-left md-whiteframe-z1 md-layout-fill" 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 03:45:56 +01:00
<md-list ng-repeat="account in accounts track by account.id">
2015-04-02 06:59:06 +02:00
<h2 class="sg-md-subheader--static sg-padded">{{account.name}}</h2>
2015-02-26 16:58:17 +01:00
<sg-folder-tree ng-repeat="folder in account.$mailboxes track by folder.id" sg-root="account" sg-folder="folder" sg-select-folder="setCurrentFolder"><!-- tree --></sg-folder-tree>
2015-01-09 21:58:11 +01:00
</md-list>
</md-content>
</md-sidenav>
2015-01-28 01:05:35 +01:00
<!-- Main section -->
2015-03-17 03:00:45 +01:00
<section layout="column" class="sg-app-content md-layout-fill">
2015-02-16 08:15:01 +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-03-28 02:13:39 +01:00
<div class="sg-toolbar-group-last">
2015-04-03 17:34:05 +02:00
<md-button class="iconButton" label:aria-label="More">
2015-03-28 02:13:39 +01:00
<i class="md-icon-more-vert"><!--icon--></i>
2015-03-04 00:40:48 +01:00
</md-button>
2015-02-16 08:15:01 +01:00
</div>
2015-01-09 21:58:11 +01:00
</div>
2015-02-16 08:15:01 +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:59:06 +01:00
sg-search="mailbox.$filter({ sort: 'date', asc: false }, [{ searchBy: searchField, searchInput: searchText }])">
2015-02-27 04:32:22 +01:00
<md-input-container class="sg-search-field-container">
2015-03-18 19:59:06 +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 04:32:22 +01:00
</md-input-container>
2015-02-16 08:15:01 +01:00
<div class="sg-toolbar-group">
2015-03-18 19:59:06 +01:00
<md-select class="sg-toolbar-sort md-contrast-light">
<md-option value="subject"><var:string label:value="Subject"/></md-option>
2015-03-19 15:30:18 +01:00
<md-option value="from"><var:string label:value="Sender"/></md-option>
<md-option value="subject_or_from"><var:string label:value="Subject or Sender"/></md-option>
2015-03-18 19:59:06 +01:00
<md-option value="to_or_cc"><var:string label:value="To or Cc"/></md-option>
<md-option value="body"><var:string label:value="Entire Message"/></md-option>
2015-02-27 04:32:22 +01:00
</md-select>
2015-03-04 00:40:48 +01:00
2015-02-16 08:15:01 +01:00
</div>
</div>
</div>
2015-01-09 21:58:11 +01:00
</md-toolbar>
2015-04-02 04:12:07 +02:00
<div layout="row" ui-view="mailbox"><!-- messages list --></div>
2015-01-28 01:05:35 +01:00
</section>
2014-11-25 22:09:55 +01:00
</script>
2010-05-27 16:41:59 +02:00
2015-02-26 17:27:36 +01:00
<script type="text/ng-template" id="UIxMailFolderTemplate">
<var:component className="UIxMailFolderTemplate" />
2014-11-25 22:09:55 +01:00
</script>
2010-05-27 16:41:59 +02:00
2015-02-26 17:27:36 +01:00
<script type="text/ng-template" id="UIxMailViewTemplate">
<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>