{if $user->can('manage_users')} {if $inactive_users} {/if} {if $active_users} {foreach $active_users as $u} {/foreach} {/if}
{$i18n.form.users.active_users}
{$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role}
{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} {foreach $inactive_users as $u} {/foreach}
{$i18n.form.users.inactive_users}
{$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role}
{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}
{/if} {else} {foreach $active_users as $u} {/foreach}
{$i18n.label.person_name} {$i18n.label.login} {$i18n.form.users.role}
{$u.name|escape} {$u.login|escape} {$u.role_name|escape}
{/if}