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

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

{if !empty($status)}

{if isset($status.deletedGroup)} {g->text text="Removed group '%s'" arg1=$status.deletedGroup} {/if} {if isset($status.createdGroup)} {g->text text="Created group '%s'" arg1=$status.createdGroup} {/if} {if isset($status.modifiedGroup)} {g->text text="Modified group '%s'" arg1=$status.modifiedGroup} {/if}

{/if}

{g->text one="There is %d group in the system." many="There are %d total groups in the system." count=$AdminGroups.totalGroupCount arg1=$AdminGroups.totalGroupCount}

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

{g->autoComplete element="giFormGroupname"} {g->url arg1="view=core.SimpleCallback" arg2="command=lookupGroupname" arg3="prefix=__VALUE__" htmlEntities=false} {/g->autoComplete} {if isset($form.error.text.noSuchGroup)}
{g->text text="Group '%s' does not exist." arg1=$form.text.groupName}
{/if} {if isset($form.error.text.noGroupSpecified)}
{g->text text="You must enter a group name"}
{/if} {if isset($form.error.text.cantDeleteGroup)}
{g->text text="You cannot delete that group"}
{/if} {if isset($form.error.text.cantEditGroupUsers)}
{g->text text="You cannot edit that group's users"}
{/if}

{g->text text="Edit Group (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.groupNames key=groupId item=group} {/foreach}
{g->text text="Group Name"} {g->text text="Action"}
{$group.groupName} {g->text text="edit"} {if ($group.can.delete)}   {g->text text="delete"} {/if} {if ($group.can.editUsers)}   {g->text text="members"} {/if}
{if !empty($form.list.filter) || ($form.list.maxPages > 1)} {/if} {if (!empty($form.list.filter))}   {g->text one="%d group matches your filter" many="%d groups match your filter" count=$form.list.count arg1=$form.list.count} {/if}