]> wagnertech.de Git - timetracker.git/commitdiff
Work in progress on configurable display options.
authorNik Okuntseff <support@anuko.com>
Sun, 14 Apr 2019 17:07:13 +0000 (17:07 +0000)
committerNik Okuntseff <support@anuko.com>
Sun, 14 Apr 2019 17:07:13 +0000 (17:07 +0000)
36 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/display_options.tpl [new file with mode: 0644]
WEB-INF/templates/footer.tpl
WEB-INF/templates/group_edit.tpl
display_options.php [new file with mode: 0644]
roles.php
week_view.php

index 8cf71c52bd3b69aa0148a016c6ea6a52e6db3242..b0b66f122814a26c832add26fc8f966845958f10 100644 (file)
@@ -574,6 +574,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -652,4 +653,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 004666c7652814b3661822f70e308c63e95b5a9c..8689ee122f641e5029a9e6aaa369374f2a80e28b 100644 (file)
@@ -587,6 +587,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -665,4 +666,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index c53d33df7fc31ea4fedf429ba057480d98409b6d..6c9b4b9036bada21e6feccf8c81230ce6a1dd1bd 100644 (file)
@@ -545,6 +545,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 timers',
 'form.group_edit.24_hours' => '24 timers',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Registrerings tilstand',
 'form.group_edit.mode_time' => 'Tid',
@@ -623,5 +624,9 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
 
index d5969a70f1396f76d16dd7b7b058d135e27d673c..c7e2225b36b0179628f38a7dde2a44e4582f0c24 100644 (file)
@@ -520,6 +520,8 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 Stunden',
 'form.group_edit.24_hours' => '24 Stunden',
+// TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 'form.group_edit.show_holidays' => 'Zeige Feiertage',
 'form.group_edit.tracking_mode' => 'Nachverfolgung',
 'form.group_edit.mode_time' => 'Zeit',
@@ -595,4 +597,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index a4db5945b8cdc3288445f0c86d155006095df8e1..001b6387bcead8042ed279cc7eb2cd53604fac20 100644 (file)
@@ -508,6 +508,7 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 hours',
 'form.group_edit.24_hours' => '24 hours',
+'form.group_edit.display_options' => 'Display options',
 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Tracking mode',
 'form.group_edit.mode_time' => 'time',
