diff options
author | Frederic Guillot <fred@kanboard.net> | 2017-10-20 14:47:04 -0700 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2017-10-20 14:47:04 -0700 |
commit | ed98f95cfa4a31609b98fc8354b62a8895f68cda (patch) | |
tree | 48f213463e2683a1848228631a381daa86937f14 /app/Helper/SubtaskHelper.php | |
parent | f1ef49823c38227cab4f28a0a2378556893850c2 (diff) |
Add bulk subtasks creation
Diffstat (limited to 'app/Helper/SubtaskHelper.php')
-rw-r--r-- | app/Helper/SubtaskHelper.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/app/Helper/SubtaskHelper.php b/app/Helper/SubtaskHelper.php index b11e3b04..67875a63 100644 --- a/app/Helper/SubtaskHelper.php +++ b/app/Helper/SubtaskHelper.php @@ -92,6 +92,17 @@ class SubtaskHelper extends Base return $html; } + public function renderBulkTitleField(array $values, array $errors = array(), array $attributes = array()) + { + $attributes = array_merge(array('tabindex="1"', 'required'), $attributes); + + $html = $this->helper->form->label(t('Title'), 'title'); + $html .= $this->helper->form->textarea('title', $values, $errors, $attributes); + $html .= '<p class="form-help">'.t('Enter one subtask by line.').'</p>'; + + return $html; + } + public function renderTitleField(array $values, array $errors = array(), array $attributes = array()) { $attributes = array_merge(array('tabindex="1"', 'required', 'maxlength="255"'), $attributes); |