From 62827e6cf470449c117624058fb36ad94804bcc0 Mon Sep 17 00:00:00 2001 From: emkael Date: Tue, 5 May 2020 14:25:42 +0200 Subject: Time tracking related plugins --- plugins/TimeMachine/Helper/SubTaskTimeTracking.php | 38 ++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 plugins/TimeMachine/Helper/SubTaskTimeTracking.php (limited to 'plugins/TimeMachine/Helper/SubTaskTimeTracking.php') diff --git a/plugins/TimeMachine/Helper/SubTaskTimeTracking.php b/plugins/TimeMachine/Helper/SubTaskTimeTracking.php new file mode 100644 index 00000000..7197672a --- /dev/null +++ b/plugins/TimeMachine/Helper/SubTaskTimeTracking.php @@ -0,0 +1,38 @@ +dateParser->getUserDateTimeFormat(); + $values = $this->dateParser->format($values, array($name), $userFormat); + $attributes = array_merge(array('placeholder="'.date($userFormat).'"'), $attributes); + + return $this->helper->form->label($label, $name) . + $this->helper->form->text($name, $values, $errors, $attributes, 'form-datetime'); + } + +} -- cgit v1.2.3