2014-12-11 17:24:22 +01:00
|
|
|
<?xml version="1.0" standalone="yes"?>
|
|
|
|
<!DOCTYPE container>
|
|
|
|
<container
|
|
|
|
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"
|
|
|
|
xmlns:uix="OGo:uix"><var:string var:value="doctype" const:escapeHTML="NO" />
|
|
|
|
<div id="messageEditor">
|
2015-03-14 01:35:27 +01:00
|
|
|
<md-content class="md-padding bg-sogoPaper-50">
|
2015-05-04 22:39:45 +02:00
|
|
|
<form>
|
|
|
|
<header>
|
|
|
|
|
|
|
|
<!-- FROM / TO / CC/ BCC / SUBJECT / ATTACHMENTS -->
|
|
|
|
<div class="msg-header-content">
|
2015-07-02 16:54:33 +02:00
|
|
|
<md-input-container>
|
|
|
|
<label> <var:string label:value="From"/></label>
|
2015-02-20 04:05:53 +01:00
|
|
|
<md-select name="from"
|
2015-05-04 22:39:45 +02:00
|
|
|
ng-model="message.editable.from">
|
|
|
|
<md-option ng-value="identity" ng-repeat="identity in identities">{{identity}}</md-option>
|
2015-02-20 04:05:53 +01:00
|
|
|
</md-select>
|
2015-07-02 16:54:33 +02:00
|
|
|
</md-input-container>
|
2015-05-04 22:39:45 +02:00
|
|
|
|
|
|
|
<div class="pseudo-input-container">
|
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="To"/>
|
|
|
|
</label>
|
|
|
|
<md-chips ng-model="message.editable.to">
|
|
|
|
<md-autocomplete
|
|
|
|
md-selected-item="autocomplete.to.selected"
|
|
|
|
md-search-text="autocomplete.to.searchText"
|
|
|
|
md-items="user in userFilter(autocomplete.to.searchText)"
|
|
|
|
label:placeholder="Add a recipient">
|
|
|
|
<span md-highlight-text="autocomplete.to.searchText">{{user}}</span>
|
|
|
|
</md-autocomplete>
|
|
|
|
</md-chips>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pseudo-input-container" ng-hide="hideCc">
|
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Cc"/>
|
|
|
|
</label>
|
|
|
|
<md-chips ng-model="message.editable.cc">
|
|
|
|
<md-autocomplete
|
|
|
|
md-selected-item="autocomplete.cc.selected"
|
|
|
|
md-search-text="autocomplete.cc.searchText"
|
|
|
|
md-items="user in userFilter(autocomplete.cc.searchText)"
|
|
|
|
label:placeholder="Add a recipient">
|
|
|
|
<span md-highlight-text="autocomplete.cc.searchText">{{user}}</span>
|
|
|
|
</md-autocomplete>
|
|
|
|
</md-chips>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="pseudo-input-container" ng-hide="hideBcc">
|
|
|
|
<label class="pseudo-input-label">
|
|
|
|
<var:string label:value="Bcc"/>
|
|
|
|
</label>
|
|
|
|
<md-chips ng-model="message.editable.bcc">
|
|
|
|
<md-autocomplete
|
|
|
|
md-selected-item="autocomplete.bcc.selected"
|
|
|
|
md-search-text="autocomplete.bcc.searchText"
|
|
|
|
md-items="user in userFilter(autocomplete.bcc.searchText)"
|
|
|
|
label:placeholder="Add a recipient">
|
|
|
|
<span md-highlight-text="autocomplete.bcc.searchText">{{user}}</span>
|
|
|
|
</md-autocomplete>
|
|
|
|
</md-chips>
|
2015-02-12 02:59:46 +01:00
|
|
|
</div>
|
2015-05-04 22:39:45 +02:00
|
|
|
|
|
|
|
<md-input-container>
|
|
|
|
<label>
|
|
|
|
<var:string label:value="Subject"/>
|
|
|
|
</label>
|
|
|
|
<input type="text" name="subject" ng-model="message.editable.subject"/>
|
|
|
|
</md-input-container>
|
2015-05-05 15:49:40 +02:00
|
|
|
|
2015-05-05 18:04:41 +02:00
|
|
|
<!--
|
2015-05-05 15:49:40 +02:00
|
|
|
<div layout="row" layout-align="center center" ng-hide="hidePriority">
|
|
|
|
<span class="md-body-1">
|
|
|
|
<var:string label:value="Priority"/>
|
|
|
|
</span>
|
|
|
|
<md-slider flex="flex"
|
|
|
|
md-discrete="md-discrete"
|
|
|
|
ng-model="message.editable.priority"
|
|
|
|
step="1"
|
|
|
|
min="1"
|
|
|
|
max="5"
|
|
|
|
aria-label="rating">
|
|
|
|
</md-slider>
|
2015-05-05 18:04:41 +02:00
|
|
|
</div>
|
|
|
|
-->
|
2015-06-08 21:49:27 +02:00
|
|
|
|
|
|
|
<md-list>
|
|
|
|
<!-- FILES ALREADY UPLOADED, FOR EXAMPLE WHEN WE FORWARD A
|
|
|
|
MAIL WITH ATTACHMENTS -->
|
|
|
|
<md-list-item ng-repeat="item in message.editable.attachmentAttrs">
|
|
|
|
<div layout="row" layout-align="space-between center">
|
2015-05-04 22:39:45 +02:00
|
|
|
<span ng-bind="item.filename"><!-- filename --></span>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-06-08 21:49:27 +02:00
|
|
|
ng-click="message.$deleteAttachment(item.filename);">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>remove_circle_outline</md-icon>
|
2015-06-08 21:49:27 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-list-item>
|
|
|
|
<!-- FILE BEING ATTACHED TO A MAIL -->
|
|
|
|
<md-list-item ng-repeat="item in uploader.queue">
|
|
|
|
<div layout="row" layout-align="space-between center">
|
2015-05-04 22:39:45 +02:00
|
|
|
<span ng-bind="item.file.name"><!-- filename --></span>
|
2015-06-08 21:49:27 +02:00
|
|
|
<md-progress-linear md-mode="determinate"
|
|
|
|
value="{{item.progress}}"
|
|
|
|
ng-show="item.isUploading" ><!-- progress--></md-progress-linear>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-06-08 21:49:27 +02:00
|
|
|
ng-click="uploader.cancelItem(item)"
|
|
|
|
ng-show="item.isUploading">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>cancel</md-icon>
|
2015-06-08 21:49:27 +02:00
|
|
|
</md-button>
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button"
|
2015-06-08 21:49:27 +02:00
|
|
|
ng-click="message.$deleteAttachment(item.file.name);item.remove();"
|
|
|
|
ng-show="!item.isUploading">
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-icon>remove_circle_outline</md-icon>
|
2015-06-08 21:49:27 +02:00
|
|
|
</md-button>
|
|
|
|
</div>
|
|
|
|
</md-list-item>
|
|
|
|
</md-list>
|
2015-02-12 02:59:46 +01:00
|
|
|
</div>
|
2015-05-04 22:39:45 +02:00
|
|
|
|
2015-06-08 21:49:27 +02:00
|
|
|
<!-- </div> -->
|
|
|
|
|
2015-05-04 22:39:45 +02:00
|
|
|
<!-- TOOLBAR TO SHOW CC/BCC/ATTACHMENT FIELDS -->
|
|
|
|
<div layout="column" layout-align="start end">
|
|
|
|
<md-button class="iconButton" ng-show="hideCc" ng-click="hideCc = false">Cc</md-button>
|
2015-05-05 15:49:40 +02:00
|
|
|
<md-button class="iconButton" ng-show="hideBcc"
|
|
|
|
ng-click="hideBcc = false">Bcc</md-button>
|
2015-05-05 18:04:41 +02:00
|
|
|
<!--
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" ng-show="hidePriority" ng-click="hidePriority = false">
|
|
|
|
<md-icon>info_outline</md-icon>
|
2015-05-05 18:04:41 +02:00
|
|
|
</md-button>
|
|
|
|
-->
|
2015-06-08 21:49:27 +02:00
|
|
|
<md-button class="iconButton">
|
|
|
|
<label for="file-input">
|
|
|
|
Add files
|
|
|
|
</label>
|
2015-05-05 15:49:40 +02:00
|
|
|
</md-button>
|
2015-06-08 21:49:27 +02:00
|
|
|
<input id="file-input" type="file"
|
|
|
|
nv-file-select="nv-file-select"
|
|
|
|
multiple="multiple"
|
|
|
|
uploader="uploader"
|
|
|
|
ng-show="false"/>
|
|
|
|
|
2015-05-05 18:04:41 +02:00
|
|
|
<!--
|
2015-07-04 03:40:37 +02:00
|
|
|
<md-button class="sg-icon-button" ng-click="returnReceipt = !returnReceipt">
|
|
|
|
<md-icon>receipt</md-icon>
|
2015-05-05 18:04:41 +02:00
|
|
|
</md-button>
|
|
|
|
-->
|
2015-05-04 22:39:45 +02:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
<!-- MESSAGE CONTENT -->
|
|
|
|
<textarea name="content" var:class="editorClass"
|
|
|
|
ng-model="message.editable.text"/>
|
|
|
|
|
|
|
|
<!-- TOOLBAR BUTTONS -->
|
|
|
|
<div class="buttonsToolbar">
|
|
|
|
<div layout="row" layout-align="end center">
|
|
|
|
<md-button ng-click="cancel()"><var:string label:value="Cancel"/></md-button>
|
|
|
|
<md-button ng-click="message.$save()">
|
|
|
|
<var:string label:value="Save"/>
|
|
|
|
</md-button>
|
|
|
|
<md-button class="fg-sogoBlue-700 md-primary md-hue-3"
|
|
|
|
ng-click="send(message)">
|
|
|
|
<var:string label:value="Send"/>
|
2015-02-12 09:55:46 +01:00
|
|
|
</md-button>
|
2013-12-18 22:36:49 +01:00
|
|
|
</div>
|
2015-02-20 05:41:11 +01:00
|
|
|
</div>
|
2015-05-04 22:39:45 +02:00
|
|
|
</form>
|
|
|
|
</md-content>
|
|
|
|
</div>
|
2015-02-20 05:41:11 +01:00
|
|
|
</container>
|