Added what is it link explaining report approval.
[timetracker.git] / WEB-INF / templates / group_edit.tpl
1 <script>
2 function chLocation(newLocation) { document.location = newLocation; }
3
4 // handleTaskRequiredCheckbox - controls visibility of the Task Required checkbox.
5 function handleTaskRequiredCheckbox() {
6   var taskRequiredCheckbox = document.getElementById("task_required");
7   var taskRequiredLabel = document.getElementById("task_required_label");
8   var trackingModeDropdown = document.getElementById("tracking_mode");
9   if (trackingModeDropdown.value == 2) {
10     taskRequiredCheckbox.style.visibility = "visible";
11     taskRequiredLabel.style.visibility = "visible";
12   } else {
13     taskRequiredCheckbox.style.visibility = "hidden";
14     taskRequiredLabel.style.visibility = "hidden";
15   }
16 }
17 </script>
18
19 {$forms.groupForm.open}
20
21 {if $user->can('manage_basic_settings')}
22 {include file="datetime_format_preview.tpl"}
23 {/if}
24
25 <table cellspacing="4" cellpadding="7" border="0">
26     <tr>
27       <td>
28         <table cellspacing="1" cellpadding="2" border="0">
29 {if $user->can('manage_subgroups') && $group_dropdown}
30           <tr>
31             <td align="right" nowrap>{$i18n.label.group}:</td>
32             <td>{$forms.groupForm.group.control}</td>
33           </tr>
34 {/if}
35 {if $user->can('manage_basic_settings')}
36           <tr>
37             <td align="right" nowrap>{$i18n.label.group_name} (*):</td>
38             <td>{$forms.groupForm.group_name.control}</td>
39           </tr>
40           <tr>
41             <td align = "right">{$i18n.label.description}:</td>
42             <td>{$forms.groupForm.description.control}</td>
43           </tr>
44           <tr>
45             <td align="right">{$i18n.label.currency}:</td>
46             <td>{$forms.groupForm.currency.control}</td>
47           </tr>
48   {if $user->can('manage_roles')}
49           <tr>
50             <td align="right" nowrap>{$i18n.label.roles}:</td>
51             <td><a href="roles.php?group_id={$group_id}">{$i18n.label.configure}</a></td>
52           </tr>
53   {/if}
54           <tr>
55            <td align="right" nowrap>{$i18n.label.language}:</td>
56            <td>{$forms.groupForm.lang.control}</td>
57           </tr>
58           <tr>
59             <td align="right">{$i18n.label.decimal_mark}:</td>
60             <td>{$forms.groupForm.decimal_mark.control} <font id="decimal_preview" color="#777777">&nbsp;</font></td>
61           <tr>
62             <td align="right" nowrap>{$i18n.label.date_format}:</td>
63             <td>{$forms.groupForm.date_format.control} <font id="date_format_preview" color="#777777">&nbsp;</font></td>
64           </tr>
65           <tr>
66             <td align="right" nowrap>{$i18n.label.time_format}:</td>
67             <td>{$forms.groupForm.time_format.control} <font id="time_format_preview" color="#777777">&nbsp;</font></td>
68           </tr>
69           <tr>
70             <td align="right" nowrap>{$i18n.label.week_start}:</td>
71             <td>{$forms.groupForm.start_week.control}</td>
72           </tr>
73           <tr>
74             <td align="right" nowrap>{$i18n.form.group_edit.show_holidays}:</td>
75             <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>
76           </tr>
77           <tr>
78             <td align="right" nowrap>{$i18n.form.group_edit.tracking_mode}:</td>
79             <td>{$forms.groupForm.tracking_mode.control} {$forms.groupForm.task_required.control} <span id="task_required_label"><label for="task_required">{$i18n.label.required}</label></span></td>
80           </tr>
81           <tr>
82             <td align="right" nowrap>{$i18n.form.group_edit.record_type}:</td>
83             <td>{$forms.groupForm.record_type.control}</td>
84           </tr>
85           <tr>
86             <td align="right" nowrap>{$i18n.form.group_edit.punch_mode}:</td>
87             <td>{$forms.groupForm.punch_mode.control} <a href="https://www.anuko.com/lp/tt_18.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
88           </tr>
89           <tr>
90             <td align="right" nowrap>{$i18n.form.group_edit.allow_overlap}:</td>
91             <td>{$forms.groupForm.allow_overlap.control} <a href="https://www.anuko.com/lp/tt_16.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
92           </tr>
93           <tr>
94             <td align="right" nowrap>{$i18n.form.group_edit.future_entries}:</td>
95             <td>{$forms.groupForm.future_entries.control} <a href="https://www.anuko.com/lp/tt_17.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
96           </tr>
97           <tr>
98             <td align="right" nowrap>{$i18n.form.group_edit.uncompleted_indicators}:</td>
99             <td>{$forms.groupForm.uncompleted_indicators.control} <a href="https://www.anuko.com/lp/tt_15.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
100           </tr>
101           <tr>
102             <td align="right" nowrap>{$i18n.form.group_edit.confirm_save}:</td>
103             <td>{$forms.groupForm.confirm_save.control} <a href="https://www.anuko.com/lp/tt_26.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
104           </tr>
105   {if $user->can('manage_advanced_settings')}
106           <tr>
107             <td align="right" nowrap>{$i18n.label.bcc}:</td>
108             <td>{$forms.groupForm.bcc_email.control} <a href="https://www.anuko.com/lp/tt_10.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
109           </tr>
110           <tr>
111             <td align="right" nowrap>{$i18n.form.group_edit.allow_ip}:</td>
112             <td>{$forms.groupForm.allow_ip.control} <a href="https://www.anuko.com/lp/tt_21.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
113           </tr>
114           <tr>
115             <td></td>
116             <td>{$i18n.label.required_fields}</td>
117           </tr>
118   {/if}
119           {* initialize preview text *}
120           <script>
121             MakeFormatPreview("date_format_preview", document.getElementById("date_format"));
122             MakeFormatPreview("time_format_preview", document.getElementById("time_format"));
123
124             function adjustDecimalPreview()
125             {
126               var mark = document.getElementById("decimal_mark").value;
127               var example = document.getElementById("decimal_preview");
128               example.innerHTML = "<i>3"+mark+"14</i>";
129             }
130             adjustDecimalPreview();
131           </script>
132 {/if}
133
134           <tr>
135             <td colspan="2">&nbsp;</td>
136           </tr>
137           <tr>
138             <td colspan="2" height="50" align="center">{$forms.groupForm.btn_save.control} {$forms.groupForm.btn_delete.control}</td>
139           </tr>
140         </table>
141       </td>
142     </tr>
143 </table>
144 {$forms.groupForm.close}