X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fprofile_edit.tpl;h=2da8041d8690a593c13f372df14cbe003d2fb868;hb=fcb4a368c1de2e4c086e64064c00f404efaef617;hp=5a90937bc6cebe43bf14273b99071fd52521cbb8;hpb=a781da5661a1932521e0d1feb4be340b97edce9a;p=timetracker.git diff --git a/WEB-INF/templates/profile_edit.tpl b/WEB-INF/templates/profile_edit.tpl index 5a90937b..2da8041d 100644 --- a/WEB-INF/templates/profile_edit.tpl +++ b/WEB-INF/templates/profile_edit.tpl @@ -44,6 +44,23 @@ 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 monthlyQuotaCheckBox = document.getElementById("monthly_quota"); + configureLabel = document.getElementById("monthly_quota_config"); + if (monthlyQuotaCheckBox.checked){ + configureLabel.style.visibility = "visible"; + } else { + configureLabel.style.visibility = "hidden"; + } + } @@ -96,10 +113,6 @@ function handlePluginCheckboxes() { {$i18n.label.currency}: {$forms.profileForm.currency.control} - - {$i18n.label.lock_interval}: - {$forms.profileForm.lock_interval.control} - {$i18n.label.language}: {$forms.profileForm.lang.control} @@ -175,6 +188,14 @@ function handlePluginCheckboxes() { {$forms.profileForm.notifications.control} {$i18n.label.configure} + + {$forms.profileForm.locking.control} + {$i18n.label.configure} + + + {$forms.profileForm.monthly_quota.control} + {$i18n.label.configure} + {/if}