{* * $Revision: 16235 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *}

{g->text text="Delete a User"}

{if isset($AdminDeleteUser.numberOfItems) && $AdminDeleteUser.numberOfItems > 0}

{g->text text="User %s is the owner of %s items." arg1=$AdminDeleteUser.user.userName arg2=$AdminDeleteUser.numberOfItems}

{g->text text="Delete user %s and..." arg1=$AdminDeleteUser.user.userName}

{g->text text="New owner (leaving blank means one of the Site Admins):"}

{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! Cannot assign items to a nonexistent user." arg1=$form.text.newOwner}
{/if} {if isset($form.error.text.newOwnerIsDeletedUser)}
{g->text text="The new owner must be a different user than the user we are deleting!"}
{/if} {if isset($form.error.text.newOwnerIsGuest)}
{g->text text="The new owner cannot be a Guest / Anonymous user!"}
{/if}

{/if}

{g->text text="Are you sure?"}

{g->text text="This will completely remove %s from Gallery. There is no undo!" arg1=$AdminDeleteUser.user.userName}