X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fgroup_edit.tpl;h=ea46bec6f3799105aff5946b85c39af9123d0741;hb=d6a5ffec0f76b9ab5b1ee4f8e69ecdb2afd7c0ff;hp=d2a9476ad796b48bdf2964bea700657fbd4788ae;hpb=873cee05ecd24aa9066b467b2c90132ee08a99a1;p=timetracker.git diff --git a/WEB-INF/templates/group_edit.tpl b/WEB-INF/templates/group_edit.tpl index d2a9476a..ea46bec6 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"; } } - - -// handlePluginCheckboxes - 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} @@ -127,6 +41,14 @@ function handlePluginCheckboxes() { {$i18n.label.configure} {/if} +{if $smarty.const.SUBGROUP_DEBUG == 'true'} + {if $user->can('manage_subgroups')} + + {$i18n.label.subgroups}: + {$i18n.label.configure} + + {/if} +{/if} {$i18n.label.language}: {$forms.groupForm.lang.control} @@ -197,60 +119,6 @@ function handlePluginCheckboxes() { } adjustDecimalPreview(); - - -   -   - - - - {$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} - {/if}