]> wagnertech.de Git - timetracker.git/commitdiff
Work on progress on report approval plugin.
authorNik Okuntseff <support@anuko.com>
Sun, 24 Feb 2019 17:33:22 +0000 (17:33 +0000)
committerNik Okuntseff <support@anuko.com>
Sun, 24 Feb 2019 17:33:22 +0000 (17:33 +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/plugins.tpl
plugins.php

index 8b3d5d6f71a3f616ebfa02454a7377dd61ec62d2..692fc35735311169b97e2a1e3bb680093672ef35 100644 (file)
@@ -270,6 +270,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Improve titles for consistency, so that each title explains correctly what each
index 17ea3e2610e8153f846acd766bee00844c7a9de7..55845055cd0405f805f948f94ffd4edaedcd361a 100644 (file)
@@ -280,6 +280,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Improve titles for consistency, so that each title explains correctly what each
index 2a786b143bfa99a9d4da3e28d21d93571f4afa20..11295b15242af7df579b0344ef729ad88d43f20d 100644 (file)
@@ -257,6 +257,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Fejl',
index 5e72116ba8a9b471b8cf777fa5f888ddadf713a3..99ec9086719a6d40d3613b3debd2870aceaf2230 100644 (file)
@@ -245,6 +245,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Fehler',
index 1fdd6111aedf5747ad73a1b82d5212571c3a2b6c..361b9d819b0ccaf0f15d8b3adb768df8e668bbe1 100644 (file)
@@ -235,6 +235,7 @@ $i18n_key_words = array(
 'label.timesheet' => 'Timesheet',
 'label.submitted' => 'Submitted',
 'label.approved' => 'Approved',
+'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Error',
index 559e3286cb92257361d59aa1306654dfbd574498..37ba0d2da763b85654f486273938ec3a1e4e5109 100644 (file)
@@ -273,6 +273,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index 71a1288c55aa1b48158a98aca56b0fb1fc5da2dd..0d514ba1637398d7bcedcead2786a2c7c0e49e8e 100644 (file)
@@ -260,6 +260,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Improve titles for consistency, so that each title explains correctly what each
index b5bed52c64b9bebdc848a62f15dd4eabd3601d22..f30109a04b32bde144392450e33377f2fdd276f0 100644 (file)
@@ -267,6 +267,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'خطا',
index c10ca5ea1ee68dd27e0b3a79bfa9a105d7ae2488..97065c45eacda5d7ba43bf63b67bdb68498b7893 100644 (file)
@@ -261,6 +261,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Virhe',
index b937b771b9a0b33a1a63dd12b94af33ee0054339..150e018f1cd8112e8b1259353f56d95fca48eeb1 100644 (file)
@@ -255,6 +255,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Erreur',
index c5e8d5e8619982ad1e2fd0068e0fc30aa7772d7b..28ebbe445deee982d47f30c43896cdf8b1710854 100644 (file)
@@ -248,6 +248,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Σφάλμα',
index b2a7dfd1c53d12775734bc3837c7230a13cde840..7dbb615c6ac4a91cbcde910c92b60c1355ab764b 100644 (file)
@@ -278,6 +278,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'שגיאה',
index f6bceaeeb38401837fb6123a830251cebcb3cec3..57cec891bfb9526c35939ffa18006ec5e3ba38cb 100644 (file)
@@ -274,6 +274,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index fc8a0815786a5b874f4745defbfb0366f0f9e145..92b17f59215ac8d79a767a248006c89af7287ca6 100644 (file)
@@ -252,6 +252,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Improve titles for consistency, so that each title explains correctly what each
index 7f83a7677458c85e0e16ad55657e2e0c561c1483..680cd280e5ca1f60835a55b47c08eb70646a9161 100644 (file)
@@ -279,6 +279,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index aa40a0945f3cb3c8230162ea77aeafe409b18bda..af3099ce4f1a8b5cfebb961ac80149f2d6ff393f 100644 (file)
@@ -279,6 +279,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index ee170ceed75e2071d2d6e5d63a83fa93496d1506..ce08d758591719dd5d5d17e40b5c3328b87ae7a9 100644 (file)
@@ -238,6 +238,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Fout',
index e43dad9b4ead760de1765c2f94f050bb68a26c47..3b6925d06ecd41c53f900982ea63000428d8dddd 100644 (file)
@@ -277,6 +277,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index 9b243eefa7f0f7abc7541ceeffe1399013dd60f5..27985c62de033f1153f18de0b0d3e0a9e226b129 100644 (file)
@@ -262,6 +262,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Błąd',
index 71fcef6f9f113c24d91b894743895b220e32d6c1..7afd6f8b48b0805d1954cec6e7da1ce080fb7301 100644 (file)
@@ -259,6 +259,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Erro',
index 0723acffa28d09b6e6d9e7cb489cd27e7eea0141..68173183925f14ea70ada7f7ff4ce6f5b1e6c2f1 100644 (file)
@@ -264,6 +264,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index b94bcd988cc53ccf891102d50f1590b7cb1b0725..e279672dec55f1af4d6b3032c1d4788e91b0b292 100644 (file)
@@ -277,6 +277,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Improve titles for consistency, so that each title explains correctly what each
index 19bedf9b418c8841711fd5a8541ab069f4d2f83c..6edbfbedff599ac18c6fd6b5cfdcb344d2685ff7 100644 (file)
@@ -234,6 +234,7 @@ $i18n_key_words = array(
 'label.timesheet' => 'Табель учёта',
 'label.submitted' => 'Подано',
 'label.approved' => 'Одобрено',
+'label.approval' => 'Одобрение отчётов',
 
 // Form titles.
 'title.error' => 'Ошибка',
index d3525c0d65b6ac43094286960e5e56b42437e0fa..f593a8ab070ef59ec622b4090904383ad11e5b1e 100644 (file)
@@ -267,6 +267,7 @@ $i18n_key_words = array(
 // 'label.quota' => 'Quota',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Chyba',
index fedc796ab6a5c9b9ac0097e1a06829daf81ffaaa..86695a4adb5f54e44e9179baef6e619ffe37ae8a 100644 (file)
@@ -260,6 +260,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index 229100788daad4d32841b8fdfa2a7cbf6ecd7d8a..3c8df92372c9c4183dbaebdc3fe31b50a485b87d 100644 (file)
@@ -260,6 +260,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 'title.error' => 'Greška',
index 480650e4af35b549fa6fe2c8bc19f1301b95a15f..516ab1300768033bc81c837156cdb9f22e3e9325 100644 (file)
@@ -256,6 +256,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Rubriker för formulär
 'title.error' => 'Fel',
index 87b44ca09a7263156b092f8926f0e882b7b202f2..7b926fd73316a5a4a811534094bbea8e1226c867 100644 (file)
@@ -283,6 +283,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // Form titles.
index 9d03e7b0fcddfca909373fa07e57c33f491468b7..57fc9ebe3e86631e873c9e7af2649cd689627aa1 100644 (file)
@@ -267,6 +267,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index e488dbd685ecacfce1b178cde4286761ae04af86..130683d2c924e4f8d311beaf61a78382d9678c37 100644 (file)
@@ -274,6 +274,7 @@ $i18n_key_words = array(
 // 'label.timesheet' => 'Timesheet',
 // 'label.submitted' => 'Submitted',
 // 'label.approved' => 'Approved',
+// 'label.approval' => 'Report approval',
 
 // Form titles.
 // TODO: Translate the following.
index 2ed9b3f0e430f9dac8463e7713174400a88770fd..2358030bea38e324581b7ad766a388fd87da2a64 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.43.4769 | 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.43.4770 | 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 e252e32a97e80485c127ace7460b98e122e1e21a..ce0cd52abc26e7a5c778c056a54658cafc2debec 100644 (file)
@@ -134,10 +134,16 @@ function handlePluginCheckboxes() {
             <td align="right" nowrap>{$forms.pluginsForm.work_units.control}</td>
             <td><label for="work_units">{$i18n.label.work_units}</label> <span id="work_units_config"><a href="work_units.php">{$i18n.label.configure}</a></span></td>
           </tr>
+{if isTrue('APPROVAL_DEBUG')}
+          <tr>
+            <td align="right" nowrap>{$forms.pluginsForm.approval.control}</td>
+            <td><label for="approval">{$i18n.label.approval}</label></td>
+          </tr>
+{/if}
 {if isTrue('TIMESHEET_DEBUG')}
           <tr>
             <td align="right" nowrap>{$forms.pluginsForm.timesheets.control}</td>
-            <td><label for="charts">{$i18n.title.timesheets}</label></td>
+            <td><label for="timesheets">{$i18n.title.timesheets}</label></td>
           </tr>
 {/if}
           <tr>
index 64615aa25563d03878f39442fbf66007c1324074..0981cb77abd848849c2d7fb26156ca518efb7431 100644 (file)
@@ -51,6 +51,7 @@ if ($request->isPost()) {
   $cl_quotas = $request->getParameter('quotas');
   $cl_week_view = $request->getParameter('week_view');
   $cl_work_units = $request->getParameter('work_units');
+  $cl_approval = $request->getParameter('approval');
   $cl_timesheets = $request->getParameter('timesheets');
 } else {
   // Note: we get here in get, and also in post when group changes.
@@ -69,6 +70,7 @@ if ($request->isPost()) {
   $cl_quotas = in_array('mq', $plugins);
   $cl_week_view = in_array('wv', $plugins);
   $cl_work_units = in_array('wu', $plugins);
+  $cl_approval = in_array('ap', $plugins);
   $cl_timesheets = in_array('ts', $plugins);
 }
 
@@ -88,6 +90,7 @@ $form->addInput(array('type'=>'checkbox','name'=>'locking','value'=>$cl_locking,
 $form->addInput(array('type'=>'checkbox','name'=>'quotas','value'=>$cl_quotas,'onchange'=>'handlePluginCheckboxes()'));
 $form->addInput(array('type'=>'checkbox','name'=>'week_view','value'=>$cl_week_view,'onchange'=>'handlePluginCheckboxes()'));
 $form->addInput(array('type'=>'checkbox','name'=>'work_units','value'=>$cl_work_units,'onchange'=>'handlePluginCheckboxes()'));
+$form->addInput(array('type'=>'checkbox','name'=>'approval','value'=>$cl_approval));
 $form->addInput(array('type'=>'checkbox','name'=>'timesheets','value'=>$cl_timesheets));
 // Submit button.
 $form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save')));
@@ -123,6 +126,8 @@ if ($request->isPost()) {
     $plugins .= ',wv';
   if ($cl_work_units)
     $plugins .= ',wu';
+  if ($cl_approval)
+    $plugins .= ',ap';
   if ($cl_timesheets)
     $plugins .= ',ts';