summaryrefslogtreecommitdiff
path: root/app/helpers.php
diff options
context:
space:
mode:
authorFrédéric Guillot <fred@kanboard.net>2014-05-25 15:02:27 -0400
committerFrédéric Guillot <fred@kanboard.net>2014-05-25 15:02:27 -0400
commitf9753e91d288c4d87d6a83ffe994d312eae5a3fd (patch)
tree96877bed70873e55aa5139f0ac6245c817e5911d /app/helpers.php
parent9ddeb5d978db9b1f223c98bbe83ac40fc4474225 (diff)
Add subtasks
Diffstat (limited to 'app/helpers.php')
-rw-r--r--app/helpers.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/app/helpers.php b/app/helpers.php
index 8351328a..2dcb38e8 100644
--- a/app/helpers.php
+++ b/app/helpers.php
@@ -260,3 +260,8 @@ function form_number($name, $values = array(), array $errors = array(), array $a
{
return form_input('number', $name, $values, $errors, $attributes, $class);
}
+
+function form_numeric($name, $values = array(), array $errors = array(), array $attributes = array(), $class = '')
+{
+ return form_input('text', $name, $values, $errors, $attributes, $class.' form-numeric');
+}