{* * $Revision: 1.34 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="User Management"}

{if !empty($status)}

{if isset($status.deletedUser)} {g->text text="Removed user '%s'" arg1=$status.deletedUser} {/if} {if isset($status.createdUser)} {g->text text="Created user '%s'" arg1=$status.createdUser} {/if} {if isset($status.modifiedUser)} {g->text text="Modified user '%s'" arg1=$status.modifiedUser} {/if}

{/if}

{g->text one="There is %d user in the system." many="There are %d total users in the system." count=$AdminUsers.totalUserCount arg1=$AdminUsers.totalUserCount}

{g->text text="Edit User"}

{g->autoComplete element="giFormUsername"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupUsername" arg3="prefix=__VALUE__" htmlEntities=false} {/g->autoComplete} {if isset($form.error.text.noSuchUser)}
{g->text text="User '%s' does not exist." arg1=$form.text.userName}
{/if} {if isset($form.error.text.noUserSpecified)}
{g->text text="You must enter a username"}
{/if} {if isset($form.error.text.cantDeleteSelf)}
{g->text text="You cannot delete yourself!"}
{/if} {if isset($form.error.text.cantDeleteAnonymous)}
{g->text text="You cannot delete the special guest user."}
{/if}

{g->text text="Edit User (by list)"}

{if ($form.list.maxPages > 1)}
{if ($form.list.page > 1)} {g->text text="« first"}   {g->text text="« back"} {/if}   {g->text text="Viewing page %d of %d" arg1=$form.list.page arg2=$form.list.maxPages}   {if ($form.list.page < $form.list.maxPages)} {g->text text="next »"}   {g->text text="last »"} {/if}
{/if} {foreach from=$form.list.userNames key=userId item=user} {/foreach}
{g->text text="Username"} {g->text text="Action"}
{$user.userName} {g->text text="edit"} {if ($user.can.delete)}   {g->text text="delete"} {/if}
{if !empty($form.list.filter) || $form.list.maxPages > 1} {/if} {if (!empty($form.list.filter))}   {g->text one="%d user matches your filter" many="%d users match your filter" count=$form.list.count arg1=$form.list.count} {/if}