summaryrefslogtreecommitdiff
path: root/app/Helper/Task.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-02-03 18:43:31 -0500
committerFrederic Guillot <fred@kanboard.net>2016-02-03 18:43:31 -0500
commit6d388ec48d04481883aeb08b3aa4cbb9063ce3a4 (patch)
treec4c8813df4c47ad037736a22bdc87ffd8634bf12 /app/Helper/Task.php
parent91200ddcdebb9e592cc264714c4a14921416868f (diff)
Remove description textarea from task edit form
Diffstat (limited to 'app/Helper/Task.php')
-rw-r--r--app/Helper/Task.php15
1 files changed, 13 insertions, 2 deletions
diff --git a/app/Helper/Task.php b/app/Helper/Task.php
index 192cce49..1cb36b86 100644
--- a/app/Helper/Task.php
+++ b/app/Helper/Task.php
@@ -129,10 +129,21 @@ class Task extends Base
return $html;
}
+ public function selectTimeSpent(array $values, array $errors = array(), array $attributes = array())
+ {
+ $attributes = array_merge(array('tabindex="10"'), $attributes);
+
+ $html = $this->helper->form->label(t('Time spent'), 'time_spent');
+ $html .= $this->helper->form->numeric('time_spent', $values, $errors, $attributes);
+ $html .= ' '.t('hours');
+
+ return $html;
+ }
+
public function selectStartDate(array $values, array $errors = array(), array $attributes = array())
{
$placeholder = $this->helper->text->in($this->config->get('application_date_format'), $this->dateParser->getAvailableFormats());
- $attributes = array_merge(array('tabindex="10"', 'placeholder="'.$placeholder.'"'), $attributes);
+ $attributes = array_merge(array('tabindex="11"', 'placeholder="'.$placeholder.'"'), $attributes);
$html = $this->helper->form->label(t('Start Date'), 'date_started');
$html .= $this->helper->form->text('date_started', $values, $errors, $attributes, 'form-date');
@@ -143,7 +154,7 @@ class Task extends Base
public function selectDueDate(array $values, array $errors = array(), array $attributes = array())
{
$placeholder = $this->helper->text->in($this->config->get('application_date_format'), $this->dateParser->getAvailableFormats());
- $attributes = array_merge(array('tabindex="11"', 'placeholder="'.$placeholder.'"'), $attributes);
+ $attributes = array_merge(array('tabindex="12"', 'placeholder="'.$placeholder.'"'), $attributes);
$html = $this->helper->form->label(t('Due Date'), 'date_due');
$html .= $this->helper->form->text('date_due', $values, $errors, $attributes, 'form-date');