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

List of users

You can also add a user.

{loop="users"} {/loop}
Id Login Display Name Is admin ? Edit Delete
{$value->getId()} {$value->getLogin()} {$value->getDisplayName()} {$value->getAdmin() ? "Yes" : "No"} Edit {if condition="$value->getId() != $current_user->getId()"}Delete{/if}
{elseif condition="$view == 'edit_user'"}

{$user_id != -1 ? 'Edit' : 'Add'} a user

Toggle visible {if condition="$user_id != -1"}
Note : Leave blank this field if you don't want to edit password. {/if}

Give admin rights to this user ?

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

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

Personal token for this user

The personal token for this user to be used with the API is : {$user_data->getJsonToken()}.
If you think it might be compromised, you can generate a new one.

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

Edit your password

Toggle visible

Toggle visible

Your personal token to use the API

Your personal token to use the API is : {$json_token}.
If you think it might be compromised, you can generate a new one.

{/if} {include="footer"}