{strip}
{bithelp}

{tr}Configure Homepage Layout{/tr}

{if $gBitUser->canCustomizeLayout()} {foreach from=$layoutAreas item=area key=colkey } {/foreach}
{tr}Your HomePage Layout{/tr}
{section name=ix loop=$modules.$area} {sectionelse} {/section}
{tr}{$colkey} column{/tr}
{tr}Module{/tr}
{tr}Position {$modules.$area[ix].ord}{/tr}
{$modules.$area[ix].name}
{smartlink ititle="Up" biticon="go-up" fMove=up fPackage=$fPackage fModule=$modules.$area[ix].module_id} {smartlink ititle="Down" biticon="go-down" fMove=down fPackage=$fPackage fModule=$modules.$area[ix].module_id} {if $colkey eq 'right'} {smartlink ititle="Move to Left" biticon="go-previous" fMove=left fPackage=$fPackage fModule=$modules.$area[ix].module_id} {elseif $colkey eq 'left'} {smartlink ititle="Move to Right" biticon="go-next" fMove=right fPackage=$fPackage fModule=$modules.$area[ix].module_id} {/if} {if $column[ix].type ne 'P'} {smartlink ititle="Unassign" biticon="user-trash" onclick="return confirm('Are you sure you want to remove `$modules.$area[ix].name`?');" fMove=unassign fPackage=$fPackage fModule=$modules.$area[ix].module_id} {/if}
{if $colkey eq 'center'}{tr}Default{/tr}{else}{tr}None{/tr}{/if}
{/if} {jstabs} {if $gBitUser->canCustomizeLayout()} {jstab title="Assign Side Piece"} {form legend="Assign Side Piece"} {if $fEdit && $fAssign.name} {$assign.name} {else}
{formlabel label="Module" for="module_rsrc"} {forminput} {/forminput}
{/if}
{formlabel label="Position" for="pos"} {forminput} {formhelp note="Select the column this module should be displayed in."} {/forminput}
{formlabel label="Order" for="ord"} {forminput} {formhelp note="Select where within the column the module should be displayed."} {/forminput}
{/form} {/jstab} {jstab title="Assign center piece"} {form legend="Assign center piece"}
{formlabel label="Center Piece" for="module"} {forminput} {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}
{/form} {/jstab} {/if} {if $gBitUser->canCustomizeTheme()} {jstab title="Select Theme"} {form legend="Select Theme"}
{formlabel label="Theme" for="style"} {forminput} {formhelp note="Pick the theme for your personal Homepage."} {/forminput}
{/form} {/jstab} {/if} {/jstabs}
{/strip}