X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fuser_add.tpl;h=155bf11cc7f4beca0264c0835a9ecba40755c31c;hb=9c1005341a3db52333fcb732960acbdf03fbe4e7;hp=c6dbaa7bbd543aadbe3a4df95c54c407846b2661;hpb=768cd79f51628c223a55a8d8e85269bad4d8a105;p=timetracker.git diff --git a/WEB-INF/templates/user_add.tpl b/WEB-INF/templates/user_add.tpl index c6dbaa7b..155bf11c 100644 --- a/WEB-INF/templates/user_add.tpl +++ b/WEB-INF/templates/user_add.tpl @@ -34,6 +34,7 @@ function setDefaultRate(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; @@ -42,6 +43,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. @@ -53,6 +55,7 @@ function handleClientControl() { } else { clientControl.value = ""; clientControl.style.visibility = "hidden"; + nonClientBlock.style.display = ""; projectsControl.style.display = ""; } break; @@ -90,16 +93,18 @@ function handleClientControl() { {$i18n.form.users.role}: {$forms.userForm.role.control} {$forms.userForm.client.control} - - {$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}   @@ -112,7 +117,6 @@ function handleClientControl() { {$i18n.label.required_fields} - {$forms.userForm.btn_submit.control}