X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fgroup_edit.tpl;h=a68e28eb8d4c6766b919f2f5247a6c6a069fda52;hb=9819bb63bec83c13dd40ebb2ffc24df5fcfeda33;hp=dd059114cdb50dca9c99fce62660b1759df0f4c1;hpb=99041558bf625b082fc5058a93e1bd2634c2c9d2;p=timetracker.git diff --git a/WEB-INF/templates/group_edit.tpl b/WEB-INF/templates/group_edit.tpl index dd059114..a68e28eb 100644 --- a/WEB-INF/templates/group_edit.tpl +++ b/WEB-INF/templates/group_edit.tpl @@ -14,92 +14,6 @@ function handleTaskRequiredCheckbox() { taskRequiredLabel.style.visibility = "hidden"; } } - - -// handleControls - controls visibility of controls. -function handlePluginCheckboxes() { - var clientsCheckbox = document.getElementById("clients"); - var invoicesCheckbox = document.getElementById("invoices"); - var requiredCheckbox = document.getElementById("client_required"); - var requiredLabel = document.getElementById("client_required_label"); - if (clientsCheckbox.checked) { - requiredCheckbox.style.visibility = "visible"; - requiredLabel.style.visibility = "visible"; - invoicesCheckbox.disabled = false; - } else { - requiredCheckbox.checked = false; - requiredCheckbox.style.visibility = "hidden"; - requiredLabel.style.visibility = "hidden"; - invoicesCheckbox.checked = false; - invoicesCheckbox.disabled = true; - } - - var expensesCheckbox = document.getElementById("expenses"); - var taxCheckbox = document.getElementById("tax_expenses"); - var taxLabel = document.getElementById("tax_label"); - if (expensesCheckbox.checked) { - taxCheckbox.style.visibility = "visible"; - taxLabel.style.visibility = "visible"; - } else { - taxCheckbox.checked = false; - taxCheckbox.style.visibility = "hidden"; - taxLabel.style.visibility = "hidden"; - } - var configureLabel = document.getElementById("expenses_config"); - if (expensesCheckbox.checked) { - configureLabel.style.visibility = "visible"; - } else { - configureLabel.style.visibility = "hidden"; - } - - var customFieldsCheckbox = document.getElementById("custom_fields"); - configureLabel = document.getElementById("cf_config"); - if (customFieldsCheckbox.checked) { - configureLabel.style.visibility = "visible"; - } else { - configureLabel.style.visibility = "hidden"; - } - - var notificationsCheckbox = document.getElementById("notifications"); - configureLabel = document.getElementById("notifications_config"); - if (notificationsCheckbox.checked) { - configureLabel.style.visibility = "visible"; - } else { - configureLabel.style.visibility = "hidden"; - } - - var lockingCheckbox = document.getElementById("locking"); - configureLabel = document.getElementById("locking_config"); - if (lockingCheckbox.checked) { - configureLabel.style.visibility = "visible"; - } else { - configureLabel.style.visibility = "hidden"; - } - - var quotasCheckbox = document.getElementById("quotas"); - configureLabel = document.getElementById("quotas_config"); - if (quotasCheckbox.checked){ - configureLabel.style.visibility = "visible"; - } 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"; - } - - var workUnitsCheckbox = document.getElementById("work_units"); - configureLabel = document.getElementById("work_units_config"); - if (workUnitsCheckbox.checked){ - configureLabel.style.visibility = "visible"; - } else { - configureLabel.style.visibility = "hidden"; - } -} {$forms.groupForm.open} @@ -112,11 +26,21 @@ function handlePluginCheckboxes() { +{if $user->can('manage_subgroups') && $group_dropdown} + + + + +{/if} {if $user->can('manage_basic_settings')} - + + + + + @@ -146,10 +70,18 @@ function handlePluginCheckboxes() { + + + + + + + + @@ -174,6 +106,10 @@ function handlePluginCheckboxes() { + + + + {if $user->can('manage_advanced_settings')} @@ -183,6 +119,10 @@ function handlePluginCheckboxes() { + + + + {/if} {* initialize preview text *} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - {if defined('WORK_UNITS_DEBUG')} - - - - - {/if} {/if}
{$i18n.label.group}:{$forms.groupForm.group.control}
{$i18n.label.group_name}:{$i18n.label.group_name} (*): {$forms.groupForm.group_name.control}
{$i18n.label.description}:{$forms.groupForm.description.control}
{$i18n.label.currency}: {$forms.groupForm.currency.control}{$i18n.label.week_start}: {$forms.groupForm.start_week.control}
{$i18n.form.group_edit.display_options}:{$i18n.label.configure}
{$i18n.form.group_edit.show_holidays}: {$forms.groupForm.show_holidays.control} {$i18n.label.what_is_it}
{$i18n.form.group_edit.holidays}:{$forms.groupForm.holidays.control} {$i18n.label.what_is_it}
{$i18n.form.group_edit.tracking_mode}: {$forms.groupForm.tracking_mode.control} {$forms.groupForm.task_required.control} {$i18n.form.group_edit.uncompleted_indicators}: {$forms.groupForm.uncompleted_indicators.control} {$i18n.label.what_is_it}
{$i18n.form.group_edit.confirm_save}:{$forms.groupForm.confirm_save.control} {$i18n.label.what_is_it}
{$i18n.label.bcc}:{$i18n.form.group_edit.allow_ip}: {$forms.groupForm.allow_ip.control} {$i18n.label.what_is_it}
{$i18n.label.required_fields}
  
{$i18n.form.group_edit.plugins}
 
{$forms.groupForm.charts.control}
{$forms.groupForm.clients.control} {$forms.groupForm.client_required.control}
{$forms.groupForm.invoices.control}
{$forms.groupForm.paid_status.control}
{$forms.groupForm.custom_fields.control} {$i18n.label.configure}
{$forms.groupForm.expenses.control} {$forms.groupForm.tax_expenses.control} {$i18n.label.configure}
{$forms.groupForm.notifications.control} {$i18n.label.configure}
{$forms.groupForm.locking.control} {$i18n.label.configure}
{$forms.groupForm.quotas.control} {$i18n.label.configure}
{$forms.groupForm.week_view.control} {$i18n.label.configure}
{$forms.groupForm.work_units.control} {$i18n.label.configure}