From: Nik Okuntseff Date: Sun, 17 Feb 2019 14:58:45 +0000 (+0000) Subject: Work in progress on adding timesheets. X-Git-Tag: timetracker_1.19-1~321 X-Git-Url: http://wagnertech.de/git?a=commitdiff_plain;h=e9a0449fe594cca8fa7645f02ae5365402d96259;p=timetracker.git Work in progress on adding timesheets. --- diff --git a/WEB-INF/resources/ca.lang.php b/WEB-INF/resources/ca.lang.php index 7526cdba..f129c9b3 100644 --- a/WEB-INF/resources/ca.lang.php +++ b/WEB-INF/resources/ca.lang.php @@ -339,6 +339,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/cs.lang.php b/WEB-INF/resources/cs.lang.php index e1dae902..d722cb92 100644 --- a/WEB-INF/resources/cs.lang.php +++ b/WEB-INF/resources/cs.lang.php @@ -350,6 +350,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/da.lang.php b/WEB-INF/resources/da.lang.php index ba4068c9..976d9f3f 100644 --- a/WEB-INF/resources/da.lang.php +++ b/WEB-INF/resources/da.lang.php @@ -316,6 +316,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Tilføj Meddelelse', 'title.edit_notification' => 'Redigér Meddelelse', 'title.delete_notification' => 'Slet Meddelelse', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Månedlig Kvota', 'title.export' => 'Eksporter Team Data', // TODO: replace "team" with "group". 'title.import' => 'Importer Team Data', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/de.lang.php b/WEB-INF/resources/de.lang.php index eead92b0..6ac1c034 100644 --- a/WEB-INF/resources/de.lang.php +++ b/WEB-INF/resources/de.lang.php @@ -299,6 +299,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Benachrichtigung hinzufügen', 'title.edit_notification' => 'Benachrichtigung bearbeiten', 'title.delete_notification' => 'Benachrichtigung löschen', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Monatliche Quoten', 'title.export' => 'Daten exportieren', 'title.import' => 'Daten importieren', diff --git a/WEB-INF/resources/en.lang.php b/WEB-INF/resources/en.lang.php index ef776cdf..5da77cb2 100644 --- a/WEB-INF/resources/en.lang.php +++ b/WEB-INF/resources/en.lang.php @@ -291,6 +291,9 @@ $i18n_key_words = array( 'title.add_notification' => 'Adding Notification', 'title.edit_notification' => 'Editing Notification', 'title.delete_notification' => 'Deleting Notification', +'title.add_timesheet' => 'Adding Timesheet', +'title.edit_timesheet' => 'Editing Timesheet', +'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exporting Group Data', 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/es.lang.php b/WEB-INF/resources/es.lang.php index 74fc9036..124bfed7 100644 --- a/WEB-INF/resources/es.lang.php +++ b/WEB-INF/resources/es.lang.php @@ -338,6 +338,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exportar datos', // TODO: Consider changing to exportando for consistency with other titles. 'title.import' => 'Importar datos', // TODO: Consider changing to importando for consistency with other titles. diff --git a/WEB-INF/resources/et.lang.php b/WEB-INF/resources/et.lang.php index 60cf19af..864fb91e 100644 --- a/WEB-INF/resources/et.lang.php +++ b/WEB-INF/resources/et.lang.php @@ -319,6 +319,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Teate lisamine', 'title.edit_notification' => 'Teate muutmine', 'title.delete_notification' => 'Teate kustutamine', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Kuu kvoot', 'title.export' => 'Grupi andmete alla laadimine', 'title.import' => 'Grupi andmete üles laadimine', diff --git a/WEB-INF/resources/fa.lang.php b/WEB-INF/resources/fa.lang.php index e4753822..501d9572 100644 --- a/WEB-INF/resources/fa.lang.php +++ b/WEB-INF/resources/fa.lang.php @@ -323,6 +323,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'پشتیانی گرفتن از اطلاعات تیم', // TODO: replace "team" with "group". 'title.import' => 'وارد کردن اطلاعات تیم', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/fi.lang.php b/WEB-INF/resources/fi.lang.php index 2c1af6a5..e400a941 100644 --- a/WEB-INF/resources/fi.lang.php +++ b/WEB-INF/resources/fi.lang.php @@ -317,6 +317,9 @@ $i18n_key_words = array( 'title.edit_notification' => 'Ilmoituksen muokkaus', 'title.delete_notification' => 'Ilmoituksen poisto', // TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Tiimitietojen vienti', // TODO: replace "team" with "group". 'title.import' => 'Tiimitietojen tunti', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/fr.lang.php b/WEB-INF/resources/fr.lang.php index e02ccbe7..3f411e9f 100644 --- a/WEB-INF/resources/fr.lang.php +++ b/WEB-INF/resources/fr.lang.php @@ -310,6 +310,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Ajout d\\\'une notification', 'title.edit_notification' => 'Modification d\\\'une notification', 'title.delete_notification' => 'Suppression d\\\'une notification', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Quotas mensuels', 'title.export' => 'Exportation des données', 'title.import' => 'Importation des données', diff --git a/WEB-INF/resources/gr.lang.php b/WEB-INF/resources/gr.lang.php index 12b31464..60b312a0 100644 --- a/WEB-INF/resources/gr.lang.php +++ b/WEB-INF/resources/gr.lang.php @@ -306,6 +306,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Προσθήκη ειδοποίησης', 'title.edit_notification' => 'Επεξεργασία ειδοποίησης', 'title.delete_notification' => 'Διαγραφή ειδοποίησης', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Μηνιαίες ποσοστώσεις', 'title.export' => 'Εξαγωγή δεδομένων ομάδας', 'title.import' => 'Εισαγωγή δεδομένων ομάδας', diff --git a/WEB-INF/resources/he.lang.php b/WEB-INF/resources/he.lang.php index 5dce3e0b..5cfe3f20 100644 --- a/WEB-INF/resources/he.lang.php +++ b/WEB-INF/resources/he.lang.php @@ -335,6 +335,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'ייצוא נתוני צוות', // TODO: replace "team" with "group". 'title.import' => 'ייבוא נתוני צוות', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/hu.lang.php b/WEB-INF/resources/hu.lang.php index 3d29edce..46d0bd6c 100644 --- a/WEB-INF/resources/hu.lang.php +++ b/WEB-INF/resources/hu.lang.php @@ -337,6 +337,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/it.lang.php b/WEB-INF/resources/it.lang.php index 97c14e0c..5215f7f6 100644 --- a/WEB-INF/resources/it.lang.php +++ b/WEB-INF/resources/it.lang.php @@ -315,6 +315,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Aggiunta notifica', 'title.edit_notification' => 'Modifica notifica', 'title.delete_notification' => 'Eliminazione notifica', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Quote mensili', 'title.export' => 'Esporta i dati del gruppo', 'title.import' => 'Importa i dati del gruppo', diff --git a/WEB-INF/resources/ja.lang.php b/WEB-INF/resources/ja.lang.php index b7764ba3..9c01727b 100644 --- a/WEB-INF/resources/ja.lang.php +++ b/WEB-INF/resources/ja.lang.php @@ -344,6 +344,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/ko.lang.php b/WEB-INF/resources/ko.lang.php index f2efa455..8d5aa443 100644 --- a/WEB-INF/resources/ko.lang.php +++ b/WEB-INF/resources/ko.lang.php @@ -345,6 +345,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/nl.lang.php b/WEB-INF/resources/nl.lang.php index 564b79a4..1e7146f6 100644 --- a/WEB-INF/resources/nl.lang.php +++ b/WEB-INF/resources/nl.lang.php @@ -294,6 +294,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Notificatie toevoegen', 'title.edit_notification' => 'Notificatie bewerken', 'title.delete_notification' => 'Notificatie verwijderen', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Doelen per maand', 'title.export' => 'Exporteer groepsgegevens', 'title.import' => 'Importeer groepsgegevens', diff --git a/WEB-INF/resources/no.lang.php b/WEB-INF/resources/no.lang.php index 35b9dc05..6a38cb2a 100644 --- a/WEB-INF/resources/no.lang.php +++ b/WEB-INF/resources/no.lang.php @@ -342,6 +342,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/pl.lang.php b/WEB-INF/resources/pl.lang.php index dedbd1fb..40167912 100644 --- a/WEB-INF/resources/pl.lang.php +++ b/WEB-INF/resources/pl.lang.php @@ -317,6 +317,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Dodawanie powiadomienia', 'title.edit_notification' => 'Edytowanie powiadomienia', 'title.delete_notification' => 'Usuwanie powiadomienia', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Eksport danych zespołu', // TODO: replace "team" with "group". 'title.import' => 'Import danych zespołu', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/pt-br.lang.php b/WEB-INF/resources/pt-br.lang.php index af366140..61f06f35 100644 --- a/WEB-INF/resources/pt-br.lang.php +++ b/WEB-INF/resources/pt-br.lang.php @@ -314,6 +314,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Adicionando notificação', 'title.edit_notification' => 'Editando notificação', 'title.delete_notification' => 'Apagando notificação', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exportando dados de equipe', // TODO: replace "team" with "group". 'title.import' => 'Importando dados de equipe', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/pt.lang.php b/WEB-INF/resources/pt.lang.php index f55e4226..09aa8b52 100644 --- a/WEB-INF/resources/pt.lang.php +++ b/WEB-INF/resources/pt.lang.php @@ -325,6 +325,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/ro.lang.php b/WEB-INF/resources/ro.lang.php index 9cc731f9..f8d711f3 100644 --- a/WEB-INF/resources/ro.lang.php +++ b/WEB-INF/resources/ro.lang.php @@ -345,6 +345,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/ru.lang.php b/WEB-INF/resources/ru.lang.php index e184ed66..6c172c33 100644 --- a/WEB-INF/resources/ru.lang.php +++ b/WEB-INF/resources/ru.lang.php @@ -290,6 +290,9 @@ $i18n_key_words = array( 'title.add_notification' => 'Добавление уведомления', 'title.edit_notification' => 'Редактирование уведомления', 'title.delete_notification' => 'Удаление уведомления', +'title.add_timesheet' => 'Добавление табеля', +'title.edit_timesheet' => 'Редактирование табеля', +'title.delete_timesheet' => 'Удаление табеля', 'title.monthly_quotas' => 'Месячные квоты', 'title.export' => 'Экспортирование данных группы', 'title.import' => 'Импортирование данных группы', diff --git a/WEB-INF/resources/sk.lang.php b/WEB-INF/resources/sk.lang.php index dac0f5ca..d79db843 100644 --- a/WEB-INF/resources/sk.lang.php +++ b/WEB-INF/resources/sk.lang.php @@ -325,6 +325,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Exportovanie údajov o tíme', // TODO: replace "team" with "group". 'title.import' => 'Importovanie údajov o tíme', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/sl.lang.php b/WEB-INF/resources/sl.lang.php index 4c3ba08b..d720907d 100644 --- a/WEB-INF/resources/sl.lang.php +++ b/WEB-INF/resources/sl.lang.php @@ -320,6 +320,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/sr.lang.php b/WEB-INF/resources/sr.lang.php index a10d95df..e5be1d81 100644 --- a/WEB-INF/resources/sr.lang.php +++ b/WEB-INF/resources/sr.lang.php @@ -315,6 +315,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Dodavanje napomene', 'title.edit_notification' => 'Izmena napomene', 'title.delete_notification' => 'Brisanje napomene', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', 'title.export' => 'Izvoz podataka tim-a', // TODO: replace "team" with "group". 'title.import' => 'Uvoz podataka tim-a', // TODO: replace "team" with "group". diff --git a/WEB-INF/resources/sv.lang.php b/WEB-INF/resources/sv.lang.php index bfa5e8dd..75a258dd 100644 --- a/WEB-INF/resources/sv.lang.php +++ b/WEB-INF/resources/sv.lang.php @@ -315,6 +315,10 @@ $i18n_key_words = array( 'title.add_notification' => 'Lägg till avisering', 'title.edit_notification' => 'Redigera avisering', 'title.delete_notification' => 'Ta bort avisering', +// TODO: translate the following. +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', 'title.monthly_quotas' => 'Månadskvoter', 'title.export' => 'Exportera grupp', 'title.import' => 'Importera grupp', diff --git a/WEB-INF/resources/tr.lang.php b/WEB-INF/resources/tr.lang.php index 73b8774a..b6b3aeb6 100644 --- a/WEB-INF/resources/tr.lang.php +++ b/WEB-INF/resources/tr.lang.php @@ -353,6 +353,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/zh-cn.lang.php b/WEB-INF/resources/zh-cn.lang.php index b0e63cfe..5eb65a7f 100644 --- a/WEB-INF/resources/zh-cn.lang.php +++ b/WEB-INF/resources/zh-cn.lang.php @@ -332,6 +332,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/resources/zh-tw.lang.php b/WEB-INF/resources/zh-tw.lang.php index 067b515f..68e50562 100644 --- a/WEB-INF/resources/zh-tw.lang.php +++ b/WEB-INF/resources/zh-tw.lang.php @@ -339,6 +339,9 @@ $i18n_key_words = array( // 'title.add_notification' => 'Adding Notification', // 'title.edit_notification' => 'Editing Notification', // 'title.delete_notification' => 'Deleting Notification', +// 'title.add_timesheet' => 'Adding Timesheet', +// 'title.edit_timesheet' => 'Editing Timesheet', +// 'title.delete_timesheet' => 'Deleting Timesheet', // 'title.monthly_quotas' => 'Monthly Quotas', // 'title.export' => 'Exporting Group Data', // 'title.import' => 'Importing Group Data', diff --git a/WEB-INF/templates/timesheet_add.tpl b/WEB-INF/templates/timesheet_add.tpl new file mode 100644 index 00000000..b475af0e --- /dev/null +++ b/WEB-INF/templates/timesheet_add.tpl @@ -0,0 +1,29 @@ +{$forms.timesheetForm.open} + + + + +
+ + + + + + + + + + + + + + + + + + + + +
{$i18n.label.thing_name} (*):{$forms.timesheetForm.timesheet_name.control}
{$i18n.label.comment}:{$forms.timesheetForm.submitter_comment.control}
{$i18n.label.required_fields}
 
