{* * $Revision: 1.5 $ * 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="Quotas Administration"}

{if !empty($status)}

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

{/if}

{g->text text="This system will let you assign disk space quotas to users. By creating a group quota, any users in that group will be assigned that quota. If a user belongs to more than one group, the highest quota of all the groups will be assigned. Although, if you create a user quota that will override any group quotas."}

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

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

{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.noSuchGroupQuota)}
{g->text text="Group quota for '%s' does not exist. You must create one first." arg1=$form.text.groupName}
{/if} {if isset($form.error.text.GroupQuotaExists)}
{g->text text="Group quota for '%s' already exists." arg1=$form.text.groupName}
{/if} {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 ($AdminQuotas.totalGroupCount > 0)}

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

{if ($form.list.group.maxPages > 1)}
{if ($form.list.group.page > 1)} {g->text text="« first"}   {g->text text="« back"} {/if}   {g->text text="Viewing page %d of %d" arg1=$form.list.group.page arg2=$form.list.group.maxPages} {if ($form.list.group.page < $form.list.group.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="Quota"} {g->text text="Action"}
{$group.groupName} {$group.quotaSize} {$group.quotaUnit} {g->text text="edit"}   {g->text text="delete"}
{/if}

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

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

{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.noSuchUserQuota)}
{g->text text="User quota for '%s' does not exist. You must create one first." arg1=$form.text.userName}
{/if} {if isset($form.error.text.UserQuotaExists)}
{g->text text="User quota for '%s' already exists." arg1=$form.text.userName}
{/if} {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 ($AdminQuotas.totalUserCount > 0)}

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

{if ($form.list.user.maxPages > 1)}
{if ($form.list.user.page > 1)} {g->text text="« first"}   {g->text text="« back"} {/if}   {g->text text="Viewing page %d of %d" arg1=$form.list.user.page arg2=$form.list.user.maxPages}   {if ($form.list.page < $form.list.user.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="Quota"} {g->text text="Action"}
{$user.userName} {$user.quotaSize} {$user.quotaUnit} {g->text text="edit"}   {g->text text="delete"}
{/if}