1{* $Id$ *}
2{foreach $fb as $info}
3	{if $info.count > 0}
4		{if $info.count == 1}
5			{$poptitle = "{tr}Permission successfully changed{/tr}"}
6			{if $info.type === 'global'}
7				{$header = "{tr}Global permission{/tr}"}
8			{else}
9				{if $info.objid !== $info.objname}
10					{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>" _2=$info.objid}Object permission for the %0 %1 (ID %2){/tr}"}
11				{else}
12					{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>"}Object permission for the %0 %1{/tr}"}
13				{/if}
14			{/if}
15		{else}
16			{$poptitle = "{tr}Permissions successfully changed{/tr}"}
17			{if $info.type === 'global'}
18				{$header = "{tr}Global permissions{/tr}"}
19			{else}
20				{if $info.objid !== $info.objname}
21					{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>" _2=$info.objid}Object permissions for the %0 %1 (ID %2){/tr}"}
22				{else}
23					{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>"}Object permissions for the %0 %1{/tr}"}
24				{/if}
25			{/if}
26		{/if}
27		{remarksbox type='feedback' title="$poptitle"}
28			<h5>{$header}{tr}:{/tr}</h5>
29			{foreach $info.mes as $direction => $directionPermissionsChanged}
30				{$direction|capitalize}
31				<ul>
32					{foreach $directionPermissionsChanged as $group => $groupPermissionsChanged}
33						{foreach $groupPermissionsChanged as $groupPermissionChanged}
34							<li>
35								{$group|escape}{tr}:{/tr} {$groupPermissionChanged}
36							</li>
37						{/foreach}
38					{/foreach}
39				</ul>
40			{/foreach}
41		{/remarksbox}
42	{else}
43		{remarksbox type='note' title="{tr}No permissions were changed{/tr}"}{/remarksbox}
44	{/if}
45{/foreach}
46