summaryrefslogtreecommitdiff
path: root/app/Helper
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2015-10-12 14:44:28 -0400
committerFrederic Guillot <fred@kanboard.net>2015-10-12 14:44:28 -0400
commite515f37435db6cf883215f13f02391d8b2107d47 (patch)
tree3df01bc0c420a2c497302c5a38aa9d724b2e764c /app/Helper
parente57386a18393e85f073cccff70699ad9afc19119 (diff)
Add user CSV import
Diffstat (limited to 'app/Helper')
-rw-r--r--app/Helper/Form.php17
1 files changed, 17 insertions, 0 deletions
diff --git a/app/Helper/Form.php b/app/Helper/Form.php
index a37cc81a..e8664771 100644
--- a/app/Helper/Form.php
+++ b/app/Helper/Form.php
@@ -178,6 +178,23 @@ class Form extends \Core\Base
}
/**
+ * Display file field
+ *
+ * @access public
+ * @param string $name
+ * @param array $errors
+ * @param boolean $multiple
+ * @return string
+ */
+ public function file($name, array $errors = array(), $multiple = false)
+ {
+ $html = '<input type="file" name="'.$name.'" id="form-'.$name.'" '.($multiple ? 'multiple' : '').'>';
+ $html .= $this->errorList($errors, $name);
+
+ return $html;
+ }
+
+ /**
* Display a input field
*
* @access public