]> wagnertech.de Git - timetracker.git/commitdiff
Resuming writing remote work plugin.
authorNik Okuntseff <support@anuko.com>
Sun, 21 Apr 2019 16:29:40 +0000 (16:29 +0000)
committerNik Okuntseff <support@anuko.com>
Sun, 21 Apr 2019 16:29:40 +0000 (16:29 +0000)
33 files changed:
WEB-INF/resources/ca.lang.php
WEB-INF/resources/cs.lang.php
WEB-INF/resources/da.lang.php
WEB-INF/resources/de.lang.php
WEB-INF/resources/en.lang.php
WEB-INF/resources/es.lang.php
WEB-INF/resources/et.lang.php
WEB-INF/resources/fa.lang.php
WEB-INF/resources/fi.lang.php
WEB-INF/resources/fr.lang.php
WEB-INF/resources/gr.lang.php
WEB-INF/resources/he.lang.php
WEB-INF/resources/hu.lang.php
WEB-INF/resources/it.lang.php
WEB-INF/resources/ja.lang.php
WEB-INF/resources/ko.lang.php
WEB-INF/resources/nl.lang.php
WEB-INF/resources/no.lang.php
WEB-INF/resources/pl.lang.php
WEB-INF/resources/pt-br.lang.php
WEB-INF/resources/pt.lang.php
WEB-INF/resources/ro.lang.php
WEB-INF/resources/ru.lang.php
WEB-INF/resources/sk.lang.php
WEB-INF/resources/sl.lang.php
WEB-INF/resources/sr.lang.php
WEB-INF/resources/sv.lang.php
WEB-INF/resources/tr.lang.php
WEB-INF/resources/zh-cn.lang.php
WEB-INF/resources/zh-tw.lang.php
WEB-INF/templates/footer.tpl
WEB-INF/templates/work.tpl
work_add.php [new file with mode: 0644]

index ff7a3a35d2d034fc51512aaef62b3f44366a8a6e..a49aef79717f2acdce819d6593117282a46af032 100644 (file)
@@ -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.
index 0143505b25bd7c10c7b5e117d5efff5ec565c05c..662b382e033b9e0a0d4ded5c1fc8b1ffa284849e 100644 (file)
@@ -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.
index 2d41a45e8a109564768527fcd717bcb11b18bd09..45d1790a3aa4b0329355f0ff656095ef49f35cab 100644 (file)
@@ -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.
index c050cfc9c49a380f51e2564d2ac960e875e26247..41ab5a6ebfc8beae0d6444ffadf30719e63594f1 100644 (file)
@@ -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.
index dd18c560adf92e4425e88be01898022ad457363d..49d502367afbe998a04b01131f4f3e2651e9ea8e 100644 (file)
@@ -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.
 
index 9e9b4af9b0d28a056d9e9b89a26ae5f3d4c9600c..b29bf3245bb4042269fc201b5bd47aae9a7da075 100644 (file)
@@ -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.
index 01b8702bfb89b217e47905b4495fde21369f317e..5c69d6b7eb09b633e7937e0eb6d8d18acf204482 100644 (file)
@@ -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.
index 7ec9e70de99f4f367d5b076c3b593d6a76392d64..a77c13c63e32121f668acc2858424603ab8bc29d 100644 (file)
@@ -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.
index 8f04168dcb0efc2fc4e211097abeb923f913488b..e0b6034912c0b222c0b119377af402dc74784b0f 100644 (file)
@@ -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.
index 6d74a9975d391408155e30450fd08c453cee2a5c..2fa1a4aff8d61790329485eace15c5ba56e7680a 100644 (file)
@@ -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.
index 71c875620879d0e17f641d1e3725a8f9f46ee698..3094dabda8ce63bc8884b15576a37f140a8a4180 100644 (file)
@@ -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.
index 0b8bf119c35370f8d402a8967b2077ac45b75aeb..820da036702ee69afba771248ae13aae258d78db 100644 (file)
@@ -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.
index 835ff96c30b04a023f0cce89c2abf31aaaf28d91..fdc0d02712aeb165f125a7a47abdbaca8c4f5477 100644 (file)
@@ -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.
index e3cf96d217b60fe52234fda031688faf9d1944e3..1340e251f9d89aef6466336792615bae62b5a516 100644 (file)
@@ -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.
index eb5a2347b873e311c57cdd82fa9a49dbad86e397..4336427865db76c38e86e00c149d0ca3b4255976 100644 (file)
@@ -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.
index 2eb2f776c49b16c286a67f47808ebf6af1a86ee4..e34f25f5f7c9dd38e7a170122046bf7d1f8cbfa9 100644 (file)
@@ -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.
index 91958bf195e1a42cfc665d647cd9216590fc18ae..bf4f3d5460c613d6a53535e5c6bef7221f8bd8ed 100644 (file)
@@ -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.
index a2f9cfac03c25b4090d857a297f7bd45863f3237..91de93ed93dea9169c7a735d18b7a41e0d846fe4 100644 (file)
@@ -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.
index 4fd5af42c5bc645d6b4ee0586feef5634363e539..3bfbf556c4650e0ccef82305c89f3720f963df0d 100644 (file)
@@ -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.
index 2d85a5b752d4bfcab9c9b6cdb078e458178d948b..829b3ec109e2a82012a39de9e63fdf7c7e8e4fb9 100644 (file)
@@ -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.
index 68f41f3ac68456fbbed5b438ca90f8c5001c59ee..3985b216ca987231dd76b7942e2c1f18e674a7c2 100644 (file)
@@ -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.
index 5c56da222a09c0673c1cd9608041e2e88ddb19e4..79aa92a94a7cc590785872b18f36f4b372adb316 100644 (file)
@@ -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.
index 9536114e831d4687ad328e127a73ab040c340cf7..4b240dbd9d4b2e76eda41054a575a40d1396757e 100644 (file)
@@ -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.
index 59c9b5ab01e114d62f94f6ef8e83644c9f28422a..b2dfe3524ea33756975251df54e2510ed722a4cb 100644 (file)
@@ -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.
index da43e50475aac4bfd4f52a4b4b3903d095e3e292..cd4a17dbdb57ce7859df116751f365e5d0785810 100644 (file)
@@ -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.
index 289c71cc1eeb74601b95cea0786fed0e57e0b373..05d32a685ac2ddc58bd2978e77ee2f667d1760c0 100644 (file)
@@ -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.
index 2a69ff3c294800286c3f73422c4dfee8168c2ae7..9f1a097244c216cf07a583a7e4557d833bcea739 100644 (file)
@@ -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.
index d50a396996269d41fa64c0280fa4c6da6ef57785..241c40d91eb1dbbea3b47e88daaba7f9c6180a02 100644 (file)
@@ -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.
index d80d920a18aaf3aac571997e500cc5af97a7f582..acda53b8802ed81bf2d98956dd0587043ffd6726 100644 (file)
@@ -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.
index c6e1bb4e458aff88382f0cb019286e7c344627b2..334551bc5e35eb6db17469b25636cfe4ee4a7add 100644 (file)
@@ -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.
index 2524785ee6e971987df2a821eca24965c436a684..bd10be9ec3a0f1cb3e024bb46f54325fd372f530 100644 (file)
@@ -12,7 +12,7 @@
       <br>
       <table cellspacing="0" cellpadding="4" width="100%" border="0">
         <tr>
