X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fgroup_edit.tpl;h=8ccb258fd198fad285b3aceeed4420d74f98986d;hb=d27960ac5530c7c81b9adba85253b0e216f81476;hp=aba5ea61fd602ce55e82a9e69ab625041f3e0e5e;hpb=b262cc9f78e50e6910fefc1744782ddd64bbccda;p=timetracker.git diff --git a/WEB-INF/templates/group_edit.tpl b/WEB-INF/templates/group_edit.tpl index aba5ea61..8ccb258f 100644 --- a/WEB-INF/templates/group_edit.tpl +++ b/WEB-INF/templates/group_edit.tpl @@ -14,84 +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"; - } -} {$forms.groupForm.open} @@ -106,9 +28,13 @@ function handlePluginCheckboxes() {
{$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} | @@ -119,6 +45,14 @@ function handlePluginCheckboxes() {{$i18n.label.configure} |
{$i18n.label.subgroups}: | +{$i18n.label.configure} | +|
{$i18n.label.language}: | {$forms.groupForm.lang.control} | @@ -139,31 +73,31 @@ function handlePluginCheckboxes() {{$forms.groupForm.start_week.control} |
{$i18n.form.profile.show_holidays}: | +{$i18n.form.group_edit.show_holidays}: | {$forms.groupForm.show_holidays.control} {$i18n.label.what_is_it} |
{$i18n.form.profile.tracking_mode}: | +{$i18n.form.group_edit.tracking_mode}: | {$forms.groupForm.tracking_mode.control} {$forms.groupForm.task_required.control} |
{$i18n.form.profile.record_type}: | +{$i18n.form.group_edit.record_type}: | {$forms.groupForm.record_type.control} |
{$i18n.form.profile.punch_mode}: | +{$i18n.form.group_edit.punch_mode}: | {$forms.groupForm.punch_mode.control} {$i18n.label.what_is_it} |
{$i18n.form.profile.allow_overlap}: | +{$i18n.form.group_edit.allow_overlap}: | {$forms.groupForm.allow_overlap.control} {$i18n.label.what_is_it} |
{$i18n.form.profile.future_entries}: | +{$i18n.form.group_edit.future_entries}: | {$forms.groupForm.future_entries.control} {$i18n.label.what_is_it} |
{$i18n.form.profile.uncompleted_indicators}: | +{$i18n.form.group_edit.uncompleted_indicators}: | {$forms.groupForm.uncompleted_indicators.control} {$i18n.label.what_is_it} | {$forms.groupForm.bcc_email.control} {$i18n.label.what_is_it} |
{$i18n.form.profile.allow_ip}: | +{$i18n.form.group_edit.allow_ip}: | {$forms.groupForm.allow_ip.control} {$i18n.label.what_is_it} |
+ | {$i18n.label.required_fields} | +|
- | - | |
{$i18n.form.profile.plugins} | -||
{$forms.groupForm.charts.control} | -- | |
{$forms.groupForm.clients.control} | -{$forms.profileForm.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.profileForm.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} | -|