From acba6839a6082e3e3800a733f8baea7c843fc02e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Sat, 11 Oct 2014 21:11:10 -0400 Subject: [PATCH] Add 3 new fields for tasks: start date, time estimated and time spent --- Vagrantfile | 7 +++- app/Controller/Base.php | 1 + app/Controller/Subtask.php | 3 +- app/Controller/Task.php | 51 +++++++++++++++++++++++------- app/Locales/de_DE/translations.php | 9 ++++-- app/Locales/es_ES/translations.php | 9 ++++-- app/Locales/fi_FI/translations.php | 9 ++++-- app/Locales/fr_FR/translations.php | 9 ++++-- app/Locales/it_IT/translations.php | 9 ++++-- app/Locales/pl_PL/translations.php | 9 ++++-- app/Locales/pt_BR/translations.php | 9 ++++-- app/Locales/ru_RU/translations.php | 9 ++++-- app/Locales/sv_SE/translations.php | 9 ++++-- app/Locales/zh_CN/translations.php | 9 ++++-- app/Model/Base.php | 1 + app/Model/DateParser.php | 42 ++++++++++++++++++++++++ app/Model/SubTask.php | 1 + app/Model/Task.php | 10 +++--- app/Model/TaskExport.php | 20 +++++++----- app/Model/TaskValidator.php | 24 ++++++++++++++ app/Model/TimeTracking.php | 45 ++++++++++++++++++++++++++ app/Schema/Mysql.php | 12 ++++++- app/Schema/Postgres.php | 12 ++++++- app/Schema/Sqlite.php | 13 ++++++-- app/Templates/file_show.php | 38 ++++++++++++---------- app/Templates/subtask_create.php | 2 +- app/Templates/subtask_edit.php | 4 +-- app/Templates/subtask_show.php | 22 ------------- app/Templates/task_details.php | 15 +++++++++ app/Templates/task_new.php | 3 ++ app/Templates/task_public.php | 2 ++ app/Templates/task_show.php | 15 +++------ app/Templates/task_time.php | 15 +++++++++ app/Templates/task_timesheet.php | 13 ++++++++ app/helpers.php | 2 +- assets/css/app.css | 19 +++++------ tests/functionals.mysql.xml | 2 +- tests/functionals.postgres.xml | 2 +- tests/functionals.sqlite.xml | 2 +- tests/units.postgres.xml | 1 + tests/units/TimeTrackingTest.php | 44 ++++++++++++++++++++++++++ 41 files changed, 417 insertions(+), 116 deletions(-) create mode 100644 app/Model/TimeTracking.php create mode 100644 app/Templates/task_time.php create mode 100644 app/Templates/task_timesheet.php create mode 100644 tests/units/TimeTrackingTest.php diff --git a/Vagrantfile b/Vagrantfile index 94eb41b8e..ced296a12 100644 --- a/Vagrantfile +++ b/Vagrantfile @@ -6,7 +6,7 @@ VAGRANTFILE_API_VERSION = "2" $script = <