X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fplugins.tpl;h=a88d3e8d604a563da2031256927b9b7f0dab5474;hb=45ca7d2258832cb0d2465eb16dd646d925458106;hp=34e7ab2b28ca0c5913799e2ac09c4191f1a4b13f;hpb=89a5c1982ce74075e74a814c170e3d87563d5c47;p=timetracker.git diff --git a/WEB-INF/templates/plugins.tpl b/WEB-INF/templates/plugins.tpl index 34e7ab2b..a88d3e8d 100644 --- a/WEB-INF/templates/plugins.tpl +++ b/WEB-INF/templates/plugins.tpl @@ -28,7 +28,8 @@ function handlePluginCheckboxes() { taxCheckbox.style.visibility = "hidden"; taxLabel.style.visibility = "hidden"; } - var configureLabel = document.getElementById("expenses_config"); + var configureLabel = document.getElementById("expenses_conf"); + var docLabel = null; if (expensesCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -36,7 +37,7 @@ function handlePluginCheckboxes() { } var customFieldsCheckbox = document.getElementById("custom_fields"); - configureLabel = document.getElementById("cf_config"); + configureLabel = document.getElementById("cf_conf"); if (customFieldsCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -44,7 +45,7 @@ function handlePluginCheckboxes() { } var notificationsCheckbox = document.getElementById("notifications"); - configureLabel = document.getElementById("notifications_config"); + configureLabel = document.getElementById("notifications_conf"); if (notificationsCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -52,7 +53,7 @@ function handlePluginCheckboxes() { } var lockingCheckbox = document.getElementById("locking"); - configureLabel = document.getElementById("locking_config"); + configureLabel = document.getElementById("locking_conf"); if (lockingCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -60,7 +61,7 @@ function handlePluginCheckboxes() { } var quotasCheckbox = document.getElementById("quotas"); - configureLabel = document.getElementById("quotas_config"); + configureLabel = document.getElementById("quotas_conf"); if (quotasCheckbox.checked){ configureLabel.style.visibility = "visible"; } else { @@ -68,7 +69,7 @@ function handlePluginCheckboxes() { } var weekViewCheckbox = document.getElementById("week_view"); - configureLabel = document.getElementById("week_view_config"); + configureLabel = document.getElementById("week_view_conf"); if (weekViewCheckbox.checked){ configureLabel.style.visibility = "visible"; } else { @@ -76,12 +77,23 @@ function handlePluginCheckboxes() { } var workUnitsCheckbox = document.getElementById("work_units"); - configureLabel = document.getElementById("work_units_config"); + configureLabel = document.getElementById("work_units_conf"); if (workUnitsCheckbox.checked){ configureLabel.style.visibility = "visible"; } else { configureLabel.style.visibility = "hidden"; } + + var templatesCheckbox = document.getElementById("templates"); + configureLabel = document.getElementById("templates_conf"); + docLabel = document.getElementById("templates_doc"); + if (templatesCheckbox.checked){ + configureLabel.style.display = ""; + docLabel.style.display = "none"; + } else { + configureLabel.style.display = "none"; + docLabel.style.display = ""; + } } @@ -108,31 +120,31 @@ function handlePluginCheckboxes() { {$forms.pluginsForm.custom_fields.control} - {$i18n.label.configure} + {$i18n.label.configure} {$forms.pluginsForm.expenses.control} - {$forms.pluginsForm.tax_expenses.control} {$i18n.label.configure} + {$forms.pluginsForm.tax_expenses.control} {$i18n.label.configure} {$forms.pluginsForm.notifications.control} - {if $user_exists}{$i18n.label.configure}{/if} + {if $user_exists}{$i18n.label.configure}{/if} {$forms.pluginsForm.locking.control} - {$i18n.label.configure} + {$i18n.label.configure} {$forms.pluginsForm.quotas.control} - {$i18n.label.configure} + {$i18n.label.configure} {$forms.pluginsForm.week_view.control} - {$i18n.label.configure} + {$i18n.label.configure} {$forms.pluginsForm.work_units.control} - {$i18n.label.configure} + {$i18n.label.configure} {$forms.pluginsForm.approval.control} @@ -140,14 +152,16 @@ function handlePluginCheckboxes() { {$forms.pluginsForm.timesheets.control} - + {$i18n.label.what_is_it} -{if isTrue('TEMPLATES_DEBUG')} {$forms.pluginsForm.templates.control} - + {$i18n.label.configure} {$i18n.label.what_is_it} + + + {$forms.pluginsForm.attachments.control} + {$i18n.label.what_is_it} -{/if}