summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgnomus <kontakt@gnomus.de>2015-08-16 20:41:23 +0200
committergnomus <kontakt@gnomus.de>2015-08-16 20:41:23 +0200
commit7306545e321fcdd308b14939b8d368bb25fa424b (patch)
tree9af46df6a5b4ed0b3726d82d11780f629f125e3d
parent544a51612f14c4f3cf7d1c4a6de26a99ea94b788 (diff)
Add Email Form Helper
-rw-r--r--includes/sys_template.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index d3f7a24e..3b6d7d3b 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -226,6 +226,14 @@ function form_text($name, $label, $value, $disabled = false) {
}
/**
+ * Rendert ein Formular-Emailfeld
+ */
+function form_text($name, $label, $value, $disabled = false) {
+ $disabled = $disabled ? ' disabled="disabled"' : '';
+ return form_element($label, '<input class="form-control" id="form_' . $name . '" type="email" name="' . $name . '" value="' . htmlspecialchars($value) . '" ' . $disabled . '/>', 'form_' . $name);
+}
+
+/**
* Rendert ein Formular-Dateifeld
*/
function form_file($name, $label) {