{strip}
{assign var=tablimit value=10}
{formfeedback hash=$feedback}
{form}
{jstabs}
{foreach name=PkgLayouts from=$layouts item=layout key=module_package}
{if !$module_package || $module_package == 'kernel'}
{assign var=tabTitle value="Default"}
{else}
{assign var=tabTitle value=$module_package|capitalize}
{/if}
{jstab title=$tabTitle}
{smartlink ititle="Edit this Layout" biticon="edit" page=layout module_package=$module_package}
{smartlink ititle="Remove this Layout" biticon="user-trash" page=$page remove_layout=$module_package onclick="return confirm('{tr}Are you sure you want to remove this layout? This can not be undone.{/tr}')"}
{tr}Current Layout{/tr} {$tabTitle}
{cycle values="even,odd" print=0}
{foreach from=$layoutAreas item=area key=colkey}
{if $colkey =='top'}
{elseif $colkey =='bottom'}
{else}
{/if}
{tr}{$colkey} area{/tr}
{section name=ix loop=$layout.$area}
{if $roles }
{include file="bitpackage:themes/module_config_role_inc.tpl" modInfo=$layout.$area[ix]}
{else}
{include file="bitpackage:themes/module_config_inc.tpl" modInfo=$layout.$area[ix]}
{/if}
{sectionelse}
{if $colkey eq 'center'}{tr}Default{/tr}{else}{tr}None{/tr}{/if}
{/section}
{if $colkey =='top'}
{/if}
{/foreach}
{/jstab}
{/foreach}
{include file="bitpackage:themes/admin_layout_inc.tpl"}
{/jstabs}
{/form}
{/strip}