X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=WEB-INF%2Ftemplates%2Fusers.tpl;h=f03dfd0cf6546096ab56cb767f1e039101f5c7be;hb=11f9bb4aceb54d0965f5eb2a5329acc6400428e2;hp=85d6efc8ca0d5e3db7162f19ceefd710f2499a19;hpb=6c7a98f61e74aeae700b523729abb49ff19d3704;p=timetracker.git diff --git a/WEB-INF/templates/users.tpl b/WEB-INF/templates/users.tpl index 85d6efc8..f03dfd0c 100644 --- a/WEB-INF/templates/users.tpl +++ b/WEB-INF/templates/users.tpl @@ -11,26 +11,32 @@ {$i18n.form.users.active_users} {/if} - {$i18n.label.person_name} - {$i18n.label.login} - {$i18n.form.users.role} - {$i18n.label.edit} - {$i18n.label.delete} + {$i18n.label.person_name} + {$i18n.label.login} + {$i18n.form.users.role} + {if $show_quota} + {$i18n.label.quota} + {/if} + + {if $active_users} {foreach $active_users as $u} - {if $user->uncompleted_indicators} + {if $uncompleted_indicators} {/if} {$u.name|escape} {$u.login|escape} {$u.role_name|escape} - {if $u.rank <= $user->rank} - {$i18n.label.edit} - {if $u.id != $user->id}{$i18n.label.delete}{else}{/if} + {if $show_quota} + {$u.quota_percent} + {/if} + {if $u.group_id != $user->group_id || $u.rank < $user->rank || ($u.rank == $user->rank && $u.id == $user->id)} + {$i18n.label.edit} + {if $u.id != $user->id}{$i18n.label.delete}{else}{/if} {else} @@ -52,20 +58,26 @@ - - - - - + + + + {if $show_quota} + + {/if} + + {foreach $inactive_users as $u} - {if $u.rank <= $user->rank} - - {if $u.id != $user->id}{else}{/if} + {if $show_quota} + + {/if} + {if $u.group_id != $user->group_id || $u.rank < $user->rank} + + {else}
{$i18n.form.users.inactive_users}
{$i18n.label.person_name}{$i18n.label.login}{$i18n.form.users.role}{$i18n.label.edit}{$i18n.label.delete}{$i18n.label.person_name}{$i18n.label.login}{$i18n.form.users.role}{$i18n.label.quota}
{$u.name|escape} {$u.login|escape} {$u.role_name|escape}{$i18n.label.edit}{$i18n.label.delete}{$u.quota_percent}{$i18n.label.edit}{$i18n.label.delete}