Adjusted charts.php for subgroups.
[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 isTrue($smarty.const.SUBGROUP_DEBUG)}
30 {if $user->can('manage_subgroups')}
31           <tr>
32             <td align="right" nowrap>{$i18n.label.group}:</td>
33             <td>{$forms.groupForm.group.control}</td>
34           </tr>
35 {/if}
36 {/if}
37 {if $user->can('manage_basic_settings')}
38           <tr>
39             <td align="right" nowrap>{$i18n.label.group_name} (*):</td>
40             <td>{$forms.groupForm.group_name.control}</td>
41           </tr>
42           <tr>
43             <td align = "right">{$i18n.label.description}:</td>
44             <td>{$forms.groupForm.description.control}</td>
45           </tr>
46           <tr>
47             <td align="right">{$i18n.label.currency}:</td>
48             <td>{$forms.groupForm.currency.control}</td>
49           </tr>
50   {if $user->can('manage_roles')}
51           <tr>
52             <td align="right" nowrap>{$i18n.label.roles}:</td>
53             <td><a href="roles.php?group_id={$group_id}">{$i18n.label.configure}</a></td>
54           </tr>
55   {/if}
56           <tr>
57            <td align="right" nowrap>{$i18n.label.language}:</td>
58            <td>{$forms.groupForm.lang.control}</td>
59           </tr>
60           <tr>
61             <td align="right">{$i18n.label.decimal_mark}:</td>
62             <td>{$forms.groupForm.decimal_mark.control} <font id="decimal_preview" color="#777777">&nbsp;</font></td>
63           <tr>
64             <td align="right" nowrap>{$i18n.label.date_format}:</td>
65             <td>{$forms.groupForm.date_format.control} <font id="date_format_preview" color="#777777">&nbsp;</font></td>
66           </tr>
67           <tr>
68             <td align="right" nowrap>{$i18n.label.time_format}:</td>
69             <td>{$forms.groupForm.time_format.control} <font id="time_format_preview" color="#777777">&nbsp;</font></td>
70           </tr>
71           <tr>
72             <td align="right" nowrap>{$i18n.label.week_start}:</td>
73             <td>{$forms.groupForm.start_week.control}</td>
74           </tr>
75           <tr>
76             <td align="right" nowrap>{$i18n.form.group_edit.show_holidays}:</td>
77             <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>
78           </tr>
79           <tr>
80             <td align="right" nowrap>{$i18n.form.group_edit.tracking_mode}:</td>
81             <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>
82           </tr>
83           <tr>
84             <td align="right" nowrap>{$i18n.form.group_edit.record_type}:</td>
85             <td>{$forms.groupForm.record_type.control}</td>
86           </tr>
87           <tr>
88             <td align="right" nowrap>{$i18n.form.group_edit.punch_mode}:</td>
89             <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>
90           </tr>
91           <tr>
92             <td align="right" nowrap>{$i18n.form.group_edit.allow_overlap}:</td>
93             <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>
94           </tr>
95           <tr>
96             <td align="right" nowrap>{$i18n.form.group_edit.future_entries}:</td>
97             <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>
98           </tr>
99           <tr>
100             <td align="right" nowrap>{$i18n.form.group_edit.uncompleted_indicators}:</td>
101             <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>
102           </tr>
103           <tr>
104             <td align="right" nowrap>{$i18n.form.group_edit.confirm_save}:</td>
105             <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>
106           </tr>
107   {if $user->can('manage_advanced_settings')}
108           <tr>
109             <td align="right" nowrap>{$i18n.label.bcc}:</td>
110             <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>
111           </tr>
112           <tr>
113             <td align="right" nowrap>{$i18n.form.group_edit.allow_ip}:</td>
114             <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>
115           </tr>
116           <tr>
117             <td></td>
118             <td>{$i18n.label.required_fields}</td>
119           </tr>
120   {/if}
121           {* initialize preview text *}
122           <script>
123             MakeFormatPreview("date_format_preview", document.getElementById("date_format"));
124             MakeFormatPreview("time_format_preview", document.getElementById("time_format"));
125
126             function adjustDecimalPreview()
127             {
128               var mark = document.getElementById("decimal_mark").value;
129               var example = document.getElementById("decimal_preview");
130               example.innerHTML = "<i>3"+mark+"14</i>";
131             }
132             adjustDecimalPreview();
133           </script>
134 {/if}
135
136           <tr>
137             <td colspan="2">&nbsp;</td>
138           </tr>
139           <tr>
140             <td colspan="2" height="50" align="center">{$forms.groupForm.btn_save.control} {$forms.groupForm.btn_delete.control}</td>
141           </tr>
142         </table>
143       </td>
144     </tr>
145 </table>
146 {$forms.groupForm.close}