X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fusers.tpl;h=008413391a0e8fbb8079987ea1fe467de7c0776e;hb=995feb6c9e97991e5b9d9803fbc3c8a41ac48922;hp=95ff2805ef509b75e83c68f12c5a9919fc5bc5fa;hpb=e3ed046e205a14772a8157def21fea9a14acdde8;p=timetracker.git diff --git a/WEB-INF/templates/users.tpl b/WEB-INF/templates/users.tpl index 95ff2805..00841339 100644 --- a/WEB-INF/templates/users.tpl +++ b/WEB-INF/templates/users.tpl @@ -5,15 +5,15 @@ - {if $smarty.const.ROLE_MANAGER == $u.role} - - {elseif $smarty.const.ROLE_COMANAGER == $u.role} - - {elseif $smarty.const.ROLE_CLIENT == $u.role} - - {elseif $smarty.const.ROLE_USER == $u.role} - - {/if} + {/foreach}
-{if $user->canManageTeam()} +{if $user->can('manage_users')} {if $inactive_users} {/if} - - - + + + @@ -27,23 +27,13 @@ {$u.name|escape} - {if $smarty.const.ROLE_MANAGER == $u.role} - - {elseif $smarty.const.ROLE_COMANAGER == $u.role} - - {elseif $smarty.const.ROLE_CLIENT == $u.role} - - {elseif $smarty.const.ROLE_USER == $u.role} - - {/if} - {if $user->isManager()} - + + {if $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)} - + {if $u.id != $user->id}{else}{/if} {else} - - - + + {/if} {/foreach} @@ -53,7 +43,7 @@
{$i18n.form.users.active_users}
{$i18n.label.person_name}{$i18n.label.login}{$i18n.form.users.role}{$i18n.label.person_name}{$i18n.label.login}{$i18n.form.users.role} {$i18n.label.edit} {$i18n.label.delete}
{$u.login|escape}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}{$u.role_name|escape}{$i18n.label.edit}{if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if}{$i18n.label.delete}{if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if}{if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.delete}{/if}

-
+
@@ -62,9 +52,9 @@ - - - + + + @@ -72,23 +62,13 @@ - {if $smarty.const.ROLE_MANAGER == $u.role} - - {elseif $smarty.const.ROLE_COMANAGER == $u.role} - - {elseif $smarty.const.ROLE_CLIENT == $u.role} - - {elseif $smarty.const.ROLE_USER == $u.role} - - {/if} - {if $user->isManager()} - + + {if $u.rank < $user->rank} - + {else} - - - + + {/if} {/foreach} @@ -98,7 +78,7 @@
{$i18n.form.users.inactive_users}
{$i18n.label.person_name}{$i18n.label.login}{$i18n.form.users.role}{$i18n.label.person_name}{$i18n.label.login}{$i18n.form.users.role} {$i18n.label.edit} {$i18n.label.delete}
{$u.name|escape} {$u.login|escape}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}{$u.role_name|escape}{$i18n.label.edit}{if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if}{$i18n.label.delete}{if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if}{if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.delete}{/if}
-
+
@@ -114,15 +94,7 @@
{$u.name|escape} {$u.login|escape}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}{$u.role_name|escape}