summaryrefslogtreecommitdiff
path: root/templates/actionbutton.hamlet
diff options
context:
space:
mode:
Diffstat (limited to 'templates/actionbutton.hamlet')
-rw-r--r--templates/actionbutton.hamlet2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/actionbutton.hamlet b/templates/actionbutton.hamlet
new file mode 100644
index 000000000..03abe5c11
--- /dev/null
+++ b/templates/actionbutton.hamlet
@@ -0,0 +1,2 @@
+<a class="#{buttonclass}" href="@{route}" onclick="(function( $ ) { $.post('@{route}'); })( jQuery ); return false;">
+ <i class="#{iconclass}"></i> #{fromMaybe "" label}