summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index b5846e9b..48ec7e8c 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -355,6 +355,19 @@ function button($href, $label, $class = '')
}
/**
+ * Rendert einen Knopf mit JavaScript onclick Handler
+ *
+ * @param string $javascript
+ * @param string $label
+ * @param string $class
+ * @return string
+ */
+function button_js($javascript, $label, $class = '')
+{
+ return '<a onclick="' . $javascript . '" href="#" class="btn btn-default ' . $class . '">' . $label . '</a>';
+}
+
+/**
* Rendert einen Knopf mit Glyph
*
* @param string $href