X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fplugins.tpl;h=d3f90865336989168a3606f8ce34e1bcafd07c2e;hb=dda0cf3dc9763aca45c0a6cd53715db11941aa94;hp=c686eaaf014342c475c52f5d3f875b4e46be9c58;hpb=a9b8fe4baec922f724f188e25d98f9e964e9ef26;p=timetracker.git diff --git a/WEB-INF/templates/plugins.tpl b/WEB-INF/templates/plugins.tpl index c686eaaf..d3f90865 100644 --- a/WEB-INF/templates/plugins.tpl +++ b/WEB-INF/templates/plugins.tpl @@ -29,6 +29,7 @@ function handlePluginCheckboxes() { taxLabel.style.visibility = "hidden"; } var configureLabel = document.getElementById("expenses_config"); + var docLabel = null; if (expensesCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -82,6 +83,17 @@ function handlePluginCheckboxes() { } else { configureLabel.style.visibility = "hidden"; } + + var templatesCheckbox = document.getElementById("templates"); + configureLabel = document.getElementById("templates_config"); + docLabel = document.getElementById("templates_doc"); + if (templatesCheckbox.checked){ + configureLabel.style.display = ""; + docLabel.style.display = "none"; + } else { + configureLabel.style.display = "none"; + docLabel.style.display = ""; + } } @@ -140,7 +152,11 @@ function handlePluginCheckboxes() { {$forms.pluginsForm.timesheets.control} - + {$i18n.label.what_is_it} + + + {$forms.pluginsForm.templates.control} + {$i18n.label.configure} {$i18n.label.what_is_it}