{if $gBitUser->canCustomizeLayout()}
{tr}Your HomePage Layout{/tr}
{foreach from=$layoutAreas item=area key=colkey }
{tr}{$colkey} column{/tr}
{tr}Module{/tr}
{section name=ix loop=$modules.$area}
{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}
{sectionelse}
{if $colkey eq 'center'}{tr}Default{/tr}{else}{tr}None{/tr}{/if}
{/section}
{/foreach}
{/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}
{section name=ix loop=$assignables.border}
{$assignables.border[ix].name}
{sectionelse}
{tr}No records found{/tr}
{/section}
{/forminput}
{/if}
{formlabel label="Position" for="pos"}
{forminput}
{tr}left column{/tr}
{tr}right column{/tr}
{formhelp note="Select the column this module should be displayed in."}
{/forminput}
{formlabel label="Order" for="ord"}
{forminput}
{section name=ix loop=$orders}
{$orders[ix]}
{/section}
{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}
{section name=ix loop=$assignables.center}
{$assignables.center[ix].name}
{sectionelse}
{tr}No records found{/tr}
{/section}
{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}
{section name=ix loop=$orders}
{$orders[ix]}
{/section}
{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}
{section name=ix loop=$styles}
{$styles[ix]}
{/section}
{formhelp note="Pick the theme for your personal Homepage."}
{/forminput}
{/form}
{/jstab}
{/if}
{/jstabs}