X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprofile_edit.tpl;h=8d68c3e49e2161717bc12feff88d147244cc5468;hb=765181f88bd61e74e2836d1ede6465945e2226cf;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..8d68c3e4 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,14 @@ 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"; + } } @@ -65,7 +73,6 @@ function handlePluginCheckboxes() { {$i18n.label.login} (*): {$forms.profileForm.login.control} - {if !$auth_external} {$i18n.label.password} (*): @@ -76,7 +83,6 @@ function handlePluginCheckboxes() { {$forms.profileForm.password2.control} {/if} - {$i18n.label.email}: {$forms.profileForm.email.control} @@ -94,18 +100,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 +136,7 @@ function handlePluginCheckboxes() {