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-01-26 04:33:00 +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"
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-01-26 04:33:00 +01:00
<style type = "text/css">
<var:foreach list = "availableLabels" item = "currentLabel">
#label-menu LI.<var:string value = "currentLabel.name.asCSSIdentifier" />,
TABLE.messageList TR[labels~=
<var:string const:value = '"' const:escapeHTML = "NO"
/>
<var:string value = "currentLabel.name" />
<var:string const:value = '"' const:escapeHTML = "NO" />] TD
{ color:<var:string value = "currentLabel.color" />; }
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-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-01-28 03:45:56 +01:00
<main class="view md-layout-fill" ui-view="mailboxes" layout="row"><!-- mailboxes list --></main>
2006-12-22 17:58:30 +01:00
2015-01-28 03:45:56 +01:00
<!-- TEMPLATE SCRIPT WRAPPER -->
<script type = "text/ng-template" id="UIxMailMainFrame">
2015-01-08 17:52:10 +01:00
<!-- dropdown menu for mailbox options button -->
2015-01-28 03:45:56 +01:00
<div id="folderProperties" class ="f-dropdown icons-dropdown" data-dropdown-content="dropdown-content">
2015-01-26 04:33:00 +01:00
<ul class = "button-group">
<li data-ng-show = "currentFolder.isEditable">
<span class = "button" data-ng-click = "editFolder(currentFolder)">
<i class = "icon-pencil"><!-- rename --></i>
</span>
2014-11-25 22:09:55 +01:00
</li>
2015-01-26 04:33:00 +01:00
<li data-ng-show = "currentFolder.isEditable">
<span class = "button" data-ng-click = "newFolder(currentFolder)">
<i class = "icon-plus"><!-- new mailbox --></i>
</span>
2014-12-18 22:30:17 +01:00
</li>
2015-01-26 04:33:00 +01:00
<li data-ng-show = "currentFolder.isEditable">
<span class = "button" data-ng-click = "share()">
<i class = "icon-earth"><!-- share --></i>
</span>
2014-11-25 22:09:55 +01:00
</li>
2014-11-30 14:50:26 +01:00
<li>
2015-01-26 04:33:00 +01:00
<span class = "button" data-ng-click = "exportMails()">
<i class = "icon-ion-ios7-upload-outline"><!-- export --></i>
</span>
2014-11-30 14:50:26 +01:00
</li>
2015-01-26 04:33:00 +01:00
<li data-ng-show = "currentFolder.isEditable">
<span class = "button" data-ng-click = "confirmDelete()">
<i class = "icon-trash"><!-- delete --></i>
</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-02-06 01:16:49 +01:00
<md-sidenav class="md-sidenav-left" md-component-id="left" md-is-locked-open="$media('gt-md')" layout="column">
2015-01-28 03:45:56 +01:00
<md-toolbar class="md-tall" layout-align="end start">
<h2 class="md-toolbar-tools md-toolbar-tools-bottom">
2015-02-03 05:47:08 +01:00
<span class="sg-md-title md-flex">{{activeUser.identification}}</span>
2015-01-09 21:58:11 +01:00
</h2>
</md-toolbar>
2015-01-28 03:45:56 +01:00
<md-content md-scroll-y="md-scroll-y" class="md-flex md-padding" ng-controller="LeftCtrl">
<md-button ng-click="close()" class="md-primary md-hide-gt-md">Close</md-button>
<md-list ng-repeat="account in accounts track by account.id">
2015-01-09 21:58:11 +01:00
<md-item>
<md-item-content>
2015-01-28 03:45:56 +01:00
<div class="md-tile-content">
2015-01-26 04:33:00 +01:00
<md-button>
2015-02-03 05:47:08 +01:00
<span>{{account.name}}</span>
2015-01-26 04:33:00 +01:00
</md-button>
2015-01-09 21:58:11 +01:00
</div>
</md-item-content>
</md-item>
2015-01-28 03:45:56 +01:00
<sg-folder-tree data-ng-repeat="folder in account.$mailboxes track by folder.id" data-sg-root="account" data-sg-folder="folder" data-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-01-28 03:45:56 +01:00
<section layout="column" layout-fill="layout-fill">
<md-toolbar layout="row" layout-align="space-between start" class="md-tall">
<div class="md-toolbar-tools" ng-controller="toggleCtrl">
<span class="md-flex">
<md-button ng-click="toggleLeft()" class="md-primary md-hide-gt-md">
<span class="icon-ic_menu_24px"></span>
2015-01-26 04:33:00 +01:00
</md-button>
2015-02-03 05:47:08 +01:00
<div class="sg-md-display-1">
2015-01-09 21:58:11 +01:00
[[Calendar]]
</div>
</span>
2015-01-28 03:45:56 +01:00
<span class="sd-toolbar-tools">
2015-01-09 21:58:11 +01:00
<span>search</span>
</span>
</div>
</md-toolbar>
2015-02-06 01:16:49 +01:00
<div layout="row" class="md-flex" layout-align="space-between" 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-01-26 04:33:00 +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-01-26 04:33:00 +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>