2013-10-21 09:02:54 -04:00
|
|
|
<div class="lightbox-body" ng-controller="WriteCtrl">
|
2013-10-18 20:58:53 -04:00
|
|
|
<header>
|
|
|
|
<h2>{{writerTitle}}</h2>
|
2013-11-08 15:55:08 -05:00
|
|
|
<button class="close" ng-click="state.writer.close()" data-action="lightbox-close"></button>
|
2013-10-18 20:58:53 -04:00
|
|
|
</header>
|
|
|
|
<div class="content">
|
2013-09-12 07:36:40 -04:00
|
|
|
|
2013-10-18 20:58:53 -04:00
|
|
|
<div class="view-write">
|
2014-04-22 13:39:29 -04:00
|
|
|
<div class="mail-addresses">
|
|
|
|
<div class="mail-addresses-more">
|
2014-04-22 10:41:07 -04:00
|
|
|
<button ng-click="showCC = true;" ng-hide="showCC">Cc</button>
|
|
|
|
<button ng-click="showBCC = true;" ng-hide="showBCC">Bcc</button>
|
|
|
|
</div>
|
2014-01-19 10:18:32 -05:00
|
|
|
<p field="to">
|
2014-04-22 10:41:07 -04:00
|
|
|
<label>To:</label>
|
2014-04-22 13:39:29 -04:00
|
|
|
<input ng-repeat="recipient in to track by $index" id="to{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" class="label" ng-class="{'label-blank': !recipient.address || recipient.secure === undefined, 'label-primary': recipient.secure === false}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(to, $index)" address-input="to" tabindex="1" ng-mouseover="getKeyId(recipient)" focus-me="state.writer.open && writerTitle !== 'Reply'">
|
2013-10-18 20:58:53 -04:00
|
|
|
</p>
|
2014-04-22 10:41:07 -04:00
|
|
|
<p field="cc" ng-show="showCC === true">
|
|
|
|
<label>Cc:</label>
|
2014-04-22 13:39:29 -04:00
|
|
|
<input ng-repeat="recipient in cc track by $index" id="cc{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" class="label" ng-class="{'label-blank': !recipient.address || recipient.secure === undefined, 'label-primary': recipient.secure === false}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(cc, $index)" address-input="cc" tabindex="1" ng-mouseover="getKeyId(recipient)">
|
2014-04-22 10:41:07 -04:00
|
|
|
</p>
|
|
|
|
<p field="bcc" ng-show="showBCC === true">
|
|
|
|
<label>Bcc:</label>
|
2014-04-22 13:39:29 -04:00
|
|
|
<input ng-repeat="recipient in bcc track by $index" id="bcc{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" class="label" ng-class="{'label-blank': !recipient.address || recipient.secure === undefined, 'label-primary': recipient.secure === false}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(bcc, $index)" address-input="bcc" tabindex="1" ng-mouseover="getKeyId(recipient)">
|
2014-01-10 15:35:34 -05:00
|
|
|
</p>
|
2014-04-22 13:39:29 -04:00
|
|
|
</div><!--/.mail-addresses-->
|
2013-09-12 07:36:40 -04:00
|
|
|
|
2013-10-18 20:58:53 -04:00
|
|
|
<div class="subject-box">
|
|
|
|
<div class="subject-line">
|
2014-01-13 10:42:10 -05:00
|
|
|
<input ng-model="subject" class="subject" spellcheck="true" tabindex="2" placeholder="Subject" ng-change="updatePreview()">
|
2014-02-06 03:13:31 -05:00
|
|
|
</div><!--/.subject-line-->
|
2014-02-05 18:41:08 -05:00
|
|
|
<input id="attachment-input" type="file" multiple attachment-input>
|
2014-02-28 07:50:00 -05:00
|
|
|
<button class="btn btn-attachment" ng-class="{'btn-primary': sendBtnSecure === false}" attachment-btn>
|
2014-02-05 18:41:08 -05:00
|
|
|
<div data-icon=""></div>
|
2014-02-06 03:13:31 -05:00
|
|
|
</button><!--/.btn-attachment-->
|
|
|
|
</div><!--/.subject-box-->
|
|
|
|
|
|
|
|
<div ng-switch="attachments.length > 0">
|
|
|
|
<div ng-switch-when="true">
|
|
|
|
<div class="attachments-box">
|
|
|
|
<span ng-repeat="attachment in attachments" class="attachment">
|
|
|
|
<span data-icon=""></span>
|
2014-02-06 13:19:00 -05:00
|
|
|
{{attachment.filename}}
|
2014-02-06 03:13:31 -05:00
|
|
|
<span class="close" data-icon="" ng-click="remove(attachment)"></span>
|
|
|
|
</span><!--/.attachment-->
|
|
|
|
</div><!--/.attachments-box-->
|
|
|
|
</div><!--/ng-switch-when-->
|
|
|
|
</div><!--/ng-switch-->
|
2014-02-04 15:04:48 -05:00
|
|
|
|
2013-11-27 05:57:15 -05:00
|
|
|
<div class="body" focus-child>
|
2014-01-13 10:42:10 -05:00
|
|
|
<p ng-model="body" contentEditable="true" spellcheck="false" ng-change="updatePreview()" tabindex="3" focus-me="state.writer.open && writerTitle === 'Reply'"></p>
|
2013-09-12 07:36:40 -04:00
|
|
|
|
2014-02-27 09:23:33 -05:00
|
|
|
<div class="encrypt-preview" ng-class="{'invisible': !ciphertextPreview || !sendBtnSecure}">
|
2013-10-18 20:58:53 -04:00
|
|
|
<p>-----BEGIN ENCRYPTED PREVIEW-----<br>{{ciphertextPreview}}<br>-----END ENCRYPTED PREVIEW-----</p>
|
|
|
|
</div><!--/.encrypt-preview-->
|
|
|
|
</div><!--/.body-->
|
2013-09-12 11:22:17 -04:00
|
|
|
|
2013-10-18 20:58:53 -04:00
|
|
|
<div class="send-control">
|
2014-02-27 09:23:33 -05:00
|
|
|
<button ng-click="sendToOutbox()" class="btn" ng-class="{'btn-primary': sendBtnSecure === false}" ng-disabled="!okToSend" tabindex="4">{{sendBtnText || 'Send'}}</button>
|
2013-10-18 20:58:53 -04:00
|
|
|
</div>
|
|
|
|
</div><!--/.write-view-->
|
|
|
|
|
|
|
|
</div><!--/.content-->
|
2014-01-19 10:58:51 -05:00
|
|
|
|
|
|
|
<!-- popovers -->
|
|
|
|
<div id="fingerprint-writer" class="popover right" ng-controller="PopoverCtrl">
|
|
|
|
<div class="arrow"></div>
|
2014-02-20 13:20:24 -05:00
|
|
|
<div class="popover-title"><b>PGP key ID</b></div>
|
|
|
|
<div class="popover-content">{{keyId}}</div>
|
2014-01-19 10:58:51 -05:00
|
|
|
</div><!--/.popover-->
|
2013-10-18 20:58:53 -04:00
|
|
|
</div><!--/.lightbox-body-->
|