@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' 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'] />
@inputGroup>
@formGroup>
@tform>
@pageHeader>
<@tabs>
<@tabList>
<#list groups_list as group>
<#assign index = group?index>
<#if index == 0 ><#assign tabactive = true><#else><#assign tabactive = false>#if>
<@tabLink active=tabactive href='#group-${index}' title='${group.name}' />
#list>
@tabList>
<@tabContent>
<#list groups_list as group>
<#assign index = group?index>
<#if index == 0 ><#assign tabactive = true><#else><#assign tabactive = false>#if>
<@tabPanel active=tabactive id='group-${index}'>
<@tform action='jsp/admin/DoModifyProperties.jsp'>
<@input type='hidden' name='token' value='${token}' />
<@row class='row-cols-1 row-cols-md-3'>
<#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>
#list>
<#list groupList?sort as groupCol>
<#assign groupName=''>
<#assign groupIdx=0>
<#list group.localizedDataList?filter( groupItem -> groupItem.group = groupCol ) as groupItem>
<#if groupName='' && groupIdx !=0>
<#assign prefix=groupItem.key?keep_before(".site_property") >
<#assign groupName>#i18n{${prefix}.site_property.${groupCol}.group.title}#assign>
${groupName}
<#assign groupIdx++>
#if>
<#assign labelText=groupItem.label>
<#if groupItem.key?ends_with( ".checkbox" )><#assign labelText=''>#if>
<#if groupItem.help?length gt 0><#assign helpText = groupItem.help><#else><#assign helpText = groupItem.key>#if>
<@columns params='data-prop="${groupName}"'>
<@box>
<@boxBody class='searchable p-2'>
<@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}@input>
<#elseif groupItem.key?ends_with( ".htmlblock" )>
<@input type='textarea' name=groupItem.key id=groupItem.key class='richtext'>${groupItem.value?html}@input>
<#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 />
#if>
<@input type='hidden' name='${groupItem.key}' value='0' />
<#elseif groupItem.key?contains( "color" )>
<@input type='color' class='color-input' name=groupItem.key id=groupItem.key value=groupItem.value?html />
<#else>
<@input type='text' name=groupItem.key id=groupItem.key value=groupItem.value?html />
#if>
@formGroup>
@boxBody>
@box>
@columns>
#list>
#list>
@row>
<@row>
<@columns>
<@button class='mt-3' type='submit' buttonIcon='device-floppy' title='#i18n{portal.system.modify_properties.buttonLabel}' />
@columns>
@row>
@tform>
@tabPanel>
#list>
@tabContent>
@tabs>
@pageColumn>
@pageContainer>
<#include "/admin/util/editor/editor.html" />
<@initEditor />