X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fmobile%2Fusers.tpl;h=38c96ae981dc4ee21e8951313f61dce40716ad8f;hb=5fdf8659516ad2b07458deba8eda234e8e07c554;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..38c96ae9 100644 --- a/WEB-INF/templates/mobile/users.tpl +++ b/WEB-INF/templates/mobile/users.tpl @@ -14,12 +14,21 @@ {$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role} - {$i18n.label.edit} {if $active_users} {foreach $active_users as $u} - {$u.name|escape:'html'} + + {if $user->isManager()} + {$u.name|escape:'html'} + {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} + {/if} + {$u.login|escape:'html'} {if $smarty.const.ROLE_MANAGER == $u.role} {$i18n.form.users.manager} @@ -29,13 +38,6 @@ {$i18n.label.client} {elseif $smarty.const.ROLE_USER == $u.role} {$i18n.label.user} - {/if} - {if $user->isManager()} - - {$i18n.label.edit} - {else} - - {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$i18n.label.edit}{/if} {/if} {/foreach} @@ -58,11 +60,16 @@ {$i18n.label.login} {$i18n.form.users.role} {$i18n.label.edit} - {$i18n.label.delete} {foreach $inactive_users as $u} - {$u.name|escape:'html'} + + {if $user->isManager()} + {$u.name|escape:'html'} + {else} + {if ($user->id == $u.id) || ($smarty.const.ROLE_CLIENT == $u.role) || ($smarty.const.ROLE_USER == $u.role)}{$u.name|escape:'html'}{/if} + {/if} + {$u.login|escape:'html'} {if $smarty.const.ROLE_MANAGER == $u.role} {$i18n.form.users.manager} @@ -76,11 +83,9 @@ {if $user->isManager()} {$i18n.label.edit} - {if $smarty.const.ROLE_MANAGER != $u.role || $can_delete_manager}{$i18n.label.delete}{/if} {else} {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} {/foreach}