360 lines
15 KiB
XML
360 lines
15 KiB
XML
<?xml version="1.0" standalone="yes"?>
|
|
<!DOCTYPE var:component>
|
|
<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"
|
|
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" />;
|
|
</script>
|
|
<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>
|
|
</style>
|
|
|
|
<!--
|
|
<div id="signatureFlagMessage" style="display: none" class="dialog right">
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="accountIconMenu">
|
|
<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>
|
|
<li><var:string label:value="Delegation..." /></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="inboxIconMenu">
|
|
<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>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Mark Folder Read" /></li>
|
|
<li><var:string label:value="New Folder..." /></li>
|
|
<li><var:string label:value="Compact This Folder" /></li>
|
|
<li><var:string label:value="Export This Folder" /></li>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="trashIconMenu">
|
|
<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>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Mark Folder Read" /></li>
|
|
<li><var:string label:value="New Subfolder..." /></li>
|
|
<li><var:string label:value="Compact This Folder" /></li>
|
|
<li><var:string label:value="Export This Folder" /></li>
|
|
<li><var:string label:value="Empty Trash" /></li>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="mailboxIconMenu">
|
|
<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>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Mark Folder Read" /></li>
|
|
<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>
|
|
<li><var:string label:value="Export This Folder" /></li>
|
|
<li><var:string label:value="Delete Folder" /></li>
|
|
<li><var:string label:value="Use This Folder For" /></li>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Search Messages..." /></li>
|
|
<li><var:string label:value="Sharing..." /></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="folderTypeMenu">
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="moveMailboxMenu">
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="copyMailboxMenu">
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="messageListMenu">
|
|
<ul>
|
|
<li><var:string label:value="Open Message In New Window"/></li>
|
|
<li> separator </li>
|
|
<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> separator </li>
|
|
<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>
|
|
<li> separator </li>
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="messagesListMenu">
|
|
<ul>
|
|
<li><var:string label:value="Forward"/></li>
|
|
<li> separator </li>
|
|
<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>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Save As..."/></li>
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="messageContentMenu">
|
|
<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>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Label"/></li>
|
|
<li><var:string label:value="Mark"/></li>
|
|
<li> separator </li>
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="label-menu">
|
|
<ul id="" class="choiceMenu">
|
|
<li><var:string label:value="None" /></li>
|
|
<li> separator </li>
|
|
<var:foreach list="availableLabels" item="currentLabel">
|
|
<li var:class="currentLabel.name.asCSSIdentifier" var:name="currentLabel.name"> <var:string value="currentLabel.label"/></li>
|
|
</var:foreach>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="mark-menu">
|
|
<ul id="" class="choiceMenu">
|
|
<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>
|
|
<li> separator </li>
|
|
<li><var:string label:value="Flag" /></li>
|
|
</ul>
|
|
</div>
|
|
|
|
<div class="f-dropdown" id="addressMenu">
|
|
<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>
|
|
|
|
<div class="f-dropdown" id="imageMenu">
|
|
<ul>
|
|
<li id="save_image"><var:string label:value="Save Image"/></li>
|
|
</ul>
|
|
</div>
|
|
-->
|
|
<!--
|
|
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")
|
|
|
|
Templates script tag wrappers goes next
|
|
-->
|
|
<main class="view md-layout-fill" ui-view="mailboxes" layout="row" ng-controller="navController"><!-- mailboxes list --></main>
|
|
|
|
<!-- TEMPLATE SCRIPT WRAPPER -->
|
|
<script type="text/ng-template" id="UIxMailMainFrame">
|
|
<!-- dropdown menu for mailbox options button -->
|
|
<div id="folderProperties" class ="f-dropdown icons-dropdown" dropdown-content="dropdown-content">
|
|
<ul class="button-group">
|
|
<li ng-show="currentFolder.isEditable">
|
|
<span class="button" ng-click="editFolder(currentFolder)">
|
|
<i class="icon-pencil"><!-- rename --></i>
|
|
</span>
|
|
</li>
|
|
<li ng-show="currentFolder.isEditable">
|
|
<span class="button" ng-click="newFolder(currentFolder)">
|
|
<i class="icon-plus"><!-- new mailbox --></i>
|
|
</span>
|
|
</li>
|
|
<li ng-show="currentFolder.isEditable">
|
|
<span class="button" ng-click="share()">
|
|
<i class="icon-earth"><!-- share --></i>
|
|
</span>
|
|
</li>
|
|
<li>
|
|
<span class="button" ng-click="exportMails()">
|
|
<i class="icon-ion-ios7-upload-outline"><!-- export --></i>
|
|
</span>
|
|
</li>
|
|
<li ng-show="currentFolder.isEditable">
|
|
<span class="button" ng-click="confirmDelete()">
|
|
<i class="icon-trash"><!-- delete --></i>
|
|
</span>
|
|
</li>
|
|
</ul>
|
|
</div>
|
|
|
|
<!-- Sidenav -->
|
|
<md-sidenav id="left-sidenav" class="md-sidenav-left" md-component-id="left" md-is-locked-open="$mdMedia('gt-md')" layout="column">
|
|
<md-toolbar class="md-tall" layout-align="start start">
|
|
<div class="md-toolbar-tools" layout="row">
|
|
<md-button class="iconButton sg-button-navicon" ng-click="openBottomSheet()">
|
|
<i class="md-icon-apps"><!--icon--></i>
|
|
</md-button>
|
|
<span class="sg-logo"><!--logo.svg--></span>
|
|
</div>
|
|
<div class="md-toolbar-tools" layout="row">
|
|
<div layout="column">
|
|
<p class="sg-md-title">{{activeUser.identification}}</p>
|
|
<!--fixme: implement this with the proper model and actions -->
|
|
<md-select class="sg-logout" ng-model="accounts.options" label:placeholder="sogo1@inverse.ca">
|
|
<md-option >sogo1@inverse.ca</md-option>
|
|
<md-option >connect an other account</md-option>
|
|
<md-option >logout</md-option>
|
|
</md-select>
|
|
</div>
|
|
</div>
|
|
</md-toolbar>
|
|
|
|
<md-content md-scroll-y="md-scroll-y" class="md-flex">
|
|
<md-list ng-repeat="account in accounts track by account.id">
|
|
<md-item>
|
|
<md-item-content>
|
|
<div class="md-tile-content">
|
|
<md-button>
|
|
<span>{{account.name}}</span>
|
|
</md-button>
|
|
</div>
|
|
</md-item-content>
|
|
</md-item>
|
|
<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>
|
|
</md-list>
|
|
</md-content>
|
|
</md-sidenav>
|
|
|
|
<!-- Main section -->
|
|
<section layout="column" class="md-layout-fill">
|
|
<md-toolbar layout="column" layout-align="space-between start" class="md-tall toolbar-main">
|
|
<div class="md-toolbar-tools md-toolbar-tools-top" layout="row" layout-align="space-between start" ng-controller="navController">
|
|
<div class="sg-toolbar-group-1" layout="row">
|
|
<md-button ng-click="toggleLeft()" class="md-hide-gt-md sg-button-navicon iconButton" aria-label="Toggle Menu">
|
|
<span class="md-icon-menu"></span>
|
|
</md-button>
|
|
<div class="sg-date-group" layout="column" layout-align="space-between end">
|
|
<p class="sg-day">monday</p>
|
|
<p class="sg-month">january</p>
|
|
<p class="sg-year">2015</p>
|
|
</div>
|
|
|
|
<p class="sg-md-display-3 sg-date-today">15</p>
|
|
</div>
|
|
<div class="sg-toolbar-group-2">
|
|
<md-button class="iconButton" aria-label="Search">
|
|
<i class="md-icon-search"><!--icon--></i>
|
|
</md-button>
|
|
</div>
|
|
</div>
|
|
<div class="md-toolbar-tools md-toolbar-tools-bottom" layout="row" layout-align="space-between center">
|
|
<div class="cols-6" layout="row" layout-align="space-between center" style="padding-right: 16px">
|
|
<md-input-container class="sg-search-field-container">
|
|
<label style="color: white"><i class="md-icon-search"><!--icon--></i>Search</label>
|
|
<input name="folderSearch" type="search"
|
|
ng-model="search.filter" ng-keyup="doSearch($event)" style="color: white"/>
|
|
</md-input-container>
|
|
|
|
<div class="sg-toolbar-group">
|
|
<md-select class="sg-toolbar-sort md-contrast-light" label:placeholder="All"
|
|
ng-model="search.criteria">
|
|
<md-option value="all">ALL</md-option>
|
|
</md-select>
|
|
<md-button class="iconButton" aria-label="create" ui-sref="mail.newMessage()">
|
|
<i class="md-icon-create"><!-- icon --></i>
|
|
</md-button>
|
|
|
|
</div>
|
|
</div>
|
|
<div class="spacer cols-8"><!-- spacer --></div>
|
|
</div>
|
|
</md-toolbar>
|
|
<div layout="row" class="md-flex" layout-align="space-between" ui-view="mailbox"><!-- messages list --></div>
|
|
</section>
|
|
</script>
|
|
|
|
<script type="text/ng-template" id="UIxMailFolderTemplate">
|
|
<var:component className="UIxMailFolderTemplate" />
|
|
</script>
|
|
|
|
<script type="text/ng-template" id="UIxMailViewTemplate">
|
|
<var:component className="UIxMailViewTemplate" />
|
|
</script>
|
|
|
|
</var:component>
|