X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fuser_edit.tpl;h=03c5db2eff068c6b5b1cdc49ca8ef48c1bbaddff;hb=fe8af9a04f7170a0623915f31610c6c4c3df4058;hp=6bddbb99f77ceb00c98682c0beedb9409de3281c;hpb=2c7be66d72e7f745903e08f49f8d9ab12def1c2d;p=timetracker.git diff --git a/WEB-INF/templates/mobile/user_edit.tpl b/WEB-INF/templates/mobile/user_edit.tpl index 6bddbb99..03c5db2e 100644 --- a/WEB-INF/templates/mobile/user_edit.tpl +++ b/WEB-INF/templates/mobile/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; @@ -83,6 +86,7 @@ function handleClientControl() { } + {$forms.userForm.open}
@@ -118,16 +122,18 @@ function handleClientControl() { {/if} - - - - + {if $show_quota} {/if} + + + + + {if $show_projects}
{$forms.userForm.status.control}
{$i18n.form.users.default_rate} (0{$user->decimal_mark}00):{$forms.userForm.rate.control}
{$i18n.label.quota} (%): {$forms.userForm.quota_percent.control}
{$i18n.form.users.default_rate} (0{$user->decimal_mark}00):{$forms.userForm.rate.control}