X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fusers.tpl;h=eaeb4770fcb27da7976b1a24395318556188643a;hb=dc799619007c9eafdec69a70f89a2d08bb10864c;hp=aab86d82fd1ef902e8b73150c6e6ea7dafd024e3;hpb=ee49ee74b2a7d3c6daaa2d4bc6397b0c89e3099b;p=timetracker.git diff --git a/WEB-INF/templates/mobile/users.tpl b/WEB-INF/templates/mobile/users.tpl index aab86d82..eaeb4770 100644 --- a/WEB-INF/templates/mobile/users.tpl +++ b/WEB-INF/templates/mobile/users.tpl @@ -5,38 +5,31 @@ {foreach $active_users as $u} - - - - {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} + {if $active_users} - - {if $active_users} - {foreach $active_users as $u} - - - - {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()} - - - {else} - - - {/if} + {foreach $active_users as $u} + + + + {/foreach} {/if} @@ -45,52 +38,38 @@
{$i18n.form.users.active_users}
{$i18n.label.active_users}
{$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role}{$i18n.label.edit}
{$u.name|escape:'html'}{$u.login|escape:'html'}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}{$i18n.label.edit}{if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if}
+ {if $uncompleted_indicators} + + {/if} + {if $u.group_id != $user->group_id || $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)} + {$u.name|escape} + {else} + {$u.name|escape} + {/if} + {$u.login|escape}{$u.role_name|escape}

-
+
{if $inactive_users} - - +
{$i18n.form.users.inactive_users}
+ - - {foreach $inactive_users as $u} - - - - {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()} - - - - {else} - - - - {/if} + + + + {/foreach} -
{$i18n.label.inactive_users}
{$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role}{$i18n.label.edit}{$i18n.label.delete}
{$u.name|escape:'html'}{$u.login|escape:'html'}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}{$i18n.label.edit}{if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if}{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}
+ {if $u.group_id != $user->group_id || $u.rank < $user->rank} + {$u.name|escape} + {else} + {$u.name|escape} + {/if} + {$u.login|escape}{$u.role_name|escape}
-
+
@@ -103,18 +82,10 @@
{$i18n.form.users.role}
{$u.name|escape:'html'}{$u.login|escape:'html'}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}
{$u.name|escape}{$u.login|escape}{$u.role_name|escape}