<#assign masonryRowParams>data-masonry='{"percentPosition": true }' <@tform action='jsp/admin/DoModifyProperties.jsp' class='mt-2'> <@pageContainer> <@pageColumn> <@pageHeader title='#i18n{portal.system.modify_properties.boxTitle}'> <@tform> <@formGroup labelFor='plugin_type' labelKey='#i18n{portal.system.manage_plugins.buttonFilter}' hideLabel=['all'] formStyle='inline'> <@inputGroup> <@input name='search_prop' type='search' id='search_prop' placeHolder='#i18n{portal.system.manage_plugins.buttonFilter}' params='autocomplete="off" addons' /> <@button color='primary' title='#i18n{portal.system.manage_plugins.buttonFilter}' buttonIcon='filter' hideTitle=['all'] /> <@tabs> <@tabList> <#list groups_list as group> <#assign index = group?index> <#if index == 0 ><#assign tabactive = true><#else><#assign tabactive = false> <#assign groups = group.localizedDataList?map( prop -> prop.group )> <#assign groupList = []> <#list groups?sort as groupGroup><#if !groupList?seq_contains(groupGroup)><#assign groupList = groupList + [groupGroup]> <#if groupList?size gt 0> <@tabLink active=tabactive href='#group-${index}' title=group.description tabLabel=group.name /> <@tabContent> <#list groups_list as group> <#assign index = group?index> <#if index == 0 ><#assign tabactive = true><#else><#assign tabactive = false> <@tabPanel active=tabactive id='group-${index}'> <@input type='hidden' name='token' value='${token}' /> <#assign groups = group.localizedDataList?map( prop -> prop.group )> <#assign groupList = []> <#list groups?sort as groupGroup><#if !groupList?seq_contains(groupGroup)><#assign groupList = groupList + [groupGroup]> <#if groupList?size gt 0> <@row class='g-3' params=masonryRowParams> <#list groupList?sort as groupCol> <#if groupCol?trim !=''> <@columns xs=12 sm=6 md=4 class='mb-3' params='data-prop="${groupCol}"'> <@box class='properties-group'> <@boxBody> <#assign groupName=''> <#list group.localizedDataList?filter( groupItem -> groupItem.group = groupCol ) as groupItem> <#if groupName=''> <#assign prefix=groupItem.key?keep_before(".site_property") > <#if groupCol?trim !=''> <#assign groupName>#i18n{${prefix}.site_property.${groupCol}.group.title} <#if groupName?trim !=''><@h level=3>${groupName!} <#if groupItem.key?ends_with( ".select.options" ) || groupItem.key?ends_with( ".radio.options" )> <@input type='hidden' class='hidden-options' name=groupItem.key value=groupItem.value?html /> <#else> <#assign labelText=groupItem.label> <#if groupItem.key?ends_with( ".checkbox" )><#assign labelText=''> <#assign helpText=groupItem.help!''> <@box id='box_${groupItem.key}' class=boxClass> <@boxBody class='searchable'> <@formGroup class='property' labelKey=labelText labelFor=groupItem.key helpKey=helpText params=' data-property="${groupItem.key}"' rows=2> <#if groupItem.key?ends_with( ".textblock" )> <@input type='textarea' name=groupItem.key id=groupItem.key>${groupItem.value?html} <#elseif groupItem.key?ends_with( ".htmlblock" )> <@input type='textarea' name=groupItem.key id=groupItem.key class='richtext'>${groupItem.value?html} <#elseif groupItem.key?ends_with( ".checkbox" )> <#if groupItem.value == "1"> <@checkBox orientation='switch' name=groupItem.key id=groupItem.key labelKey=groupItem.label value='1' checked=true /> <#else> <@checkBox orientation='switch' name=groupItem.key id=groupItem.key labelKey=groupItem.label value='1' checked=false /> <@input type='hidden' name='${groupItem.key}' value='0' /> <#elseif groupItem.key?ends_with( ".select" )> <#assign optionsKey = groupItem.key + ".options"> <#assign optionsRaw = dskey(optionsKey)!''> <#if optionsRaw?starts_with('DS')><#assign optionsRaw = ''> <@input type='hidden' name='${groupItem.key}' value=groupItem.value?html id='${groupItem.key}_value' /> <@select name='${groupItem.key}_select' id='${groupItem.key}' class='form-select property-select' params='data-target="${groupItem.key}_value"'> <#list optionsRaw?split('|') as opt> <#assign optValue = opt?trim> <#if optValue != ''><@option value=optValue selected=(optValue == groupItem.value) label=optValue?replace('_', ' ') /> <#elseif groupItem.key?ends_with( ".radio" )> <#assign optionsKey = groupItem.key + ".options"> <#assign optionsRaw = dskey(optionsKey)!''> <#if optionsRaw?starts_with('DS')><#assign optionsRaw = ''> <@input type='hidden' name='${groupItem.key}' value=groupItem.value?html id='${groupItem.key}_value' />
<#list optionsRaw?split('|') as opt> <#assign optValue = opt?trim> <#if optValue != ''> <@radioButton name='${groupItem.key}_radio' id='${groupItem.key}_${optValue}' labelKey=optValue?replace('_', ' ') value=optValue checked=(optValue == groupItem.value) orientation='inline' />
<#elseif groupItem.key?contains( "color" )> <@inputGroup class='color-wrapper-input'> <@input type='text' class='color-input' name=groupItem.key id=groupItem.key value=groupItem.value?html /> <@inputGroupItem> <@input type='color' class='color-input' name='color-input' value=groupItem.value?html params='colorspace="display-p3" alpha' /> <#else> <@input type='text' name=groupItem.key id=groupItem.key value=groupItem.value?html /> <#-- Save bar : sticky (not fixed) so it stays at the bottom of the viewport in every layout. Since Tabler 1.5 the boxed layout sets contain:layout on .page, which turns a position-fixed bar into one anchored to the bottom of the page box. --> <@row class='sticky-bottom w-100 py-2' params='style="background-color:rgba(255,255,255,.8)"'> <@columns class='d-flex justify-content-center align-items-center col-12'> <@button type='submit' buttonIcon='device-floppy' title='#i18n{portal.system.modify_properties.buttonLabel}' /> <@overlay /> <#include "/admin/util/editor/editor.html" /> <@initEditor />