@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 class='pt-0'>
<#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='d-block properties-container'>
<#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>
<@columns class='col-property' params='data-prop="${groupCol}"'>
<#assign groupName=''>
<#assign helpText=''>
<#list group.localizedDataList?filter( groupItem -> groupItem.group = groupCol ) as groupItem>
<#if groupName=''>
<#assign prefix=groupItem.key?keep_before(".site_property") >
<#assign groupName>#i18n{${prefix}.site_property.${groupCol}.group.title}#assign>
${groupName}
#if>
<#assign labelText=groupItem.label>
<#if groupItem.key?ends_with( ".checkbox" )><#assign labelText=''>#if>
<#if groupItem.help?length gt 0><#assign helpText = groupItem.help>#if>
<@box>
<@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}@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" )>
<@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 />
@inputGroupItem>
@inputGroup>
<#else>
<@input type='text' name=groupItem.key id=groupItem.key value=groupItem.value?html />
#if>
@formGroup>
@boxBody>
@box>
#list>
@columns>
#list>
@row>
<@row class='position-fixed bottom-0 end-0 w-100' params='style="height:5rem"'>
<@columns class='d-flex justify-content-center align-items-center col-12' params='style="background-color:rgba(255,255,255,.8)"'>
<@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 />