{* $Id$ *} {strip} {title help="Modules" admpage="module"}{tr}Admin Modules{/tr}{/title}
{ticket}
{if empty($smarty.request.show_hidden_modules)} {button show_hidden_modules="y" _icon_name="ok" _text="{tr}Show hidden modules{/tr}"} {else} {button show_hidden_modules="" _icon_name="disable" _text="{tr}Hide hidden modules{/tr}"} {/if} {button _text="{tr}Save{/tr}" _type="primary" _icon_name="floppy" _id="save_modules" _ajax="n"} {if $tiki_p_edit_menu eq 'y'} {button href="tiki-admin_menus.php" _icon_name="menu" _type="link" _text="{tr}Admin Menus{/tr}"} {/if} {button href="./" _icon_name="disable" _type="link" _text="{tr}Exit Modules{/tr}"}
{if !empty($missing_params)} {remarksbox type="warning" title="{tr}Modules Parameters{/tr}"} {tr}The following required parameters are missing:{/tr}
{section name=ix loop=$missing_params} {$missing_params[ix]} {if !$smarty.section.ix.last}, {/if} {/section} {/remarksbox} {/if} {remarksbox type="note" title="{tr}Modules{/tr}" icon="star"}

{tr}Note:{/tr} {tr}Links and buttons in modules, apart from the Application Menu, have been deliberately disabled on this page to make drag and drop more reliable. Click here to return HOME{/tr}
{tr}More info here{/tr} {icon name="help" href="http://dev.tiki.org/Modules+Revamp" class="alert-link"}

{/remarksbox} {tabset} {tab name="{tr}Assigned modules{/tr}"} {if $prefs.feature_tabs neq 'y'} {tr}Assign/Edit modules{/tr} {/if}

{tr}Assigned Modules{/tr}

{button edit_assign=0 cookietab=2 _auto_args="edit_assign,cookietab" _text="{tr}Add module{/tr}"}
{if $userHasAssignedModules} {remarksbox type="warning" title="{tr}Warning{/tr}"} {tr}You will need to go{/tr} {tr}here{/tr} {tr}to reorder or move modules in the left or right columns since you have created a custom order for these.{/tr} {tr}Use the table below to assign previously unassigned modules, or reorder and move modules where there is no custom order created by the user.{/tr} {/remarksbox} {/if} {tabset} {foreach $module_zone_list as $zone_initial => $zone_info} {tab name=$zone_info.name|capitalize}
{* table-responsive class cuts off css drop-down menus *}
{foreach $assigned_modules[$zone_initial] as $module} {foreachelse} {norecords _colspan=7} {/foreach}
{tr}Name{/tr} {tr}Order{/tr} {tr}Cache{/tr} {tr}Rows{/tr} {tr}Parameters{/tr} {tr}Groups{/tr}
{$module.name|escape} {$module.ord} {$module.cache_time} {$module.rows} {$module.params_presentable} {$module.module_groups} {actions} {strip}
{ticket}
{ticket}
{icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"}
{ticket}
{/strip} {/actions}
{/tab} {/foreach} {/tabset}
{ticket}
{/tab} {if isset($smarty.request.edit_assign) or $preview eq "y"} {tab name="{tr}Edit module{/tr}"} {if $assign_name eq ''}

{tr}Assign new module{/tr}

{else}

{tr}Edit this assigned module:{/tr} {$assign_name}

{/if} {if $preview eq 'y'}

{tr}Preview{/tr}

{$preview_data} {/if}
{* on the initial selection of a new module, reload the page to the #assign anchor *} {if !empty($info.moduleId)} {elseif !empty($moduleId)} {/if}
{* because changing the module name will auto-submit the form, no reason to display these fields until a module is selected *} {include file='admin_modules_form.tpl'} {if empty($assign_name)}
{else} {jq}$("#module_params").tabs();{/jq} {/if}
{/tab} {/if} {tab name="{tr}Custom Modules{/tr}"} {if $prefs.feature_tabs neq 'y'} {tr}Custom Modules{/tr} {/if}

{tr}Custom Modules{/tr}

{section name=user loop=$user_modules} {sectionelse} {norecords _colspan=3} {/section}
{tr}Name{/tr} {tr}Title{/tr}
{$user_modules[user].name|escape} {$user_modules[user].title|escape} {actions} {strip} {icon name='edit' _menu_text='y' _menu_icon='y' alt="{tr}Edit{/tr}"} {icon name='ok' _menu_text='y' _menu_icon='y' alt="{tr}Assign{/tr}"}
{ticket}
{/strip} {/actions}

{if $um_name eq ''}

{tr}Create new custom module{/tr}

{else}

{tr}Edit this custom module{/tr} {$um_name}

{/if}
{remarksbox type="tip" title="{tr}Tip{/tr}"} {tr}Create your new custom module below. Make sure to preview first and make sure all is OK before assigning it. Using HTML, you will be fine. However, if you improperly use wiki syntax or Smarty code, you could lock yourself out of the site.{/tr} {/remarksbox}
{ticket}

{tr}Objects that can be included{/tr}

{pagination_links cant=$maximum step=$maxRecords offset=$offset}{/pagination_links} {if $prefs.feature_polls eq "y"}
{/if} {if $contents}
{/if} {if $rsss}
{/if} {if $banners}
{/if} {if $wikistructures}
{/if} {pagination_links cant=$maximum step=$maxRecords offset=$offset}{/pagination_links}
{remarksbox type="tip" title="{tr}Tip{/tr}"} {if $prefs.feature_cssmenus eq 'y'} {tr}To use a CSS (Superfish) menu, use one of these syntaxes:{/tr} {/if} {tr}To use a default Tiki menu:{/tr} {/remarksbox}
{textarea name='um_data' id='um_data' _class='form-control' _toolbars='y' _previewConfirmExit='n' _wysiwyg="n"}{$um_data}{/textarea}
{/tab} {tab name="{tr}All Modules{/tr}"}

{tr}All Modules{/tr}

{listfilter selectors='#module_list li'}
{jq} $("#module_list_show_all").click(function(){ $("#module_list li.disabled").toggle($(this).prop("checked")); }); {/jq} {/tab} {/tabset} {/strip}