ui.quotas.form.entityQuotasForm.ftl Maven / Gradle / Ivy
<#-- @ftlvariable name="newName" type="java.lang.String" -->
<#-- @ftlvariable name="entitySourceType" type="java.lang.String" -->
<#-- @ftlvariable name="quotaEntityExists" type="java.lang.Boolean" -->
<#-- @ftlvariable name="branch" type="java.lang.String" -->
<#-- @ftlvariable name="entityQuotas" type="com.infobip.kafkistry.model.QuotaDescription" -->
<#-- @ftlvariable name="existingValues" type="com.infobip.kafkistry.service.ExistingValues" -->
<#-- @ftlvariable name="gitStorageEnabled" type="java.lang.Boolean" -->
<#import "../../common/documentation.ftl" as doc>
<#import "../../common/infoIcon.ftl" as info>
<#assign user = (entityQuotas.entity.user)!''>
<#assign clientId = (entityQuotas.entity.clientId)!''>
<#if user == "
<#assign user = ''>
#if>
<#if clientId == "
<#assign clientId = ''>
#if>
<#if entityQuotas??>
<#if (entityQuotas.entity.user)??>
<#if entityQuotas.entity.user == "">
<#if (entityQuotas.entity.clientId)??>
<#if entityQuotas.entity.clientId == "">
<#assign selectedEntityType = "DEFAULT_USER_DEFAULT_CLIENT">
<#else>
<#assign selectedEntityType = "DEFAULT_USER_CLIENT">
#if>
<#else>
<#assign selectedEntityType = "DEFAULT_USER">
#if>
<#else>
<#if (entityQuotas.entity.clientId)??>
<#if entityQuotas.entity.clientId == "">
<#assign selectedEntityType = "USER_DEFAULT_CLIENT">
<#else>
<#assign selectedEntityType = "USER_CLIENT">
#if>
<#else>
<#assign selectedEntityType = "USER">
#if>
#if>
<#else>
<#if (entityQuotas.entity.clientId)??>
<#if entityQuotas.entity.clientId == "">
<#assign selectedEntityType = "DEFAULT_CLIENT">
<#else>
<#assign selectedEntityType = "CLIENT">
#if>
<#else>
<#-- should not be possible-->
<#assign selectedEntityType = "USER">
#if>
#if>
<#else>
<#assign selectedEntityType = "USER">
#if>
<#assign entityIdInputDisabled = !(newName??)>
Quota entity
disabled#if>>
disabled#if>>
<#if (entityQuotas.presence)??>
<#assign presence = entityQuotas.presence>
#if>
<#include "../../common/presenceForm.ftl">
<#include "../../common/existingValues.ftl">
<#macro quotaPropertiesCells properties>
?
?
#macro>
<#import "../../common/selectLocation.ftl" as commonLocComp>
<#macro quotaPropertiesOverrideRow properties selectedIdentifier selectedTag>
<@commonLocComp.selectLocation selectedIdentifier=selectedIdentifier selectedTag=selectedTag />
<@quotaPropertiesCells properties=properties/>
x
#macro>
Quota properties
Location
Producer byte rate
Consumer byte rate
Request percentage
<@quotaPropertiesCells properties=(entityQuotas.properties)!{}/>
<#if (entityQuotas)??>
<#list entityQuotas.clusterOverrides as clusterIdentifier, properties>
<@quotaPropertiesOverrideRow properties=properties selectedIdentifier=clusterIdentifier selectedTag=""/>
#list>
<#list entityQuotas.tagOverrides as tag, properties>
<@quotaPropertiesOverrideRow properties=properties selectedIdentifier="" selectedTag=tag/>
#list>
#if>
Add cluster/tag override...
<#include "../../common/updateForm.ftl">