Added Work plugin option on the Plugins page.
[timetracker.git] / WEB-INF / templates / plugins.tpl
1 <script>
2 // handlePluginCheckboxes - controls visibility of controls.
3 function handlePluginCheckboxes() {
4   var clientsCheckbox = document.getElementById("clients");
5   var invoicesCheckbox = document.getElementById("invoices");
6   var requiredCheckbox = document.getElementById("client_required");
7   var requiredLabel = document.getElementById("client_required_label");
8   if (clientsCheckbox.checked) {
9     requiredCheckbox.style.visibility = "visible";
10     requiredLabel.style.visibility = "visible";
11     invoicesCheckbox.disabled = false;
12   } else {
13     requiredCheckbox.checked = false;
14     requiredCheckbox.style.visibility = "hidden";
15     requiredLabel.style.visibility = "hidden";
16     invoicesCheckbox.checked = false;
17     invoicesCheckbox.disabled = true;
18   }
19
20   var expensesCheckbox = document.getElementById("expenses");
21   var taxCheckbox = document.getElementById("tax_expenses");
22   var taxLabel = document.getElementById("tax_label");
23   if (expensesCheckbox.checked) {
24     taxCheckbox.style.visibility = "visible";
25     taxLabel.style.visibility = "visible";
26   } else {
27     taxCheckbox.checked = false;
28     taxCheckbox.style.visibility = "hidden";
29     taxLabel.style.visibility = "hidden";
30   }
31   var configureLabel = document.getElementById("expenses_conf");
32   var docLabel = null;
33   if (expensesCheckbox.checked) {
34     configureLabel.style.visibility = "visible";
35   } else {
36     configureLabel.style.visibility = "hidden";
37   }
38
39   var customFieldsCheckbox = document.getElementById("custom_fields");
40   configureLabel = document.getElementById("cf_conf");
41   if (customFieldsCheckbox.checked) {
42     configureLabel.style.visibility = "visible";
43   } else {
44     configureLabel.style.visibility = "hidden";
45   }
46
47   var notificationsCheckbox = document.getElementById("notifications");
48   configureLabel = document.getElementById("notifications_conf");
49   if (notificationsCheckbox.checked) {
50     configureLabel.style.visibility = "visible";
51   } else {
52     configureLabel.style.visibility = "hidden";
53   }
54
55   var lockingCheckbox = document.getElementById("locking");
56   configureLabel = document.getElementById("locking_conf");
57   if (lockingCheckbox.checked) {
58     configureLabel.style.visibility = "visible";
59   } else {
60     configureLabel.style.visibility = "hidden";
61   }
62
63   var quotasCheckbox = document.getElementById("quotas");
64   configureLabel = document.getElementById("quotas_conf");
65   if (quotasCheckbox.checked){
66     configureLabel.style.visibility = "visible";
67   } else {
68     configureLabel.style.visibility = "hidden";
69   }
70
71   var weekViewCheckbox = document.getElementById("week_view");
72   configureLabel = document.getElementById("week_view_conf");
73   if (weekViewCheckbox.checked){
74     configureLabel.style.visibility = "visible";
75   } else {
76     configureLabel.style.visibility = "hidden";
77   }
78
79   var workUnitsCheckbox = document.getElementById("work_units");
80   configureLabel = document.getElementById("work_units_conf");
81   if (workUnitsCheckbox.checked){
82     configureLabel.style.visibility = "visible";
83   } else {
84     configureLabel.style.visibility = "hidden";
85   }
86
87   var templatesCheckbox = document.getElementById("templates");
88   configureLabel = document.getElementById("templates_conf");
89   docLabel = document.getElementById("templates_doc");
90   if (templatesCheckbox.checked){
91     configureLabel.style.display = "";
92     docLabel.style.display = "none";
93   } else {
94     configureLabel.style.display = "none";
95     docLabel.style.display = "";
96   }
97 }
98 </script>
99
100 {$forms.pluginsForm.open}
101 <table cellspacing="4" cellpadding="7" border="0">
102     <tr>
103       <td>
104         <table cellspacing="1" cellpadding="2" border="0">
105           <tr>
106             <td align="right" nowrap>{$forms.pluginsForm.charts.control}</td>
107             <td><label for="charts">{$i18n.title.charts}</label></td>
108           </tr>
109           <tr>
110             <td align="right" nowrap>{$forms.pluginsForm.clients.control}</td>
111             <td><label for="clients">{$i18n.title.clients}</label> {$forms.pluginsForm.client_required.control} <span id="client_required_label"><label for="client_required">{$i18n.label.required}</label></span></td>
112           </tr>
113           <tr>
114             <td align="right" nowrap>{$forms.pluginsForm.invoices.control}</td>
115             <td><label for="invoices">{$i18n.title.invoices}</label></td>
116           </tr>
117           <tr>
118             <td align="right" nowrap>{$forms.pluginsForm.paid_status.control}</td>
119             <td><label for="paid_status">{$i18n.label.paid_status}</label></td>
120           </tr>
121           <tr>
122             <td align="right" nowrap>{$forms.pluginsForm.custom_fields.control}</td>
123             <td><label for="custom_fields">{$i18n.label.custom_fields}</label> <span id="cf_conf"><a href="cf_custom_fields.php">{$i18n.label.configure}</a></span></td>
124           </tr>
125           <tr>
126             <td align="right" nowrap>{$forms.pluginsForm.expenses.control}</td>
127             <td><label for="expenses">{$i18n.title.expenses}</label> {$forms.pluginsForm.tax_expenses.control} <span id="tax_label"><label for="tax_expenses">{$i18n.label.tax}</label></span> <span id="expenses_conf"><a href="predefined_expenses.php">{$i18n.label.configure}</a></span></td>
128           </tr>
129           <tr>
130             <td align="right" nowrap>{$forms.pluginsForm.notifications.control}</td>
131             <td><label for="notifications">{$i18n.title.notifications}</label> <span id="notifications_conf">{if $user_exists}<a href="notifications.php">{$i18n.label.configure}</a>{/if}</span></td>
132           </tr>
133           <tr>
134             <td align="right" nowrap>{$forms.pluginsForm.locking.control}</td>
135             <td><label for="locking">{$i18n.title.locking}</label> <span id="locking_conf"><a href="locking.php">{$i18n.label.configure}</a></span></td>
136           </tr>
137           <tr>
138             <td align="right" nowrap>{$forms.pluginsForm.quotas.control}</td>
139             <td><label for="quotas">{$i18n.label.monthly_quotas}</label> <span id="quotas_conf"><a href="quotas.php">{$i18n.label.configure}</a></span></td>
140           </tr>
141           <tr>
142             <td align="right" nowrap>{$forms.pluginsForm.week_view.control}</td>
143             <td><label for="week_view">{$i18n.label.week_view}</label> <span id="week_view_conf"><a href="week_view.php">{$i18n.label.configure}</a></span></td>
144           </tr>
145           <tr>
146             <td align="right" nowrap>{$forms.pluginsForm.work_units.control}</td>
147             <td><label for="work_units">{$i18n.label.work_units}</label> <span id="work_units_conf"><a href="work_units.php">{$i18n.label.configure}</a></span></td>
148           </tr>
149           <tr>
150             <td align="right" nowrap>{$forms.pluginsForm.approval.control}</td>
151             <td><label for="approval">{$i18n.label.approval}</label> <a href="https://www.anuko.com/lp/tt_28.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
152           </tr>
153           <tr>
154             <td align="right" nowrap>{$forms.pluginsForm.timesheets.control}</td>
155             <td><label for="timesheets">{$i18n.title.timesheets}</label> <a href="https://www.anuko.com/lp/tt_30.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
156           </tr>
157           <tr>
158             <td align="right" nowrap>{$forms.pluginsForm.templates.control}</td>
159             <td><label for="templates">{$i18n.title.templates}</label> <span id="templates_conf"><a href="templates.php">{$i18n.label.configure}</a></span> <span id="templates_doc"><a href="https://www.anuko.com/lp/tt_29.htm" target="_blank">{$i18n.label.what_is_it}</a></span></td>
160           </tr>
161           <tr>
162             <td align="right" nowrap>{$forms.pluginsForm.attachments.control}</td>
163             <td><label for="attachments">{$i18n.label.attachments}</label> <span id="attachments_doc"><a href="https://www.anuko.com/lp/tt_31.htm" target="_blank">{$i18n.label.what_is_it}</a></span></td>
164           </tr>
165           <tr>
166             <td align="right" nowrap>{$forms.pluginsForm.work.control}</td>
167             <td><label for="work">{$i18n.title.work}</label> <span id="work_doc"><a href="https://www.anuko.com/lp/tt_34.htm" target="_blank">{$i18n.label.what_is_it}</a></span></td>
168           </tr>
169           <tr>
170             <td colspan="2">&nbsp;</td>
171           </tr>
172           <tr>
173             <td colspan="2" height="50" align="center">{$forms.pluginsForm.btn_save.control}</td>
174           </tr>
175         </table>
176       </td>
177     </tr>
178 </table>
179 {$forms.pluginsForm.close}