summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorPhilip Häusler <msquare@notrademark.de>2014-12-22 20:06:37 +0100
committerPhilip Häusler <msquare@notrademark.de>2014-12-22 20:06:37 +0100
commit2d587478a1094969fbb44bde29b34b034868db70 (patch)
treededbfa93c2ac88170e91306b4907f4a7d14ee221 /includes/sys_template.php
parent702047de5391b968137966077103cbb6d0a24dd8 (diff)
fix different bugs with shift types
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 56751e16..7ffe1529 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -9,6 +9,15 @@ $themes = array(
"2" => "Engelsystem 31c3"
);
+/**
+ * Display muted (grey) text.
+ *
+ * @param string $text
+ */
+function mute($text) {
+ return '<span class="text-muted">' . $text . '</span>';
+}
+
function progress_bar($valuemin, $valuemax, $valuenow, $class = '', $content = '') {
return '<div class="progress"><div class="progress-bar ' . $class . '" role="progressbar" aria-valuenow="' . $valuenow . '" aria-valuemin="' . $valuemin . '" aria-valuemax="' . $valuemax . '" style="width: ' . (($valuenow - $valuemin) * 100 / ($valuemax - $valuemin)) . '%">' . $content . '</div></div>';
}
@@ -195,7 +204,7 @@ function form_radio($name, $label, $selected, $value) {
*/
function form_info($label, $text = "") {
if ($label == "")
- return '<span class="help-block">' . $text . '</span>';
+ return '<span class="help-block">' . glyph('info-sign') . $text . '</span>';
if ($text == "")
return '<h4>' . $label . '</h4>';
return form_element($label, '<p class="form-control-static">' . $text . '</p>', '');