X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fusers.tpl;h=eaeb4770fcb27da7976b1a24395318556188643a;hb=4334f16faa68ecaec5aceb5c16bb500d62a3688f;hp=202e018e3739ea4636f375f81e584a3c6f54d83b;hpb=845622e615e142555436c61425dfcef7c51e14a2;p=timetracker.git diff --git a/WEB-INF/templates/mobile/users.tpl b/WEB-INF/templates/mobile/users.tpl index 202e018e..eaeb4770 100644 --- a/WEB-INF/templates/mobile/users.tpl +++ b/WEB-INF/templates/mobile/users.tpl @@ -5,43 +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} - + {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} @@ -50,55 +38,38 @@
{$i18n.form.users.active_users}
{$i18n.label.active_users}
{$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role}
- {if $smarty.const.UNCOMPLETED_INDICATORS == $user->uncompleted_indicators} + {if $uncompleted_indicators} {/if} - {if $user->isManager()} - {$u.name|escape:'html'} + {if $u.group_id != $user->group_id || $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)} + {$u.name|escape} {else} - {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)} - {$u.name|escape:'html'} - {else} - {$u.name|escape:'html'} - {/if} + {$u.name|escape} {/if} {$u.login|escape:'html'}{$i18n.form.users.manager}{$i18n.form.users.comanager}{$i18n.label.client}{$i18n.label.user}{$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}
- {if $user->isManager()} - {$u.name|escape:'html'} + {if $u.group_id != $user->group_id || $u.rank < $user->rank} + {$u.name|escape} {else} - {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$u.name|escape:'html'}{/if} + {$u.name|escape} {/if} {$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}{$u.login|escape}{$u.role_name|escape}
-
+
@@ -111,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}