<@coreAdminCSSLinks /> <#if portletType.modifyScriptTemplate != "" ><#include portletType.modifyScriptTemplate /> <#-- 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.modifySpecificTemplate != "" || portletType.modifySpecificFormTemplate != "" ) /> <#assign fieldCols = hasContent?then( 12, 6 ) /> <#include "/admin/portlet/portlet_form_macros.html" /> <@tform id='form-portlet' name='form' action='jsp/admin/${portletType.doModifyUrl}' params='target="_top"'> <@input type='hidden' name='portlet_id' value='${portlet.id}' /> <@input type='hidden' name='portlet_type_id' value='${portletType.id}' /> <#-- The device flags have no field on this form: they keep their values --> <#if small_checked?has_content> <#if normal_checked?has_content> <#if large_checked?has_content> <#if xlarge_checked?has_content> <@box class='manage-portlet'> <@boxHeader title='${portletType.name}' class='py-1' titleAuto=false> <#-- The status is saved at once by the switch, apart from the form: the switch has no name, the form does not send it --> <#assign portletPublished = ( portlet.status == portlet_status_published ) />
#i18n{portal.site.modify_portlet.labelStatus} <#if portletPublished>#i18n{portal.site.modify_portlet.statusPublished}<#else>#i18n{portal.site.modify_portlet.statusUnpublished}
<@button type='submit' buttonIcon='check' title='#i18n{portal.site.create_portlet.buttonValidate}' color='primary' size='sm' /> <#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='${portlet.name}' 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' id='display_portlet_title_yes' value='0' orientation='h' checked=( portlet.displayPortletTitle == 0 ) labelKey='#i18n{portal.site.create_portlet.radioButtonDisplayPortletTitleYes}' labelFor='display_portlet_title_yes'/> <@radioButton name='display_portlet_title' id='display_portlet_title_no' value='1' orientation='h' checked=( portlet.displayPortletTitle == 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='${portlet.idTemplate?c}' items=portlet_template_combo /> <@fieldSet legend='#i18n{portal.site.modify_portlet.sectionPlacement}'> <@row class='g-2'> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='page_id' labelKey='#i18n{portal.site.modify_portlet.labelPortletPage}' rows=2> <@select name='page_id' id='page_id' default_value='${portlet.pageId?c}' items=portlet_pages_list params='data-current-page="${portlet.pageId?c}"' /> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='column' labelKey='#i18n{portal.site.create_portlet.labelColumn}' rows=2> <@select name='column' id='column' default_value='${portlet.column}' items=portlet_columns_combo /> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='order' labelKey='#i18n{portal.site.modify_portlet.labelPlace}' rows=2> <@placeTemplates places=portlet_column_places otherPage=true />
#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' id='accept_alias_yes' value='1' orientation='h' checked=( portlet.acceptAlias == 1 ) labelKey='#i18n{portal.util.labelYes}' labelFor='accept_alias_yes' /> <@radioButton name='accept_alias' id='accept_alias_no' value='0' orientation='h' checked=( portlet.acceptAlias == 0 ) 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='${portlet.role}' items=portlet_role_combo /> <#-- The style applies to the portlets rendered by XML and XSL only, the server asks for it in that case alone --> <#if portlet.isContentGeneratedByXmlAndXsl( )> <@columns xs=12 sm=fieldCols> <@formGroup labelFor='style' labelKey='#i18n{portal.site.create_portlet.labelStyle}' rows=2> <@select name='style' default_value='${portlet.styleId}' items=portlet_style_combo />
<#if hasContent>
<#if portletType.modifySpecificTemplate != "" ><#include portletType.modifySpecificTemplate /> <#if portletType.modifySpecificFormTemplate != "" ><#include portletType.modifySpecificFormTemplate />
<#-- 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.pageId}' params='target="_top"' color='secondary' buttonIcon='x' title='#i18n{portal.util.labelCancel}' size='' />
<#if portletType.modifyScriptTemplate != "" ><#include portletType.modifyScriptTemplate! /> <@portletFormScript />