aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/prv_message.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2016-12-13 17:30:02 -0800
committerzotlabs <mike@macgirvin.com>2016-12-13 17:30:02 -0800
commitf111c5c325fec1139ee7ea36c691de452469fa5a (patch)
tree2d70f0df06bb4959257a523c8ed093aaff18a7f2 /view/tpl/prv_message.tpl
parentc4a9b61da6a86ca58a850967a81d7e4b39a482f6 (diff)
downloadvolse-hubzilla-f111c5c325fec1139ee7ea36c691de452469fa5a.tar.gz
volse-hubzilla-f111c5c325fec1139ee7ea36c691de452469fa5a.tar.bz2
volse-hubzilla-f111c5c325fec1139ee7ea36c691de452469fa5a.zip
mail preview (basic functionality)
Diffstat (limited to 'view/tpl/prv_message.tpl')
-rwxr-xr-xview/tpl/prv_message.tpl11
1 files changed, 10 insertions, 1 deletions
diff --git a/view/tpl/prv_message.tpl b/view/tpl/prv_message.tpl
index 0c9b9ba1d..67588f717 100755
--- a/view/tpl/prv_message.tpl
+++ b/view/tpl/prv_message.tpl
@@ -10,6 +10,7 @@
<input type="hidden" id="inp-prvmail-expires" name="expires" value="{{$defexpire}}" />
<input type="hidden" name="media_str" id="jot-media" value="" />
+ <input type="hidden" name="preview" id="mail-preview" value="0" />
{{if $new}}
<div class="form-group">
@@ -35,9 +36,16 @@
</div>
<div id="prvmail-submit-wrapper" class="form-group">
- <div id="prvmail-submit" class="pull-right">
+ <div id="prvmail-submit-div" class="pull-right">
<button class="btn btn-primary btn-sm" type="submit" id="prvmail-submit" name="submit" value="{{$submit}}">{{$submit}}</button>
</div>
+
+ <div id="prvmail-preview-div" class="pull-right">
+ <button class="btn btn-default btn-sm" id="prvmail-preview" title="{{$preview}}" onclick="preview_mail(); return false;"><i class="fa fa-eye"></i></button>
+ </div>
+
+
+
<div id="prvmail-tools" class="btn-toolbar pull-left">
<div class="btn-group">
<button id="main-editor-bold" class="btn btn-default btn-sm" title="{{$bold}}" onclick="inserteditortag('b', 'prvmail-text'); return false;">
@@ -101,6 +109,7 @@
</div>
<div class="clear"></div>
</div>
+ <div id="mail-preview-content" style="display: none;"></div>
</form>
</div>
{{if $new}}