{include="header"} {if condition="$view == 'list_users'"}

{$i18n['users_list']}

{$i18n['you_can_also']} {$i18n['add_user']}.

{loop="users"} {/loop}
{$i18n['id']} {$i18n['login']} {$i18n['display_name']} {$i18n['email_address']} {$i18n['is_admin']}{$i18n['before_double_ponctuation']}? {$i18n['edit']} {$i18n['delete']}
{$value->getId()} {$value->getLogin()} {$value->getDisplayName()} {$value->getEmail()} {$value->getAdmin() ? "Yes" : "No"} {$i18n['edit']} {if condition="$value->getId() != $current_user->getId()"}{$i18n['delete']}{/if}
{elseif condition="$view == 'edit_user'"}

{$user_id != -1 ? $i18n['edit'] : $i18n['add']} {$i18n['a_user']}

Toggle visible {if condition="$user_id != -1"}
{$i18n['note']}{$i18n['before_double_ponctuation']}: {$i18n['note_dont_edit_passwords']} {/if}

{$i18n['give_admin_rights']}{$i18n['before_double_ponctuation']}?

{if condition="$user_id != -1"}{/if}

{if condition="$user_id != -1"}

{$i18n['personal_token_user']}

{$i18n['personal_token_user_is']}{$i18n['before_double_ponctuation']}: {$user_data->getJsonToken()}.
{$i18n['compromised_token']} {$i18n['generate_new_one']}.

{/if} {elseif condition="$view == 'password'"}

{$i18n['edit_password']}

{$i18n['toggle_visible']}

{$i18n['toggle_visible']}

{$i18n['note']}{$i18n['before_double_ponctuation']}: {$i18n['note_dont_edit_passwords']}

{$i18n['personal_token_title']}

{$i18n['personal_token_is']}{$i18n['before_double_ponctuation']}: {$json_token}.
{$i18n['compromised_token']} {$i18n['generate_new_one']}.

{/if} {include="footer"}