X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprofile_edit.tpl;h=e463ca68b6dbd4464af37393ff30e4941c68f235;hb=bd68d5a0dc9aad9854df9220538bd0c0db7d6ea0;hp=032cc5f4355f967ba43df4e7f88044487772d7bc;hpb=9a23a8c0a51b7ec38a96f525484134f3cb85dc7e;p=timetracker.git diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index 032cc5f4..e463ca68 100644 --- a/WEB-INF/templates/profile_edit.tpl +++ b/WEB-INF/templates/profile_edit.tpl @@ -7,15 +7,15 @@ function handlePluginCheckboxes() { var requiredLabel = document.getElementById("required_label"); if (clientsCheckbox.checked) { requiredCheckbox.style.visibility = "visible"; - requiredLabel.style.visibility = "visible"; - invoicesCheckbox.disabled = false; + requiredLabel.style.visibility = "visible"; + invoicesCheckbox.disabled = false; } else { - requiredCheckbox.checked = false; - requiredCheckbox.style.visibility = "hidden"; - requiredLabel.style.visibility = "hidden"; - invoicesCheckbox.checked = false; + 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"); @@ -24,7 +24,7 @@ function handlePluginCheckboxes() { taxCheckbox.style.visibility = "visible"; taxLabel.style.visibility = "visible"; } else { - taxCheckbox.checked = false; + taxCheckbox.checked = false; taxCheckbox.style.visibility = "hidden"; taxLabel.style.visibility = "hidden"; } @@ -44,6 +44,22 @@ function handlePluginCheckboxes() { } 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"; + } } @@ -65,7 +81,6 @@ function handlePluginCheckboxes() { {$i18n.label.login} (*): {$forms.profileForm.login.control} - {if !$auth_external} {$i18n.label.password} (*): @@ -76,7 +91,6 @@ function handlePluginCheckboxes() { {$forms.profileForm.password2.control} {/if} - {$i18n.label.email}: {$forms.profileForm.email.control} @@ -94,18 +108,10 @@ function handlePluginCheckboxes() { {$i18n.label.team_name}: {$forms.profileForm.team_name.control} - {$i18n.label.currency}: {$forms.profileForm.currency.control} - - {$i18n.label.lock_interval}: - {$forms.profileForm.lock_interval.control} - {$i18n.label.language}: {$forms.profileForm.lang.control} @@ -138,7 +144,7 @@ function handlePluginCheckboxes() {