2 function chLocation(newLocation) { document.location = newLocation; }
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";
13 taskRequiredCheckbox.style.visibility = "hidden";
14 taskRequiredLabel.style.visibility = "hidden";
19 {$forms.groupForm.open}
21 {if $user->can('manage_basic_settings')}
22 {include file="datetime_format_preview.tpl"}
25 <table cellspacing="4" cellpadding="7" border="0">
28 <table cellspacing="1" cellpadding="2" border="0">
29 {if $user->can('manage_basic_settings')}
31 <td align="right" nowrap>{$i18n.label.group_name}:</td>
32 <td>{$forms.groupForm.group_name.control}</td>
35 <td align="right">{$i18n.label.currency}:</td>
36 <td>{$forms.groupForm.currency.control}</td>
38 {if $user->can('manage_roles')}
40 <td align="right" nowrap>{$i18n.label.roles}:</td>
41 <td><a href="roles.php">{$i18n.label.configure}</a></td>
45 <td align="right" nowrap>{$i18n.label.language}:</td>
46 <td>{$forms.groupForm.lang.control}</td>
49 <td align="right">{$i18n.label.decimal_mark}:</td>
50 <td>{$forms.groupForm.decimal_mark.control} <font id="decimal_preview" color="#777777"> </font></td>
52 <td align="right" nowrap>{$i18n.label.date_format}:</td>
53 <td>{$forms.groupForm.date_format.control} <font id="date_format_preview" color="#777777"> </font></td>
56 <td align="right" nowrap>{$i18n.label.time_format}:</td>
57 <td>{$forms.groupForm.time_format.control} <font id="time_format_preview" color="#777777"> </font></td>
60 <td align="right" nowrap>{$i18n.label.week_start}:</td>
61 <td>{$forms.groupForm.start_week.control}</td>
64 <td align="right" nowrap>{$i18n.form.group_edit.show_holidays}:</td>
65 <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>
68 <td align="right" nowrap>{$i18n.form.group_edit.tracking_mode}:</td>
69 <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>
72 <td align="right" nowrap>{$i18n.form.group_edit.record_type}:</td>
73 <td>{$forms.groupForm.record_type.control}</td>
76 <td align="right" nowrap>{$i18n.form.group_edit.punch_mode}:</td>
77 <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>
80 <td align="right" nowrap>{$i18n.form.group_edit.allow_overlap}:</td>
81 <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>
84 <td align="right" nowrap>{$i18n.form.group_edit.future_entries}:</td>
85 <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>
88 <td align="right" nowrap>{$i18n.form.group_edit.uncompleted_indicators}:</td>
89 <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>
91 {if $user->can('manage_advanced_settings')}
93 <td align="right" nowrap>{$i18n.label.bcc}:</td>
94 <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>
97 <td align="right" nowrap>{$i18n.form.group_edit.allow_ip}:</td>
98 <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>
101 {* initialize preview text *}
103 MakeFormatPreview("date_format_preview", document.getElementById("date_format"));
104 MakeFormatPreview("time_format_preview", document.getElementById("time_format"));
106 function adjustDecimalPreview()
108 var mark = document.getElementById("decimal_mark").value;
109 var example = document.getElementById("decimal_preview");
110 example.innerHTML = "<i>3"+mark+"14</i>";
112 adjustDecimalPreview();
117 <td colspan="2"> </td>
120 <td colspan="2" height="50" align="center">{$forms.groupForm.btn_save.control} {$forms.groupForm.btn_delete.control}</td>
126 {$forms.groupForm.close}