From: Nik Okuntseff Date: Sun, 21 Apr 2019 16:29:40 +0000 (+0000) Subject: Resuming writing remote work plugin. X-Git-Tag: timetracker_1.19-1~62 X-Git-Url: http://wagnertech.de/git?p=timetracker.git;a=commitdiff_plain;h=2b90ff7edde48b64097c1bb60cde036b995c4220 Resuming writing remote work plugin. --- diff --git a/WEB-INF/resources/ca.lang.php b/WEB-INF/resources/ca.lang.php index ff7a3a35..a49aef79 100644 --- a/WEB-INF/resources/ca.lang.php +++ b/WEB-INF/resources/ca.lang.php @@ -389,6 +389,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/cs.lang.php b/WEB-INF/resources/cs.lang.php index 0143505b..662b382e 100644 --- a/WEB-INF/resources/cs.lang.php +++ b/WEB-INF/resources/cs.lang.php @@ -399,6 +399,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/da.lang.php b/WEB-INF/resources/da.lang.php index 2d41a45e..45d1790a 100644 --- a/WEB-INF/resources/da.lang.php +++ b/WEB-INF/resources/da.lang.php @@ -368,6 +368,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index c050cfc9..41ab5a6e 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -351,6 +351,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index dd18c560..49d50236 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -339,6 +339,9 @@ $i18n_key_words = array( 'title.delete_file' => 'Deleting File', 'title.download_file' => 'Downloading File', 'title.work' => 'Work', +'title.add_work' => 'Adding Work', +'title.edit_work' => 'Editing Work', +'title.delete_work' => 'Deleting Work', 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index 9e9b4af9..b29bf324 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -388,6 +388,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/et.lang.php b/WEB-INF/resources/et.lang.php index 01b8702b..5c69d6b7 100644 --- a/WEB-INF/resources/et.lang.php +++ b/WEB-INF/resources/et.lang.php @@ -373,6 +373,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index 7ec9e70d..a77c13c6 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -377,6 +377,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index 8f04168d..e0b60349 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -368,6 +368,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index 6d74a997..2fa1a4af 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -362,6 +362,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/gr.lang.php b/WEB-INF/resources/gr.lang.php index 71c87562..3094dabd 100644 --- a/WEB-INF/resources/gr.lang.php +++ b/WEB-INF/resources/gr.lang.php @@ -358,6 +358,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index 0b8bf119..820da036 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -387,6 +387,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/hu.lang.php b/WEB-INF/resources/hu.lang.php index 835ff96c..fdc0d027 100644 --- a/WEB-INF/resources/hu.lang.php +++ b/WEB-INF/resources/hu.lang.php @@ -388,6 +388,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/it.lang.php b/WEB-INF/resources/it.lang.php index e3cf96d2..1340e251 100644 --- a/WEB-INF/resources/it.lang.php +++ b/WEB-INF/resources/it.lang.php @@ -368,6 +368,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ja.lang.php b/WEB-INF/resources/ja.lang.php index eb5a2347..43364278 100644 --- a/WEB-INF/resources/ja.lang.php +++ b/WEB-INF/resources/ja.lang.php @@ -395,6 +395,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ko.lang.php b/WEB-INF/resources/ko.lang.php index 2eb2f776..e34f25f5 100644 --- a/WEB-INF/resources/ko.lang.php +++ b/WEB-INF/resources/ko.lang.php @@ -396,6 +396,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index 91958bf1..bf4f3d54 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -342,6 +342,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/no.lang.php b/WEB-INF/resources/no.lang.php index a2f9cfac..91de93ed 100644 --- a/WEB-INF/resources/no.lang.php +++ b/WEB-INF/resources/no.lang.php @@ -392,6 +392,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index 4fd5af42..3bfbf556 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -371,6 +371,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index 2d85a5b7..829b3ec1 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -366,6 +366,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/pt.lang.php b/WEB-INF/resources/pt.lang.php index 68f41f3a..3985b216 100644 --- a/WEB-INF/resources/pt.lang.php +++ b/WEB-INF/resources/pt.lang.php @@ -376,6 +376,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ro.lang.php b/WEB-INF/resources/ro.lang.php index 5c56da22..79aa92a9 100644 --- a/WEB-INF/resources/ro.lang.php +++ b/WEB-INF/resources/ro.lang.php @@ -394,6 +394,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index 9536114e..4b240dbd 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -336,6 +336,11 @@ $i18n_key_words = array( 'title.delete_file' => 'Удаление файла', 'title.download_file' => 'Скачивание файла', 'title.work' => 'Работа', +'title.add_work' => 'Добавление работы', +'title.edit_work' => 'Редактирование работы', +'title.delete_work' => 'Удаление работы', +'title.active_work' => 'Активная работа', +'title.inactive_work' => 'Неактивная работа', // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index 59c9b5ab..b2dfe352 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -376,6 +376,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sl.lang.php b/WEB-INF/resources/sl.lang.php index da43e504..cd4a17db 100644 --- a/WEB-INF/resources/sl.lang.php +++ b/WEB-INF/resources/sl.lang.php @@ -369,6 +369,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index 289c71cc..05d32a68 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -369,6 +369,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/sv.lang.php b/WEB-INF/resources/sv.lang.php index 2a69ff3c..9f1a0972 100644 --- a/WEB-INF/resources/sv.lang.php +++ b/WEB-INF/resources/sv.lang.php @@ -369,6 +369,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/tr.lang.php b/WEB-INF/resources/tr.lang.php index d50a3969..241c40d9 100644 --- a/WEB-INF/resources/tr.lang.php +++ b/WEB-INF/resources/tr.lang.php @@ -403,6 +403,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/zh-cn.lang.php b/WEB-INF/resources/zh-cn.lang.php index d80d920a..acda53b8 100644 --- a/WEB-INF/resources/zh-cn.lang.php +++ b/WEB-INF/resources/zh-cn.lang.php @@ -383,6 +383,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/resources/zh-tw.lang.php b/WEB-INF/resources/zh-tw.lang.php index c6e1bb4e..334551bc 100644 --- a/WEB-INF/resources/zh-tw.lang.php +++ b/WEB-INF/resources/zh-tw.lang.php @@ -389,6 +389,11 @@ $i18n_key_words = array( // 'title.delete_file' => 'Deleting File', // 'title.download_file' => 'Downloading File', // 'title.work' => 'Work', +// 'title.add_work' => 'Adding Work', +// 'title.edit_work' => 'Editing Work', +// 'title.delete_work' => 'Deleting Work', +// 'title.active_work' => 'Active Work', // Active work items this group outsources to other groups. +// 'title.inactive_work' => 'Inactive Work', // Inactive work items this group was outsourcing to other groups. // Section for common strings inside combo boxes on forms. Strings shared between forms shall be placed here. // Strings that are used in a single form must go to the specific form section. diff --git a/WEB-INF/templates/footer.tpl b/WEB-INF/templates/footer.tpl index 2524785e..bd10be9e 100644 --- a/WEB-INF/templates/footer.tpl +++ b/WEB-INF/templates/footer.tpl @@ -12,7 +12,7 @@
-
 Anuko Time Tracker 1.19.1.4967 | Copyright © Anuko | +  Anuko Time Tracker 1.19.1.4968 | Copyright © Anuko | {$i18n.footer.credits} | {$i18n.footer.license} | {$i18n.footer.improve} diff --git a/WEB-INF/templates/work.tpl b/WEB-INF/templates/work.tpl index 359c385c..af2a7c42 100644 --- a/WEB-INF/templates/work.tpl +++ b/WEB-INF/templates/work.tpl @@ -7,17 +7,19 @@ {if $user->can('manage_work')} + {if $inactive_work} + {/if} + {if $active_work} - {if $show_files} + {if $show_files} - {/if} + {/if} - {if $active_work} {foreach $active_work as $work_item} diff --git a/work_add.php b/work_add.php new file mode 100644 index 00000000..2abe84d5 --- /dev/null +++ b/work_add.php @@ -0,0 +1,118 @@ +getTrackingMode() && MODE_PROJECTS_AND_TASKS != $user->getTrackingMode()) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. + +$showFiles = $user->isPluginEnabled('at'); +$users = ttGroupHelper::getActiveUsers(); +foreach ($users as $user_item) + $all_users[$user_item['id']] = $user_item['name']; + +$tasks = ttGroupHelper::getActiveTasks(); +foreach ($tasks as $task_item) + $all_tasks[$task_item['id']] = $task_item['name']; +$show_tasks = MODE_PROJECTS_AND_TASKS == $user->getTrackingMode() && count($tasks) > 0; + +if ($request->isPost()) { + $cl_name = trim($request->getParameter('project_name')); + $cl_description = trim($request->getParameter('description')); + $cl_users = $request->getParameter('users', array()); + $cl_tasks = $request->getParameter('tasks', array()); +} else { + foreach ($users as $user_item) + $cl_users[] = $user_item['id']; + foreach ($tasks as $task_item) + $cl_tasks[] = $task_item['id']; +} + +$form = new Form('projectForm'); +$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'project_name','style'=>'width: 250px;','value'=>$cl_name)); +$form->addInput(array('type'=>'textarea','name'=>'description','style'=>'width: 250px; height: 40px;','value'=>$cl_description)); +if ($showFiles) + $form->addInput(array('type'=>'upload','name'=>'newfile','value'=>$i18n->get('button.submit'))); +$form->addInput(array('type'=>'checkboxgroup','name'=>'users','data'=>$all_users,'layout'=>'H','value'=>$cl_users)); +if ($show_tasks) + $form->addInput(array('type'=>'checkboxgroup','name'=>'tasks','data'=>$all_tasks,'layout'=>'H','value'=>$cl_tasks)); +$form->addInput(array('type'=>'submit','name'=>'btn_add','value'=>$i18n->get('button.add'))); + +if ($request->isPost()) { + // Validate user input. + if (!ttValidString($cl_name)) $err->add($i18n->get('error.field'), $i18n->get('label.thing_name')); + if (!ttValidString($cl_description, true)) $err->add($i18n->get('error.field'), $i18n->get('label.description')); + if (!ttGroupHelper::validateCheckboxGroupInput($cl_users, 'tt_users')) $err->add($i18n->get('error.field'), $i18n->get('label.users')); + if (!ttGroupHelper::validateCheckboxGroupInput($cl_tasks, 'tt_tasks')) $err->add($i18n->get('error.field'), $i18n->get('label.tasks')); + + if ($err->no()) { + if (!ttProjectHelper::getProjectByName($cl_name)) { + $id = ttProjectHelper::insert(array('name' => $cl_name, + 'description' => $cl_description, + 'users' => $cl_users, + 'tasks' => $cl_tasks, + 'status' => ACTIVE)); + + // Put a new file in storage if we have it. + if ($id && $showFiles && $_FILES['newfile']['name']) { + $fileHelper = new ttFileHelper($err); + $fields = array('entity_type'=>'project', + 'entity_id' => $id, + 'file_name' => $_FILES['newfile']['name']); + $fileHelper->putFile($fields); + } + if ($id) { + header('Location: projects.php'); + exit(); + } else + $err->add($i18n->get('error.db')); + } else + $err->add($i18n->get('error.object_exists')); + } +} // isPost + +$smarty->assign('forms', array($form->getName()=>$form->toArray())); +$smarty->assign('onload', 'onLoad="document.projectForm.project_name.focus()"'); +$smarty->assign('show_files', $showFiles); +$smarty->assign('show_users', count($users) > 0); +$smarty->assign('show_tasks', $show_tasks); +$smarty->assign('title', $i18n->get('title.add_work')); +$smarty->assign('content_page_name', 'project_add.tpl'); +$smarty->display('index.tpl');
{$i18n.title.active_work}
{$i18n.label.thing_name} {$i18n.label.description}
{$work_item.name|escape}