aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/edpost_head.tpl
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2018-05-10 20:54:48 -0700
committerzotlabs <mike@macgirvin.com>2018-05-10 20:54:48 -0700
commit5dae0ef4f9be92d76260739348e7adf85c2fff19 (patch)
tree7b8512e9cd39c41119a2b2a6d0be97f9c95f2881 /view/tpl/edpost_head.tpl
parent62bc5e8051ea7eb96359da5ff335a67b0e1af4ac (diff)
downloadvolse-hubzilla-5dae0ef4f9be92d76260739348e7adf85c2fff19.tar.gz
volse-hubzilla-5dae0ef4f9be92d76260739348e7adf85c2fff19.tar.bz2
volse-hubzilla-5dae0ef4f9be92d76260739348e7adf85c2fff19.zip
add cancel button to editor, fix issue with autosave of categories
Diffstat (limited to 'view/tpl/edpost_head.tpl')
-rwxr-xr-xview/tpl/edpost_head.tpl7
1 files changed, 5 insertions, 2 deletions
diff --git a/view/tpl/edpost_head.tpl b/view/tpl/edpost_head.tpl
index b2ab5db4e..4f39137ab 100755
--- a/view/tpl/edpost_head.tpl
+++ b/view/tpl/edpost_head.tpl
@@ -1,10 +1,13 @@
<div class="generic-content-wrapper">
<div class="section-title-wrapper">
- {{if $delete}}
<div class="pull-right">
+ {{if $cancel}}
+ <button id="dbtn-cancel" class="btn btn-warning btn-sm" onclick="itemCancel(); return false;">{{$cancel}}</button>
+ {{/if}}
+ {{if $delete}}
<a href="item/drop/{{$id}}" id="delete-btn" class="btn btn-sm btn-danger" onclick="return confirmDelete();"><i class="fa fa-trash-o"></i>&nbsp;{{$delete}}</a>
+ {{/if}}
</div>
- {{/if}}
<h2>{{$title}}</h2>
<div class="clear"></div>
</div>