{strip} {formfeedback hash=$feedback} {form legend="Create Layout for Packages and Sections" method="get"}
{formlabel label="Customized layout" for="module_package"} {forminput} {/forminput}
{if $cloneLayouts && $module_package != kernel}
{formlabel label="Copy existing layout" for="clone_layout"} {forminput} {tr}to {if $module_package == kernel}Site Default{else}{$module_package|capitalize}{/if}{/tr} {/forminput}
{/if} {/form}
{foreach from=$layoutAreas item=area key=colkey} {if $colkey =='top'} {if $colkey =='top'} {/if} {/foreach}
{tr}Current Layout of '{if !$module_package || $module_package=='kernel'}Site Default{else}{$module_package|capitalize}{/if}'{/tr}
{elseif $colkey =='bottom'}
{else} {/if} {section name=ix loop=$editLayout.$area} {sectionelse} {/section}
{tr}{$colkey} area{/tr}
{include file="bitpackage:themes/module_config_inc.tpl" modInfo=$editLayout.$area[ix] condensed=1}
{if $colkey eq 'center'}{tr}Default{/tr}{else}{tr}None{/tr}{/if}
{jstabs} {jstab title="Modules"} {form action=$smarty.server.SCRIPT_NAME legend="Assign modules to areas"}
{formlabel label="Package"} {forminput} {tr}{if !$module_package || $module_package eq 'kernel'}Site Default{else}{$module_package|capitalize}{/if}{/tr} {formhelp note="This is the package you are currently editing."} {/forminput}
{if $fEdit && $fAssign.name} {else}
{formlabel label="Module" for="module_rsrc"} {forminput} {*html_options name="fAssign[module_rsrc]" id="module_rsrc" options=$allModules selected=$fAssign.name *} {formhelp note="Extended help can be found at the end of this page."} {/forminput}
{/if}
{formlabel label="Position" for="layout_area"} {forminput} {formhelp note="Select the column this module should be displayed in."} {/forminput}
{formlabel label="Title" for="title"} {forminput} {formhelp note="Here you can override the default title used by the module. This is global for layouts in all sections. If you want to add a title just for one section, enter a module parameter below such as: title=My Title"} {/forminput}
{formlabel label="Order" for="pos"} {forminput} {formhelp note="Select where within the column the module should be displayed."} {/forminput}
{formlabel label="Cache Time" for="cache_time"} {forminput} seconds {formhelp note="This is the number of seconds the module is cached before the content is refreshed. The higher the value, the less load there is on the server. (optional)"} {/forminput}
{formlabel label="Rows" for="module_rows"} {forminput} {formhelp note="Select what the maximum number of items are displayed. (optional - default is 10)"} {/forminput}
{formlabel label="Parameters" for="params"} {forminput} {formhelp note="Here you can enter any additional parameters the module might need. Use the http query string form, e.g. foo=123&bar=ABC (optional)"} {foreach key=pkg item=modules from=$allModules} {foreach key=value item=module from=$modules} {if !empty($module.params)} {foreach key=param item=data from=$module.params|default:[]} {if !empty($data.help)} {/if} {/foreach} {/if} {/foreach} {/foreach} {/forminput}
{if $roles } {formlabel label="Roles" for="roles"} {forminput} {formhelp note="Select the roles of users who can see this module. If you select no role, the module will be visible to all users."} {/forminput} {else} {formlabel label="Groups" for="groups"} {forminput} {formhelp note="Select the groups of users who can see this module. If you select no group, the module will be visible to all users."} {/forminput} {/if}
{forminput label="checkbox"} Add to all Layouts {formhelp note="If you check this, the module will be added to all custom layouts."} {/forminput}
{/form} {/jstab} {jstab title="Center"} {form action=$smarty.server.SCRIPT_NAME legend="Assign content to the center area"}
{formlabel label="Package"} {forminput} {tr}{if !$module_package || $module_package eq 'kernel'}Site Default{else}{$module_package|capitalize}{/if}{/tr} {formhelp note="This is the package you are currently editing."} {/forminput}
{formlabel label="Center Piece" for="module"} {forminput} {if $fEdit && $fAssign.name} {$fAssign.module} {else} {* html_options name="fAssign[module_rsrc]" id="module" values=$allCenters options=$allCenters selected=$mod *} {/if} {formhelp note="Pick the center bit you want to display when accessing this package."} {/forminput}
{formlabel label="Position"} {forminput} {tr}Center{/tr} {/forminput}
{formlabel label="Order" for="c_ord"} {forminput} {formhelp note="Select where within the column the module should be displayed."} {/forminput}
{formlabel label="Cache Time" for="c_cache_time"} {forminput} seconds {formhelp note="This is the number of seconds the module is cached before the content is refreshed. The higher the value, the less load there is on the server. (optional)"} {/forminput}
{formlabel label="Rows" for="c_rows"} {forminput} {formhelp note="Select what the maximum number of items are displayed. (optional - default is 10)"} {/forminput}
{formlabel label="Parameters" for="c_params"} {forminput} {formhelp note="Here you can enter any additional parameters the module might need. (optional)"} {/forminput}
{if $roles } {formlabel label="Roles" for="c_roles"} {forminput} {formhelp note="Select the roles of users who can see this module. If you select no role, the module will be visible to all users."} {/forminput} {else} {formlabel label="Groups" for="c_groups"} {forminput} {formhelp note="Select the groups of users who can see this module. If you select no group, the module will be visible to all users."} {/forminput} {/if}
{/form} {/jstab} {include file="bitpackage:themes/admin_layout_inc.tpl"} {/jstabs}
{/strip}