-          <td align="center">&nbsp;Anuko Time Tracker 1.19.1.4967 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.19.1.4968 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
             <a href="https://www.anuko.com/lp/tt_4.htm" target="_blank">{$i18n.footer.credits}</a> |
             <a href="https://www.anuko.com/lp/tt_5.htm" target="_blank">{$i18n.footer.license}</a> |
             <a href="https://www.anuko.com/lp/tt_7.htm" target="_blank">{$i18n.footer.improve}</a>
index 359c385cb3d8bbb36b223d74ee67f4393494090d..af2a7c420ddc1c3d1d70773d1ee033a37b401399 100644 (file)
@@ -7,17 +7,19 @@
     <td valign="top">
 {if $user->can('manage_work')}
       <table cellspacing="1" cellpadding="3" border="0" width="100%">
+  {if $inactive_work}
         <tr><td class="sectionHeaderNoBorder">{$i18n.title.active_work}</td></tr>
+  {/if}
+  {if $active_work}
         <tr>
           <td width="35%" class="tableHeader">{$i18n.label.thing_name}</td>
           <td width="35%" class="tableHeader">{$i18n.label.description}</td>
-  {if $show_files}
+    {if $show_files}
           <td></td>
-  {/if}
+    {/if}
           <td></td>
           <td></td>
         </tr>
-  {if $active_work}
     {foreach $active_work as $work_item}
         <tr bgcolor="{cycle values="#f5f5f5,#ffffff"}">
           <td>{$work_item.name|escape}</td>
diff --git a/work_add.php b/work_add.php
new file mode 100644 (file)
index 0000000..2abe84d
--- /dev/null
@@ -0,0 +1,118 @@
+<?php
+// +----------------------------------------------------------------------+
+// | Anuko Time Tracker
+// +----------------------------------------------------------------------+
+// | Copyright (c) Anuko International Ltd. (https://www.anuko.com)
+// +----------------------------------------------------------------------+
+// | LIBERAL FREEWARE LICENSE: This source code document may be used
+// | by anyone for any purpose, and freely redistributed alone or in
+// | combination with other software, provided that the license is obeyed.
+// |
+// | There are only two ways to violate the license:
+// |
+// | 1. To redistribute this code in source form, with the copyright
+// |    notice or license removed or altered. (Distributing in compiled
+// |    forms without embedded copyright notices is permitted).
+// |
+// | 2. To redistribute modified versions of this code in *any* form
+// |    that bears insufficient indications that the modifications are
+// |    not the work of the original author(s).
+// |
+// | This license applies to this document only, not any other software
+// | that it may be combined with.
+// |
+// +----------------------------------------------------------------------+
+// | Contributors:
+// | https://www.anuko.com/time_tracker/credits.htm
+// +----------------------------------------------------------------------+
+
+require_once('initialize.php');
+import('form.Form');
+import('ttProjectHelper');
+import('ttGroupHelper');
+import('ttFileHelper');
+
+// Access checks.
+if (!ttAccessAllowed('manage_projects')) {
+  header('Location: access_denied.php');
+  exit();
+}
+if (MODE_PROJECTS != $user->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');