'title.week_view' => 'Week View',
'title.swap_roles' => 'Swapping Roles',
'title.work_units' => 'Work Units',
+'title.templates' => 'Templates',
// 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.
<br>
<table cellspacing="0" cellpadding="4" width="100%" border="0">
<tr>
- <td align="center"> Anuko Time Tracker 1.18.53.4833 | Copyright © <a href="https://www.anuko.com/lp/tt_3.htm" target="_blank">Anuko</a> |
+ <td align="center"> Anuko Time Tracker 1.18.53.4834 | Copyright © <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>
<td align="right" nowrap>{$forms.pluginsForm.timesheets.control}</td>
<td><label for="timesheets">{$i18n.title.timesheets}</label></td>
</tr>
+{if isTrue('TEMPLATES_DEBUG')}
+ <tr>
+ <td align="right" nowrap>{$forms.pluginsForm.templates.control}</td>
+ <td><label for="templates">{$i18n.title.templates}</label></td>
+ </tr>
+{/if}
<tr>
<td colspan="2"> </td>
</tr>
$cl_work_units = $request->getParameter('work_units');
$cl_approval = $request->getParameter('approval');
$cl_timesheets = $request->getParameter('timesheets');
+ $cl_templates = $request->getParameter('templates');
} else {
// Note: we get here in get, and also in post when group changes.
// Which plugins do we have enabled in currently selected group?
$cl_work_units = in_array('wu', $plugins);
$cl_approval = in_array('ap', $plugins);
$cl_timesheets = in_array('ts', $plugins);
+ $cl_templates = in_array('tp', $plugins);
}
$form = new Form('pluginsForm');
$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));
+if (isTrue('TEMPLATES_DEBUG')) {
+ $form->addInput(array('type'=>'checkbox','name'=>'templates','value'=>$cl_templates));
+}
// Submit button.
$form->addInput(array('type'=>'submit','name'=>'btn_save','value'=>$i18n->get('button.save')));
$plugins .= ',ap';
if ($cl_timesheets)
$plugins .= ',ts';
+ if ($cl_templates)
+ $plugins .= ',tp';
// Recycle week view plugin options as they are not configured on this page.
$existing_plugins = explode(',', $user->getPlugins());