@@ -579,4 +580,7 @@ $i18n_key_words = array(
 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 26a2fa5b816f9c655ad6d0e8c397efa22269aad9..b22caf23478e670a326c6b2abab5b6f542bdd171 100644 (file)
@@ -588,6 +588,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 horas',
 'form.group_edit.24_hours' => '24 horas',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -667,4 +668,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 7b76db2e6a9cb9ae2a8f479679be25d00dc93f14..684d1799d4721e613dac3a9cfee013ebedf978e5 100644 (file)
@@ -549,6 +549,8 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 tundi',
 'form.group_edit.24_hours' => '24 tundi',
+// TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 'form.group_edit.show_holidays' => 'Näita pühi',
 'form.group_edit.tracking_mode' => 'Jälgimise režiim',
 'form.group_edit.mode_time' => 'ajaarvestus',
@@ -624,4 +626,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 79e96aaadc6979e9a195d7bab5405d125855b1e2..f1beb392e699a709b90c7cea6d87ecb076b69f4d 100644 (file)
@@ -568,6 +568,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 ساعت',
 'form.group_edit.24_hours' => '24 ساعت',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'حالت رهگیری',
 'form.group_edit.mode_time' => 'زمان',
@@ -647,4 +648,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 45a3b1a432126d0cfa4af34b3fff654d5ac6bc98..6c2a539d8e013379f1c0c4259fd78704cc356e52 100644 (file)
@@ -551,6 +551,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12-tuntinen',
 'form.group_edit.24_hours' => '24-tuntinen',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Seurantamuoto',
 'form.group_edit.mode_time' => 'aika',
@@ -629,4 +630,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 5b39587265e207e30009ab2dbd3b81d6e3f7bcc5..ea8e8973dccaf971e14ce2e5b28051e12cd147e1 100644 (file)
@@ -542,6 +542,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 heures',
 'form.group_edit.24_hours' => '24 heures',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Mode suivi',
 'form.group_edit.mode_time' => 'Heures',
@@ -619,4 +620,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 5b18358f315ef61b881da08cdb269f46dce40b34..745f054e53f7cb6db4055955f57fab807ed3ca1f 100644 (file)
@@ -529,6 +529,8 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 ώρες',
 'form.group_edit.24_hours' => '24 ώρες',
+// TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 'form.group_edit.show_holidays' => 'Προβολή διακοπών',
 'form.group_edit.tracking_mode' => 'Λειτουργία καταγραφής',
 'form.group_edit.mode_time' => 'χρόνος',
@@ -607,4 +609,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 02c24d6dea0b3df13c6bed1d1ac604faebf48868..670fe0a7c50ff085d997e07f1a22b9c1b263a928 100644 (file)
@@ -573,6 +573,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 שעות',
 'form.group_edit.24_hours' => '24 שעות',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'סוג מעקב',
 'form.group_edit.mode_time' => 'זמן',
@@ -651,4 +652,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index a7b899fa3ee375ecd0294182009a36cd23e68446..527b59a6c542e3484b804491fcda6fe8400fe126 100644 (file)
@@ -579,6 +579,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -657,4 +658,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 464a9978ba446a742c9a49aaee709d241f831cb3..55ef72b423f0413832e98d446b7112f5f5fc818e 100644 (file)
@@ -543,6 +543,8 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 ore',
 'form.group_edit.24_hours' => '24 ore',
+// TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 'form.group_edit.show_holidays' => 'Mostra vacanze',
 'form.group_edit.tracking_mode' => 'Modalità di registrazione',
 'form.group_edit.mode_time' => 'tempo',
@@ -621,4 +623,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 223581c6704e6cd7f815d8f04634e000caa22e00..a9325f5b6c825537c4eb0da017a1fcebb9c78e33 100644 (file)
@@ -582,6 +582,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -660,4 +661,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index ed85c0fd3f889e1ce4c47741c4bef0f066cac947..feb023fcf5d908db3e23d819517c7692c924b56b 100644 (file)
@@ -580,6 +580,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -658,4 +659,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index ce42aa218ad5cd7a93b28352b0099c6424411880..d368422fe85b5dd193a49cbea953a5f5fd3f601c 100644 (file)
@@ -503,6 +503,8 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 uurs',
 'form.group_edit.24_hours' => '24 uurs',
+// TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 'form.group_edit.show_holidays' => 'Toon vakantiedagen',
 'form.group_edit.tracking_mode' => 'Bijhouden',
 'form.group_edit.mode_time' => 'tijd',
@@ -574,4 +576,8 @@ $i18n_key_words = array(
 'form.timesheet_view.approve_body' => "Jouw tijdenoverzicht %s is goedgekeurd.<p>%s",
 'form.timesheet_view.disapprove_subject' => 'Tijdenoverzicht afgekeurd',
 'form.timesheet_view.disapprove_body' => "Jouw tijdenoverzicht %s is afgekeurd.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 5b747949c70a533081ce01963acd832e0a81d122..21fa63160ea4c28100ab075eda8d3ba181cf486b 100644 (file)
@@ -579,6 +579,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -657,4 +658,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index f8b6d171aa8296ed4247ee22e0d7635d27b8a294..9fe7ba99b97deb39449e554b5a9c281037ba16ff 100644 (file)
@@ -554,6 +554,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 godzin',
 'form.group_edit.24_hours' => '24 godziny',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Tryb śledzenia',
 'form.group_edit.mode_time' => 'czas',
@@ -632,4 +633,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 3aac39c6d2b29be80860ca46974d295b2ab300e9..81e46da1215dfab4388399023d3744464242adcb 100644 (file)
@@ -549,6 +549,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 horas',
 'form.group_edit.24_hours' => '24 horas',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Modo de acompanhamento',
 'form.group_edit.mode_time' => 'tempo',
@@ -627,4 +628,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index bd2bddf440d9569b25ecc8144e2cc2a173f21b1f..ee882f20cb4bb6a1c986fc5d0a54d5d4c11b8d47 100644 (file)
@@ -561,6 +561,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -639,4 +640,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index fced1beff01bacff5fe22439bc2dde4b958894aa..a8d12d4fed66404f5499853bca034a3f9ed96576 100644 (file)
@@ -582,6 +582,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -660,4 +661,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index bc86bbac032904bcac732f0ad6c2b9b0bd2f0d4a..c0a65ed390b1b1a644c90339945a4158df0f8c32 100644 (file)
@@ -499,6 +499,7 @@ $i18n_key_words = array(
 // Group Settings form. See example at https://timetracker.anuko.com/group_edit.php.
 'form.group_edit.12_hours' => '12 часов',
 'form.group_edit.24_hours' => '24 часа',
+'form.group_edit.display_options' => 'Опции отображения',
 'form.group_edit.show_holidays' => 'Показывать праздники',
 'form.group_edit.tracking_mode' => 'Режим работы',
 'form.group_edit.mode_time' => 'время',
@@ -570,4 +571,7 @@ $i18n_key_words = array(
 'form.timesheet_view.approve_body' => "Ваш табель %s одобрен.<p>%s",
 'form.timesheet_view.disapprove_subject' => 'Табель не одобрен',
 'form.timesheet_view.disapprove_body' => "Ваш табель %s не одобрен.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+'form.display_options.note_on_separate_row' => 'Комментарий в отдельном ряду',
 );
index ca952a6cc3891775aa382b4894f92e1744ab7a47..8fbf03a8cdcb83540a88e81fa2d9a673d8ee01de 100644 (file)
@@ -562,6 +562,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12-hodinový',
 'form.group_edit.24_hours' => '24-hodinový',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Režim sledovania',
 'form.group_edit.mode_time' => 'čas',
@@ -640,4 +641,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 9a8e59e105946cbb88f6e083ee1591b76fdd6704..9224b88948c1c1d3373001434322889c8ec076f3 100644 (file)
@@ -556,6 +556,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -634,4 +635,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index f7ca03f7789fc8a6411c02027d10e7084bfc5939..d4b250d67ec7d7a4d0be3885c8e28bb9393daf28 100644 (file)
@@ -552,6 +552,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12 časova',
 'form.group_edit.24_hours' => '24 časova',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Način evidencije',
 'form.group_edit.mode_time' => 'vreme',
@@ -630,4 +631,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index ebdbd5a6da0282a01e7107ecc0227a7fde4789eb..fd0fdf49094a7950dede760fe4d1e636a8d6ef3b 100644 (file)
@@ -549,6 +549,7 @@ $i18n_key_words = array(
 'form.group_edit.12_hours' => '12-timmars',
 'form.group_edit.24_hours' => '24-timmars',
 // TODO: translate the following.
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 'form.group_edit.tracking_mode' => 'Spårningsmetod',
 'form.group_edit.mode_time' => 'Endast tid',
@@ -627,4 +628,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 1f27d4bf19ed8fe6941fe7273feb9bc9a6578f95..2865e9aa2cbf78aa451d32e0f7a2bd6708a334fc 100644 (file)
@@ -595,6 +595,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -673,4 +674,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index 4246cae04e522f7fd2ee31346b3999840a04ca31..e9a8f487b0bd641815c68ad3d21d48dc9993ff52 100644 (file)
@@ -565,6 +565,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -643,4 +644,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
index fc3efcc5a9480e5ff2df325838ca655b04c68cf8..952b46a709508d198ba15380217af4ca6e8b0fcb 100644 (file)
@@ -572,6 +572,7 @@ $i18n_key_words = array(
 // TODO: translate the following.
 // 'form.group_edit.12_hours' => '12 hours',
 // 'form.group_edit.24_hours' => '24 hours',
+// 'form.group_edit.display_options' => 'Display options',
 // 'form.group_edit.show_holidays' => 'Show holidays',
 // 'form.group_edit.tracking_mode' => 'Tracking mode',
 // 'form.group_edit.mode_time' => 'time',
@@ -650,4 +651,8 @@ $i18n_key_words = array(
 // 'form.timesheet_view.approve_body' => "Your timesheet %s was approved.<p>%s",
 // 'form.timesheet_view.disapprove_subject' => 'Timesheet not approved',
 // 'form.timesheet_view.disapprove_body' => "Your timesheet %s was not approved.<p>%s",
+
+// Display Options form. See example at https://timetracker.anuko.com/display_options.php.
+// TODO: translate the following.
+// 'form.display_options.note_on_separate_row' => 'Note on separate row',
 );
diff --git a/WEB-INF/templates/display_options.tpl b/WEB-INF/templates/display_options.tpl
new file mode 100644 (file)
index 0000000..a4fe69e
--- /dev/null
@@ -0,0 +1,22 @@
+{$forms.displayOptionsForm.open}
+<table cellspacing="1" cellpadding="2" border="0">
+  <tr><td class="sectionHeaderNoBorder">{$i18n.title.time}</td></tr>
+  <tr>
+    <td><label for="time_note_on_separate_row">{$i18n.form.display_options.note_on_separate_row}:</label></td>
+    <td nowrap>{$forms.displayOptionsForm.time_note_on_separate_row.control} <a href="https://www.anuko.com/lp/tt_32.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+  </tr>
+  <tr>
+
+  <tr><td>&nbsp;</td></tr>
+  <tr><td class="sectionHeaderNoBorder">{$i18n.title.reports}</td></tr>
+  <tr>
+    <td><label for="report_note_on_separate_row">{$i18n.form.display_options.note_on_separate_row}:</label></td>
+    <td nowrap>{$forms.displayOptionsForm.report_note_on_separate_row.control} <a href="https://www.anuko.com/lp/tt_32.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+  </tr>
+
+  <tr><td>&nbsp;</td></tr>
+  <tr>
+    <td colspan="2" height="50" align="center">{$forms.displayOptionsForm.btn_save.control}</td>
+  </tr>
+</table>
+{$forms.displayOptionsForm.close}
index 8b7badc64003b1b5d7fcb2468adaa9d4ec75dab9..7bcd2359403601dc79fb2e54bef4e0657ed2ffcd 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.18.65.4936 | Copyright &copy; <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+          <td align="center">&nbsp;Anuko Time Tracker 1.18.65.4937 | 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 0565d763e89a5feb92da3ced40538deac85f04ba..9062278982dac1092b25862248fbda358548d4de 100644 (file)
@@ -48,7 +48,7 @@ function handleTaskRequiredCheckbox() {
   {if $user->can('manage_roles')}
           <tr>
             <td align="right" nowrap>{$i18n.label.roles}:</td>
-            <td><a href="roles.php?group_id={$group_id}">{$i18n.label.configure}</a></td>
+            <td><a href="roles.php">{$i18n.label.configure}</a></td>
           </tr>
   {/if}
           <tr>
@@ -70,6 +70,10 @@ function handleTaskRequiredCheckbox() {
             <td align="right" nowrap>{$i18n.label.week_start}:</td>
             <td>{$forms.groupForm.start_week.control}</td>
           </tr>
+          <tr>
+            <td align="right" nowrap>{$i18n.form.group_edit.display_options}:</td>
+            <td><a href="display_options.php">{$i18n.label.configure}</a></td>
+          </tr>
           <tr>
             <td align="right" nowrap>{$i18n.form.group_edit.show_holidays}:</td>
             <td>{$forms.groupForm.show_holidays.control} <a href="https://www.anuko.com/lp/tt_14.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
diff --git a/display_options.php b/display_options.php
new file mode 100644 (file)
index 0000000..222cc25
--- /dev/null
@@ -0,0 +1,84 @@
+<?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('ttConfigHelper');
+import('form.Form');
+
+// Access checks.
+if (!ttAccessAllowed('manage_basic_settings')) {
+  header('Location: access_denied.php');
+  exit();
+}
+// End of access checks.
+
+$config = new ttConfigHelper($user->getConfig());
+
+if ($request->isPost()) {
+  $cl_time_note_on_separate_row = trim($request->getParameter('time_note_on_separate_row'));
+  $cl_report_note_on_separate_row = trim($request->getParameter('report_note_on_separate_row'));
+} else {
+  $cl_time_note_on_separate_row = $config->getDefinedValue('time_note_on_separate_row');
+  $cl_report_note_on_separate_row = $config->getDefinedValue('report_note_on_separate_row');
+}
+
+$form = new Form('displayOptionsForm');
+// $form->addInput(array('type'=>'checkbox','name'=>'time_client','value'=>$cl_time_client));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_cf_1','value'=>$cl_time_cf_1));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_project','value'=>$cl_time_project));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_task','value'=>$cl_time_task));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_start','value'=>$cl_time_start));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_finish','value'=>$cl_time_finish));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_duration','value'=>$cl_time_duration));
+// $form->addInput(array('type'=>'checkbox','name'=>'time_note','value'=>$cl_time_note));
+$form->addInput(array('type'=>'checkbox','name'=>'time_note_on_separate_row','value'=>$cl_time_note_on_separate_row));
+// TODO: consider adding other fields (timesheet, work_units, invoice, approved, cost, paid)?
+
+// Reports.
+$form->addInput(array('type'=>'checkbox','name'=>'report_note_on_separate_row','value'=>$cl_report_note_on_separate_row));
+// TODO: add PDF break controller here.
+
+$form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save')));
+
+if ($request->isPost()){
+  if ($err->no()) {
+    // Update config.
+    $config->setDefinedValue('time_note_on_separate_row', $cl_time_note_on_separate_row);
+    $config->setDefinedValue('report_note_on_separate_row', $cl_report_note_on_separate_row);
+    if ($user->updateGroup(array('config' => $config->getConfig()))) {
+      header('Location: success.php');
+      exit();
+    } else
+      $err->add($i18n->get('error.db'));
+  }
+}
+
+$smarty->assign('forms', array($form->getName()=>$form->toArray()));
+$smarty->assign('title', $i18n->get('title.display_options'));
+$smarty->assign('content_page_name', 'display_options.tpl');
+$smarty->display('index.tpl');
index fe68329d36c27caba68a48bac622e5850a6068e0..cd17da3c48cc5aa9bd695a18822abb07a32708b9 100644 (file)
--- a/roles.php
+++ b/roles.php
@@ -36,19 +36,8 @@ if (!ttAccessAllowed('manage_roles')) {
   header('Location: access_denied.php');
   exit();
 }
-$group_id = (int)$request->getParameter('group_id');
-if ($group_id && !$user->isGroupValid($group_id)) {
-  header('Location: access_denied.php');
-  exit();
-}
 // End of access checks.
 
-if ($group_id) {
-  // We are passed a valid group_id (most likely from group_edit.php).
-  // Set on behalf group accordingly.
-  $user->setOnBehalfGroup($group_id);
-}
-
 $smarty->assign('active_roles', ttTeamHelper::getActiveRolesForUser());
 $smarty->assign('inactive_roles', ttTeamHelper::getInactiveRolesForUser());
 $smarty->assign('title', $i18n->get('title.roles'));
index 9f809af3cf7d151bb7a4539cb75e7fccb7379d55..0d369bf9bbcd7b7a9db0e7116d8ff5007ca10e0a 100644 (file)
@@ -34,10 +34,6 @@ if (!ttAccessAllowed('manage_advanced_settings')) {
   header('Location: access_denied.php');
   exit();
 }
-if (!$user->isPluginEnabled('wv')) {
-  header('Location: feature_disabled.php');
-  exit();
-}
 
 if ($request->isPost()) {
   $cl_week_note = $request->getParameter('week_note');