summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorgnomus <kontakt@gnomus.de>2015-08-16 20:42:25 +0200
committergnomus <kontakt@gnomus.de>2015-08-16 20:42:25 +0200
commit73197995d75970f6054dfff9f48d2845245e1dab (patch)
tree0037a985b7f20fc65418992462808e056cfed50b /includes
parentb3aa6cc473d180699f5395015daa5b01f2a9aa4d (diff)
parent7306545e321fcdd308b14939b8d368bb25fa424b (diff)
Merge pull request #209 from engelsystem/feature-shift-types
Add Email Form Helper
Diffstat (limited to 'includes')
-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 001b1f37..dd5edde7 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -269,6 +269,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) {