You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

45 lines
2.0 KiB

{* $Id$ *}
{foreach $fb as $info}
{if $info.count > 0}
{if $info.count == 1}
{$poptitle = "{tr}Permission successfully changed{/tr}"}
{if $info.type === 'global'}
{$header = "{tr}Global permission{/tr}"}
{else}
{if $info.objid !== $info.objname}
{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>" _2=$info.objid}Object permission for the %0 %1 (ID %2){/tr}"}
{else}
{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>"}Object permission for the %0 %1{/tr}"}
{/if}
{/if}
{else}
{$poptitle = "{tr}Permissions successfully changed{/tr}"}
{if $info.type === 'global'}
{$header = "{tr}Global permissions{/tr}"}
{else}
{if $info.objid !== $info.objname}
{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>" _2=$info.objid}Object permissions for the %0 %1 (ID %2){/tr}"}
{else}
{$header = "{tr _0=$info.objtype _1="<em>{$info.objname}</em>"}Object permissions for the %0 %1{/tr}"}
{/if}
{/if}
{/if}
{remarksbox type='feedback' title="$poptitle"}
<h5>{$header}{tr}:{/tr}</h5>
{foreach $info.mes as $direction => $directionPermissionsChanged}
{$direction|capitalize}
<ul>
{foreach $directionPermissionsChanged as $group => $groupPermissionsChanged}
{foreach $groupPermissionsChanged as $groupPermissionChanged}
<li>
{$group|escape}{tr}:{/tr} {$groupPermissionChanged}
</li>
{/foreach}
{/foreach}
</ul>
{/foreach}
{/remarksbox}
{else}
{remarksbox type='note' title="{tr}No permissions were changed{/tr}"}{/remarksbox}
{/if}
{/foreach}