From ed98f95cfa4a31609b98fc8354b62a8895f68cda Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Fri, 20 Oct 2017 14:47:04 -0700 Subject: Add bulk subtasks creation --- app/Helper/SubtaskHelper.php | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'app/Helper') 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 .= '

'.t('Enter one subtask by line.').'

'; + + return $html; + } + public function renderTitleField(array $values, array $errors = array(), array $attributes = array()) { $attributes = array_merge(array('tabindex="1"', 'required', 'maxlength="255"'), $attributes); -- cgit v1.2.3