X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fuser_edit.tpl;h=e17651b216c7ad02063fcd645e0c9ad3a686abb3;hb=13cfff28242767287408e8fd13d992bc6c6e2086;hp=2bba1842d81231db1aaf0beff06b753d67ae0ab3;hpb=768cd79f51628c223a55a8d8e85269bad4d8a105;p=timetracker.git diff --git a/WEB-INF/templates/user_edit.tpl b/WEB-INF/templates/user_edit.tpl index 2bba1842..e17651b2 100644 --- a/WEB-INF/templates/user_edit.tpl +++ b/WEB-INF/templates/user_edit.tpl @@ -56,6 +56,7 @@ function setRate(element) { function handleClientControl() { var selectedRoleId = document.getElementById("role").value; var clientControl = document.getElementById("client"); + var nonClientBlock = document.getElementById("non_client_block"); var projectsControl = document.getElementById("projects_control"); var len = roles.length; @@ -64,6 +65,7 @@ function handleClientControl() { var isClient = roles[i][1]; if (isClient == 1) { clientControl.style.visibility = "visible"; + nonClientBlock.style.display = "none"; projectsControl.style.display = "none"; // Uncheck all project checkboxes. @@ -75,6 +77,7 @@ function handleClientControl() { } else { clientControl.value = ""; clientControl.style.visibility = "hidden"; + nonClientBlock.style.display = ""; projectsControl.style.display = ""; } break; @@ -124,16 +127,18 @@ function handleClientControl() { {$user->role_name} {if $can_swap}{$i18n.form.user_edit.swap_roles}{/if} {/if} - - {$i18n.form.users.default_rate} (0{$user->getDecimalMark()}00): - {$forms.userForm.rate.control} - + {if $show_quota} {$i18n.label.quota} (%): {$forms.userForm.quota_percent.control} {$i18n.label.what_is_it} {/if} + + {$i18n.form.users.default_rate} (0{$user->getDecimalMark()}00): + {$forms.userForm.rate.control} + + {if $show_projects}