@coreAdminCSSLinks />
<#if portletType.modifyScriptTemplate != "" ><#include portletType.modifyScriptTemplate />#if>
<#-- 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 ) />
<@tform typ='inline' 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}' />
<@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"'/>
#if>
@boxHeader>
<@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='${portlet.name}' maxlength=dskey('portal.site.site_property.portlet.title.maxlength')?number!70 />
@formGroup>
@columns>
<@columns xs=12 sm=fieldCols>
<@formGroup formStyle='' labelKey='#i18n{portal.site.create_portlet.labelDisplayPortletTitle}' labelClass='mb-3' rows=2>
<#if portlet.displayPortletTitle = 0><#assign checked = true><#else><#assign checked = false>#if>
<@radioButton name='display_portlet_title' id='display_portlet_title_yes' value='0' orientation='h' checked=checked labelKey='#i18n{portal.site.create_portlet.radioButtonDisplayPortletTitleYes}' labelFor='display_portlet_title_yes'/>
<#if portlet.displayPortletTitle = 1><#assign checked = true><#else><#assign checked = false>#if>
<@radioButton name='display_portlet_title' id='display_portlet_title_no' value='1' orientation='h' checked=checked labelKey='#i18n{portal.site.create_portlet.radioButtonDisplayPortletTitleNo}' labelFor='display_portlet_title_no'/>
@formGroup>
@columns>
<#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='${portlet.styleId}' items=portlet_style_combo />
@formGroup>
@columns>
#if>
<#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 />
@formGroup>
@columns>
#if>
<@columns xs=12 sm=fieldCols>
<@formGroup labelFor='page_id' labelKey='#i18n{portal.site.modify_portlet.labelPortletPageId}' rows=2>
<@input type='text' name='page_id' value='${portlet.pageId}' />
@formGroup>
@columns>
<@columns xs=6 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 />
@formGroup>
@columns>
<@columns xs=6 sm=fieldCols>
<@formGroup labelFor='order' labelKey='#i18n{portal.site.create_portlet.labelOrder}' rows=2>
<@select name='order' id='order' default_value='${portlet.order}' items=portlet_order_combo />
@formGroup>
@columns>
<@columns xs=12 sm=fieldCols>
<@formGroup formStyle='' labelKey='#i18n{portal.site.create_portlet.labelAlias}' labelClass='mb-3' rows=2>
<#if portlet.acceptAlias = 1><#assign checked = true><#else><#assign checked = false>#if>
<@radioButton name='accept_alias' id='accept_alias_yes' value='1' orientation='h' checked=checked labelKey='#i18n{portal.util.labelYes}' labelFor='accept_alias_yes' />
<#if portlet.acceptAlias = 0><#assign checked = true><#else><#assign checked = false>#if>
<@radioButton name='accept_alias' id='accept_alias_no' value='0' orientation='h' checked=checked labelKey='#i18n{portal.util.labelNo}' labelFor='accept_alias_no' />
@formGroup>
@columns>
<@columns xs=12 sm=fieldCols params='hidden'>
<@formGroup labelKey='#i18n{portal.site.create_portlet.labelDisplayOnDevice}' rows=2>
<#if small_checked = 'checked="checked"'><#assign checked = true><#else><#assign checked = false>#if>
<@checkBox orientation='switch' name='display_on_small_device' id='display_on_small_device' value='1' checked=checked labelKey='#i18n{portal.site.create_portlet.checkboxSmallDevice}' />
<#if normal_checked = 'checked="checked"'><#assign checked = true><#else><#assign checked = false>#if>
<@checkBox orientation='switch' name='display_on_normal_device' id='display_on_normal_device' value='1' checked=checked labelKey='#i18n{portal.site.create_portlet.checkboxNormalDevice}' />
<#if large_checked = 'checked="checked"'><#assign checked = true><#else><#assign checked = false>#if>
<@checkBox orientation='switch' name='display_on_large_device' id='display_on_large_device' value='1' checked=checked labelKey='#i18n{portal.site.create_portlet.checkboxLargeDevice}' />
<#if xlarge_checked = 'checked="checked"'><#assign checked = true><#else><#assign checked = false>#if>
<@checkBox orientation='switch' name='display_on_xlarge_device' id='display_on_xlarge_device' value='1' checked=checked labelKey='#i18n{portal.site.create_portlet.checkboxXLargeDevice}' />
@formGroup>
@columns>
<@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 />
@formGroup>
@columns>
<@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.pageId}' params='target="_top"' color='secondary' buttonIcon='x' title='#i18n{portal.util.labelCancel}' size='' />
@formGroup>
@columns>
@row>
<#if hasContent>
<#if portletType.modifySpecificTemplate != "" ><#include portletType.modifySpecificTemplate />#if>
<#if portletType.modifySpecificFormTemplate != "" ><#include portletType.modifySpecificFormTemplate />#if>
<@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.pageId}' params='target="_top"' color='secondary' buttonIcon='x' title='#i18n{portal.util.labelCancel}' size='' />
@formGroup>
#if>
@boxBody>
@box>
@tform>
<#if portletType.modifyScriptTemplate != "" ><#include portletType.modifyScriptTemplate! />#if>