ui.topics.form.topicFormConfigComponents.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="existingValues" type="com.infobip.kafkistry.service.ExistingValues" -->
<#import "../../common/documentation.ftl" as doc>
<#import "../../common/infoIcon.ftl" as info>
<#import "../../common/selectLocation.ftl" as commonLocComp>
<#macro topicProperties partitions replication>
#macro>
<#macro configEntry key, value, doc>
${key} <@info.icon tooltip=doc?replace('"', "'")/>
#macro>
<#macro configEntries config>
<#-- @ftlvariable name="config" type="java.util.Map" --->
Config key
Value
<#list config as key, value>
<@configEntry key=key value=value doc=(existingValues.topicConfigDoc[key])!''/>
#list>
#macro>
<#macro clusterOverride clusterIdentifier clusterTag overrides topicGlobalProperties>
<#-- @ftlvariable name="overrides" type="java.util.Map>" -->
<#-- @ftlvariable name="topicGlobalProperties" type="com.infobip.kafkistry.model.TopicProperties" -->
<@commonLocComp.selectLocation selectedIdentifier=clusterIdentifier selectedTag=clusterTag/>
↑
↓
<#assign properties = overrides["properties"]!topicGlobalProperties>
<#assign propertiesOverriden = overrides["properties"]??>
<@topicProperties partitions=properties.partitionCount replication=properties.replicationFactor/>
<#assign config = overrides["config"]!{}>
<@configEntries config=config/>
#macro>