<@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 ) /> <#include "/admin/portlet/portlet_form_macros.html" /> <@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}' /> <#-- The device flags have no field on this form: a new portlet shows on every device --> <@box class='manage-portlet'> <@boxHeader title='${portletType.name}' class='py-1' boxTools=true > <#if hasContent> <@button buttonIcon='layout-sidebar-left-collapse' id='btn-toggle-properties' size='sm' color='default' title='#i18n{portal.site.modify_portlet.buttonHideProperties}' hideTitle=['all'] params='aria-expanded="true" aria-controls="portlet-properties" data-label-hide="#i18n{portal.site.modify_portlet.buttonHideProperties}" data-label-show="#i18n{portal.site.modify_portlet.buttonShowProperties}"'/> <@boxBody class='p-0'>
<@fieldSet legend='#i18n{portal.site.modify_portlet.sectionGeneral}'> <@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 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 /> <@fieldSet legend='#i18n{portal.site.modify_portlet.sectionPlacement}'> <@row class='g-2'> <@columns xs=12 sm=fieldCols> <@formGroup labelKey='#i18n{portal.site.modify_portlet.labelPortletPage}' rows=2>

<#if portlet_page_name?has_content>${portlet_page_name?html} (${portlet_page_id?html})

<@columns xs=12 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=12 sm=fieldCols> <@formGroup labelFor='order' labelKey='#i18n{portal.site.modify_portlet.labelPlace}' rows=2> <#-- At the end of the column 1 until the address gives another column or place --> <#assign firstColumnOthers = portlet_column_places[ '1' ]![] /> <@placeTemplates places=portlet_column_places />
#i18n{portal.site.modify_portlet.sectionAdvanced} <@row class='g-2'> <@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> <@formGroup labelFor='role' labelKey='#i18n{portal.site.create_portlet.labelRole}' rows=2> <@select name='role' default_value='none' items=portlet_role_combo /> <#-- The style applies to the portlets rendered by XML and XSL, the types that have styles --> <#if portlet_style_combo?has_content> <@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 hasContent>
<#if portletType.createSpecificTemplate != "" ><#include portletType.createSpecificTemplate /> <#if portletType.createSpecificFormTemplate != "" ><#include portletType.createSpecificFormTemplate />
<#-- One bar for the whole form, kept in sight at the bottom of the screen however long the content -->
<@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! /> <@portletFormScript />