X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fgroup_edit.tpl;h=db66201c57cbef885f14a2618e8ff1ab0e1ceb77;hb=47676f16efdde0b36a4ed09d2ab0476584aeb2a6;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..db66201c 100644 --- a/WEB-INF/templates/group_edit.tpl +++ b/WEB-INF/templates/group_edit.tpl @@ -91,6 +91,14 @@ function handlePluginCheckboxes() { } 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"; + } } @@ -139,31 +147,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} {if $user->can('manage_advanced_settings')} @@ -172,7 +180,7 @@ function handlePluginCheckboxes() { {$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} {/if} @@ -196,7 +204,7 @@ function handlePluginCheckboxes() { - {$i18n.form.profile.plugins} + {$i18n.form.group_edit.plugins}   @@ -205,7 +213,7 @@ function handlePluginCheckboxes() { {$forms.groupForm.clients.control} - {$forms.profileForm.client_required.control} + {$forms.groupForm.client_required.control} {$forms.groupForm.invoices.control} @@ -221,7 +229,7 @@ function handlePluginCheckboxes() { {$forms.groupForm.expenses.control} - {$forms.profileForm.tax_expenses.control} {$i18n.label.configure} + {$forms.groupForm.tax_expenses.control} {$i18n.label.configure} {$forms.groupForm.notifications.control} @@ -239,6 +247,10 @@ function handlePluginCheckboxes() { {$forms.groupForm.week_view.control} {$i18n.label.configure} + + {$forms.groupForm.work_units.control} + {$i18n.label.configure} + {/if}