X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprofile_edit.tpl;h=8c9cb8d58e45d344f2e5d86c003bd3e4f9071599;hb=c4e347fa168d586cbb3e02c646850d8a1749f7f1;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..8c9cb8d5 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,13 +24,19 @@ 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"; } + var configureLabel = document.getElementById("expenses_config"); + if (expensesCheckbox.checked) { + configureLabel.style.visibility = "visible"; + } else { + configureLabel.style.visibility = "hidden"; + } var customFieldsCheckbox = document.getElementById("custom_fields"); - var configureLabel = document.getElementById("cf_config"); + configureLabel = document.getElementById("cf_config"); if (customFieldsCheckbox.checked) { configureLabel.style.visibility = "visible"; } else { @@ -44,6 +50,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 +87,6 @@ function handlePluginCheckboxes() { {$i18n.label.login} (*): {$forms.profileForm.login.control} - {if !$auth_external} {$i18n.label.password} (*): @@ -76,7 +97,6 @@ function handlePluginCheckboxes() { {$forms.profileForm.password2.control} {/if} - {$i18n.label.email}: {$forms.profileForm.email.control} @@ -94,18 +114,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} @@ -133,12 +145,16 @@ function handlePluginCheckboxes() { {$i18n.form.profile.record_type}: {$forms.profileForm.record_type.control} + + {$i18n.form.profile.uncompleted_indicators}: + {$forms.profileForm.uncompleted_indicators.control} + {* initialize preview text *}