<@coreAdminCSSLinks /> <#-- A portlet type with a specific template has content to edit : the common properties go to a sticky side bar next to it. Otherwise they are the whole form and sit in the center of the screen. --> <#assign hasContent = ( portletType.createSpecificTemplate != "" || portletType.createSpecificFormTemplate != "" ) /> <#assign fieldCols = hasContent?then( 12, 6 ) /> <@tform method='post' name='form' id='form-portlet' action='jsp/admin/${portletType.doCreateUrl}' params='target="_top"'> <@input type='hidden' name='page_id' value='${portlet_page_id}' /> <@input type='hidden' name='portlet_type_id' value='${portletType.id}' /> <@box class='manage-portlet'> <@boxHeader title='${portletType.name}' boxTools=true > <#if hasContent> <@button buttonIcon='layout-sidebar-left-collapse' id='btn-toggle-properties' size='sm' color='default' title='#i18n{portal.util.labelMore}' hideTitle=['all'] params='aria-expanded="true" aria-controls="portlet-properties"'/> <@boxBody class='p-0'>
<@row class='g-2'> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='portlet_name' labelKey='#i18n{portal.site.create_portlet.labelPortletTitle}' rows=2 mandatory=true> <@input type='text' name='portlet_name' value='' maxlength=dskey('portal.site.site_property.portlet.title.maxlength')?number!70 /> <@columns xs=12 sm=fieldCols> <@formGroup formStyle='' labelKey='#i18n{portal.site.create_portlet.labelDisplayPortletTitle}' labelClass='mb-3' rows=2> <@radioButton name='display_portlet_title' orientation='h' id='display_portlet_title_yes' value='0' checked=true labelKey='#i18n{portal.site.create_portlet.radioButtonDisplayPortletTitleYes}' labelFor='display_portlet_title_yes'/> <@radioButton name='display_portlet_title' orientation='h' id='display_portlet_title_no' value='1' labelKey='#i18n{portal.site.create_portlet.radioButtonDisplayPortletTitleNo}' labelFor='display_portlet_title_no'/> <#if portletType.id?starts_with('DOCUMENT')> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='style' labelKey='#i18n{portal.site.create_portlet.labelStyle}' rows=2> <@select name='style' default_value='0' items=portlet_style_combo /> <#if portlet_template_combo?has_content> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='id_template' labelKey='#i18n{portal.site.create_portlet.labelTemplate}' rows=2 mandatory=true> <@select name='id_template' id='id_template' default_value='' items=portlet_template_combo /> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='page_id' labelKey='#i18n{portal.site.modify_portlet.labelPortletPageId}' rows=2> <@input type='text' name='page_id' disabled=true readonly=true value='${portlet_page_id}'/> <@columns xs=6 sm=fieldCols> <@formGroup labelFor='column' labelKey='#i18n{portal.site.create_portlet.labelColumn}' rows=2> <@select name='column' id='column' default_value='1' items=portlet_columns_combo /> <@columns xs=6 sm=fieldCols> <@formGroup labelFor='order' labelKey='#i18n{portal.site.create_portlet.labelOrder}' rows=2> <@select name='order' id='order' default_value='1' items=portlet_order_combo /> <@columns xs=12 sm=fieldCols> <@formGroup formStyle='' labelKey='#i18n{portal.site.create_portlet.labelAlias}' labelClass='mb-3' rows=2> <@radioButton name='accept_alias' orientation='h' id='accept_alias_yes' value='1' labelKey='#i18n{portal.util.labelYes}' labelFor='accept_alias_yes' /> <@radioButton name='accept_alias' orientation='h' id='accept_alias_no' value='0' checked=true labelKey='#i18n{portal.util.labelNo}' labelFor='accept_alias_no' /> <@columns xs=12 sm=fieldCols params='hidden'> <@formGroup labelKey='#i18n{portal.site.create_portlet.labelDisplayOnDevice}' rows=2> <@checkBox orientation='switch' name='display_on_small_device' id='display_on_small_device' value='1' checked=true labelKey='#i18n{portal.site.create_portlet.checkboxSmallDevice}' /> <@checkBox orientation='switch' name='display_on_normal_device' id='display_on_normal_device' value='1' checked=true labelKey='#i18n{portal.site.create_portlet.checkboxNormalDevice}' /> <@checkBox orientation='switch' name='display_on_large_device' id='display_on_large_device' value='1' checked=true labelKey='#i18n{portal.site.create_portlet.checkboxLargeDevice}' /> <@checkBox orientation='switch' name='display_on_xlarge_device' id='display_on_xlarge_device' value='1' checked=true labelKey='#i18n{portal.site.create_portlet.checkboxXLargeDevice}' /> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='role' labelKey='#i18n{portal.site.create_portlet.labelRole}' rows=2> <@select name='role' default_value='none' items=portlet_role_combo /> <@columns xs=12> <@formGroup rows=2 class='mb-0'> <@button type='submit' buttonIcon='check' title='#i18n{portal.site.create_portlet.buttonValidate}' color='primary' size='' /> <@aButton href='jsp/admin/site/AdminSite.jsp?page_id=${portlet_page_id}' params='target="_top"' color='secondary' buttonIcon='x' title='#i18n{portal.util.labelCancel}' size='' />
<#if hasContent>
<#if portletType.createSpecificTemplate != "" ><#include portletType.createSpecificTemplate /> <#if portletType.createSpecificFormTemplate != "" ><#include portletType.createSpecificFormTemplate /> <@formGroup rows=2 class='mt-3'> <@button type='submit' buttonIcon='check' title='#i18n{portal.site.create_portlet.buttonValidate}' color='primary' size='' /> <@aButton href='jsp/admin/site/AdminSite.jsp?page_id=${portlet_page_id}' params='target="_top"' color='secondary' buttonIcon='x' title='#i18n{portal.util.labelCancel}' size='' />
<#if portletType.createScriptTemplate != "" ><#include portletType.createScriptTemplate! />