2014-05-27 18:18:57 +00:00
|
|
|
<!-- New Template Modal -->
|
|
|
|
<div class="modal-header">
|
2014-05-28 23:48:30 +00:00
|
|
|
<button type="button" class="close" ng-click="cancel()">×</button>
|
2014-05-27 18:18:57 +00:00
|
|
|
<h4 class="modal-title" ng-hide="newTemplate" id="groupModalLabel">Edit Template: {{template.name}}</h4>
|
|
|
|
<h4 class="modal-title" ng-show="newTemplate" id="groupModalLabel">New Template</h4>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<label class="control-label" for="name">Name:</label>
|
|
|
|
<div class="form-group">
|
|
|
|
<input type="text" class="form-control" ng-model="template.name" placeholder="Template name" id="name" autofocus/>
|
|
|
|
</div>
|
2014-06-05 04:54:46 +00:00
|
|
|
<label class="control-label" for="subject">Subject:</label>
|
|
|
|
<div class="form-group">
|
2014-07-12 18:46:38 +00:00
|
|
|
<input type="text" class="form-control" ng-model="template.subject" placeholder="Email Subject" id="subject" />
|
2014-06-05 04:54:46 +00:00
|
|
|
</div>
|
2014-05-27 18:18:57 +00:00
|
|
|
<fieldset disabled>
|
|
|
|
<div class="form-group">
|
|
|
|
<button class="btn btn-danger btn-disabled"><i class="fa fa-envelope"></i> Import Email (Coming Soon!)</button>
|
|
|
|
</div>
|
|
|
|
</fieldset>
|
|
|
|
<!-- Nav tabs -->
|
|
|
|
<tabset>
|
|
|
|
<tab heading="Text">
|
|
|
|
<textarea rows="10" class="form-control" ng-model="template.text" placeholder="Plaintext"></textarea>
|
|
|
|
</tab>
|
|
|
|
<tab heading="HTML">
|
|
|
|
<textarea rows="10" class="form-control" ng-model="template.html" placeholder="HTML"></textarea>
|
|
|
|
</tab>
|
|
|
|
<tab heading="Preview">
|
2014-05-27 23:59:39 +00:00
|
|
|
<div ng-model="template.html" contenteditable></div>
|
2014-05-27 18:18:57 +00:00
|
|
|
</tab>
|
|
|
|
</tabset>
|
2014-07-12 18:46:38 +00:00
|
|
|
<br />
|
|
|
|
<span class="btn btn-danger btn-file"><i class="fa fa-plus"></i> Add Files (Coming Soon!)
|
|
|
|
<input type="file" ng-file-select="onFileSelect($files)">
|
|
|
|
</span>
|
|
|
|
<div ng-repeat="file in template.files" ng-model="template.files">
|
|
|
|
<i class="fa fa-file-excel-o" ng-show="file.type == 'application/vnd.ms-excel'"></i>
|
|
|
|
<i class="fa fa-file-text-o" ng-show="file.type == 'text/plain'"></i>
|
|
|
|
<i class="fa fa-file-image-o" ng-show="file.type == 'image/gif'"></i>
|
|
|
|
<i class="fa fa-file" ng-show="file.type == 'application/octet-stream'"></i>
|
|
|
|
{{file.name}}
|
|
|
|
{{file.type}}
|
|
|
|
</div>
|
2014-05-27 18:18:57 +00:00
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
2014-05-28 23:48:30 +00:00
|
|
|
<button type="button" class="btn btn-default" ng-click="cancel()">Cancel</button>
|
2014-06-26 02:01:01 +00:00
|
|
|
<button type="button" class="btn btn-primary" ng-click="ok(template)" data-dismiss="modal">Save Template</button>
|
2014-05-27 18:18:57 +00:00
|
|
|
</div>
|