<script>
+// handleRolesCheckbox - controls visibility of the Configure and What is it? links on the right.
+function handleRolesCheckbox() {
+ var rolesCheckbox = document.getElementById("roles");
+ var configureLabel = document.getElementById("roles_config");
+ var whatIsItLabel = document.getElementById("roles_what_is_it");
+ if (rolesCheckbox.checked) {
+ configureLabel.style.display = "inline";
+ whatIsItLabel.style.display = "none";
+ } else {
+ configureLabel.style.display = "none";
+ whatIsItLabel.style.display = "inline";
+ }
+}
+
+
// handleTaskRequiredCheckbox - controls visibility of the Task Required checkbox.
function handleTaskRequiredCheckbox() {
var taskRequiredCheckbox = document.getElementById("task_required");
} else {
configureLabel.style.visibility = "hidden";
}
+
+ var weekViewCheckbox = document.getElementById("week_view");
+ configureLabel = document.getElementById("week_view_config");
+ if (weekViewCheckbox.checked){
+ configureLabel.style.visibility = "visible";
+ } else {
+ configureLabel.style.visibility = "hidden";
+ }
}
</script>
<td>{$i18n.label.required_fields}</td>
</tr>
-{if $user->canManageTeam()}
+{if $user->isManager() || ($user->canManageTeam() && !defined(MANAGER_ONLY_TEAM_SETTINGS))}
<tr>
<td colspan="2"> </td>
</tr>
<td align="right">{$i18n.label.currency}:</td>
<td>{$forms.profileForm.currency.control}</td>
</tr>
+ {if defined(DEBUG_ROLES)}
+ <tr>
+ <td align="right" nowrap>{$i18n.label.roles}:</td>
+ <td>{$forms.profileForm.roles.control} <span id="roles_config"><a href="roles.php">{$i18n.label.configure}</a></span> <span id="roles_what_is_it"><a href="https://www.anuko.com/lp/tt_19.htm" target="_blank">{$i18n.label.what_is_it}</a></span></td>
+ </tr>
+ {/if}
<tr>
<td align="right" nowrap>{$i18n.label.language}:</td>
<td>{$forms.profileForm.lang.control}</td>
<td>{$forms.profileForm.decimal_mark.control} <font id="decimal_preview" color="#777777"> </font></td>
<tr>
<td align="right" nowrap>{$i18n.label.date_format}:</td>
- <td>{$forms.profileForm.format_date.control} <font id="date_format_preview" color="#777777"> </font></td>
+ <td>{$forms.profileForm.date_format.control} <font id="date_format_preview" color="#777777"> </font></td>
</tr>
<tr>
<td align="right" nowrap>{$i18n.label.time_format}:</td>
- <td>{$forms.profileForm.format_time.control} <font id="time_format_preview" color="#777777"> </font></td>
+ <td>{$forms.profileForm.time_format.control} <font id="time_format_preview" color="#777777"> </font></td>
</tr>
<tr>
<td align="right" nowrap>{$i18n.label.week_start}:</td>
<td>{$forms.profileForm.start_week.control}</td>
</tr>
+ <tr>
+ <td align="right" nowrap>{$i18n.form.profile.show_holidays}:</td>
+ <td>{$forms.profileForm.show_holidays.control} <a href="https://www.anuko.com/lp/tt_14.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+ </tr>
<tr>
<td align="right" nowrap>{$i18n.form.profile.tracking_mode}:</td>
- <td>{$forms.profileForm.tracking_mode.control} {$forms.profileForm.task_required.control} <span id="task_required_label"><label for="task_required">{$i18n.label.required}</label></span></td></td>
+ <td>{$forms.profileForm.tracking_mode.control} {$forms.profileForm.task_required.control} <span id="task_required_label"><label for="task_required">{$i18n.label.required}</label></span></td>
</tr>
<tr>
<td align="right" nowrap>{$i18n.form.profile.record_type}:</td>
<td>{$forms.profileForm.record_type.control}</td>
</tr>
+ <tr>
+ <td align="right" nowrap>{$i18n.form.profile.punch_mode}:</td>
+ <td>{$forms.profileForm.punch_mode.control} <a href="https://www.anuko.com/lp/tt_18.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+ </tr>
+ <tr>
+ <td align="right" nowrap>{$i18n.form.profile.allow_overlap}:</td>
+ <td>{$forms.profileForm.allow_overlap.control} <a href="https://www.anuko.com/lp/tt_16.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+ </tr>
+ <tr>
+ <td align="right" nowrap>{$i18n.form.profile.future_entries}:</td>
+ <td>{$forms.profileForm.future_entries.control} <a href="https://www.anuko.com/lp/tt_17.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
+ </tr>
<tr>
<td align="right" nowrap>{$i18n.form.profile.uncompleted_indicators}:</td>
- <td>{$forms.profileForm.uncompleted_indicators.control}</td>
+ <td>{$forms.profileForm.uncompleted_indicators.control} <a href="https://www.anuko.com/lp/tt_15.htm" target="_blank">{$i18n.label.what_is_it}</a></td>
</tr>
{if $user->isManager()}
<tr>
{/if}
{* initialize preview text *}
<script>
- MakeFormatPreview("date_format_preview", document.getElementById("format_date"));
- MakeFormatPreview("time_format_preview", document.getElementById("format_time"));
+ MakeFormatPreview("date_format_preview", document.getElementById("date_format"));
+ MakeFormatPreview("time_format_preview", document.getElementById("time_format"));
function adjustDecimalPreview()
{
<td align="right" nowrap>{$forms.profileForm.invoices.control}</td>
<td><label for="invoices">{$i18n.title.invoices}</label></td>
</tr>
-{if ($smarty.const.DEBUG_PAID_STATUS == 1)}
<tr>
<td align="right" nowrap>{$forms.profileForm.paid_status.control}</td>
<td><label for="paid_status">{$i18n.label.paid_status}</label></td>
</tr>
-{/if}
<tr>
<td align="right" nowrap>{$forms.profileForm.custom_fields.control}</td>
<td><label for="custom_fields">{$i18n.label.custom_fields}</label> <span id="cf_config"><a href="cf_custom_fields.php">{$i18n.label.configure}</a></span></td>
<td align="right" nowrap>{$forms.profileForm.quotas.control}</td>
<td><label for="quotas">{$i18n.label.monthly_quotas}</label> <span id="quotas_config"><a href="quotas.php">{$i18n.label.configure}</a></span></td>
</tr>
+ <tr>
+ <td align="right" nowrap>{$forms.profileForm.week_view.control}</td>
+ <td><label for="week_view">{$i18n.label.week_view}</label> <span id="week_view_config"><a href="week_view.php">{$i18n.label.configure}</a></span></td>
+ </tr>
{/if}
<tr>