{$forms.timesheetForm.btn_add.control}
+
+{$forms.timesheetForm.close} diff --git a/timesheet_add.php b/timesheet_add.php new file mode 100644 index 00000000..c52fea6a --- /dev/null +++ b/timesheet_add.php @@ -0,0 +1,80 @@ +isPluginEnabled('ts')) { + header('Location: feature_disabled.php'); + exit(); +} +// End of access checks. + +if ($request->isPost()) { + $cl_name = trim($request->getParameter('timesheet_name')); + $cl_comment = trim($request->getParameter('submitter_comment')); +} + +$form = new Form('timesheetForm'); +$form->addInput(array('type'=>'text','maxlength'=>'100','name'=>'timesheet_name','style'=>'width: 250px;','value'=>$cl_name)); +$form->addInput(array('type'=>'textarea','name'=>'submitter_comment','style'=>'width: 250px; height: 40px;','value'=>$cl_comment)); +$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_comment, true)) $err->add($i18n->get('error.field'), $i18n->get('label.comment')); + + if ($err->no()) { + /* + if (!ttProjectHelper::getProjectByName($cl_name)) { + if (ttProjectHelper::insert(array('name' => $cl_name, + 'description' => $cl_description, + 'users' => $cl_users, + 'tasks' => $cl_tasks, + 'status' => ACTIVE))) { + 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.timesheetForm.timmesheet_name.focus()"'); +$smarty->assign('title', $i18n->get('title.add_timesheet')); +$smarty->assign('content_page_name', 'timesheet_add.tpl'); +$smarty->display('index.tpl');