@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}"'/> #if> @boxHeader> <@boxBody class='p-0'>
<#if portlet_page_name?has_content>${portlet_page_name?html} #if>(${portlet_page_id?html})
@formGroup> @columns> <@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 /> @formGroup> @columns> <@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' ]![] /> @formGroup> @columns> @row> <@placeTemplates places=portlet_column_places /> @fieldSet>