mirror of
https://github.com/moparisthebest/mail
synced 2024-11-16 22:25:08 -05:00
47 lines
2.5 KiB
HTML
47 lines
2.5 KiB
HTML
<div class="lightbox-body" ng-controller="WriteCtrl">
|
|
<header>
|
|
<h2>{{writerTitle}}</h2>
|
|
<button class="close" ng-click="state.writer.close()" data-action="lightbox-close"></button>
|
|
</header>
|
|
<div class="content">
|
|
|
|
<div class="view-write">
|
|
<div class="headers">
|
|
<p field="to">
|
|
<span>To:</span>
|
|
<span ng-repeat="recipient in to track by $index">
|
|
<input id="to{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" ng-class="{'label': recipient.secure === true, 'label label-primary': recipient.secure === false && recipient.valid !== true}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(to, $index)" address-input="to" tabindex="1" focus-me="state.writer.open && writerTitle !== 'Reply'">
|
|
</span>
|
|
</p>
|
|
<p field="cc">
|
|
<span>Cc:</span>
|
|
<span ng-repeat="recipient in cc track by $index">
|
|
<input id="cc{{$index}}" value="{{recipient.address}}" ng-model="recipient.address" ng-trim="false" ng-class="{'label': recipient.secure === true, 'label label-primary': recipient.secure === false && recipient.valid !== true}" auto-size="recipient.address" spellcheck="false" ng-change="onAddressUpdate(cc, $index)" address-input="cc" tabindex="1">
|
|
</span>
|
|
</p>
|
|
</div><!--/.address-headers-->
|
|
|
|
<div class="subject-box">
|
|
<div class="subject-line">
|
|
<input ng-model="subject" class="subject" spellcheck="true" tabindex="2" placeholder="Subject" ng-change="updatePreview()">
|
|
</div>
|
|
<button class="btn-attachment">
|
|
<div data-icon=""></div>
|
|
</button>
|
|
</div><!--/.subject-box-->
|
|
|
|
<div class="body" focus-child>
|
|
<p ng-model="body" contentEditable="true" spellcheck="false" ng-change="updatePreview()" tabindex="3" focus-me="state.writer.open && writerTitle === 'Reply'"></p>
|
|
|
|
<div class="encrypt-preview" ng-class="{'invisible': !ciphertextPreview}">
|
|
<p>-----BEGIN ENCRYPTED PREVIEW-----<br>{{ciphertextPreview}}<br>-----END ENCRYPTED PREVIEW-----</p>
|
|
</div><!--/.encrypt-preview-->
|
|
</div><!--/.body-->
|
|
|
|
<div class="send-control">
|
|
<button ng-click="sendToOutbox()" class="btn" data-icon="{{(sendBtnSecure === false) ? '' : (sendBtnSecure === true) ? '' : ''}}" ng-disabled="!okToSend" tabindex="4">{{sendBtnText || 'Send'}}</button>
|
|
</div>
|
|
</div><!--/.write-view-->
|
|
|
|
</div><!--/.content-->
|
|
</div><!--/.lightbox-body--> |