X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=inline;f=WEB-INF%2Ftemplates%2Fuser_edit.tpl;h=e7d9dd92f2c03a32c1b563f43a772b8a26169c44;hb=d31bcc34081a36b3f45c080f3a5cd231ec417fa9;hp=4a45f771c5a6e56264ea1c5f27bb215ba64afb23;hpb=fe40891a4ad16b5b70d518e8b5b2596267b684f9;p=timetracker.git
diff --git a/WEB-INF/templates/user_edit.tpl b/WEB-INF/templates/user_edit.tpl
index 4a45f771..e7d9dd92 100644
--- a/WEB-INF/templates/user_edit.tpl
+++ b/WEB-INF/templates/user_edit.tpl
@@ -95,18 +95,21 @@ function handleClientControl() {
{$i18n.label.email}: |
{$forms.userForm.email.control} |
-{if $user->isManager() && ($user->id != $user_id)}
+{if $user->id != $user_id}
{$i18n.form.users.role}: |
{$forms.userForm.role.control} {$forms.userForm.client.control} |
-{/if}
-{* Prohibit deactivating team manager. Deactivating others is ok. *}
-{if $user->canManageTeam() && !($user->isManager() && $user->id == $user_id)}
{$i18n.label.status}: |
{$forms.userForm.status.control} |
+{/if}
+{if $user->id == $user_id}
+
+ {$i18n.form.users.role}: |
+ {$user->role_name} {if $can_swap}{$i18n.form.user_edit.swap_roles}{/if} |
+
{/if}
{$i18n.form.users.default_rate} (0{$user->decimal_mark}00): |