{strip}

{tr}Assign Group Permissions{/tr}

{formfeedback hash=$feedback} {form}

{smartlink ititle=All package=$packageKey} {foreach from=$permPackages key=i item=packageKey} {if $gBitSystem->isPackageActive($packageKey)}  • {smartlink ititle=$gBitSystem->mPackages.$packageKey.name|default:$packageKey package=$packageKey} {/if} {/foreach}

{capture assign=th} {foreach from=$allGroups item=group name=groups} {/foreach} {/capture} {$th} {foreach from=$allPerms item=perm key=p name=perms} {if ($smarty.foreach.perms.iteration % 10) eq 0 and ($smarty.foreach.perms.total - $smarty.foreach.perms.iteration) gt 5}{$th}{/if} {foreach from=$allGroups item=group} {/foreach} {/foreach}
{tr}Available Permissions{/tr}
{tr}Permission{/tr} {tr}Package{/tr}{if $smarty.foreach.groups.total > 8}{$group.group_id}{else}{$group.group_name}{/if}
{if $unassignedPerms.$p}{biticon iname=dialog-warning iexplian="Unassigned Permission"}{/if} {$p} {$perm.package}
{/form} {if $smarty.foreach.groups.total > 8}
{foreach from=$allGroups item=group}
{$group.group_id}
{$group.group_name}: {$group.group_desc}
{/foreach}
{/if} {if $contentWithPermissions}

{tr}Content with individual Permissions{/tr}

{/if}
{/strip}