All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ui.quotas.form.entityQuotasForm.ftl Maven / Gradle / Ivy

There is a newer version: 0.8.0
Show newest version

<#-- @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 clientId == "
    <#assign clientId = ''>


<#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">
                
            <#else>
                <#assign selectedEntityType = "DEFAULT_USER">
            
        <#else>
            <#if (entityQuotas.entity.clientId)??>
                <#if entityQuotas.entity.clientId == "">
                    <#assign selectedEntityType = "USER_DEFAULT_CLIENT">
                <#else>
                    <#assign selectedEntityType = "USER_CLIENT">
                
            <#else>
                <#assign selectedEntityType = "USER">
            
        
    <#else>
        <#if (entityQuotas.entity.clientId)??>
            <#if entityQuotas.entity.clientId == "">
                <#assign selectedEntityType = "DEFAULT_CLIENT">
            <#else>
                <#assign selectedEntityType = "CLIENT">
            
        <#else>
            <#-- should not be possible-->
            <#assign selectedEntityType = "USER">
        
    
<#else>
    <#assign selectedEntityType = "USER">

<#assign entityIdInputDisabled = !(newName??)>


Quota entity
disabled>
disabled>
<#if (entityQuotas.presence)??> <#assign presence = entityQuotas.presence> <#include "../../common/presenceForm.ftl">
<#include "../../common/existingValues.ftl">
<#macro quotaPropertiesCells properties>
?
?
<#import "../../common/selectLocation.ftl" as commonLocComp> <#macro quotaPropertiesOverrideRow properties selectedIdentifier selectedTag> <@commonLocComp.selectLocation selectedIdentifier=selectedIdentifier selectedTag=selectedTag /> <@quotaPropertiesCells properties=properties/> x
Quota properties
<@quotaPropertiesCells properties=(entityQuotas.properties)!{}/> <#if (entityQuotas)??> <#list entityQuotas.clusterOverrides as clusterIdentifier, properties> <@quotaPropertiesOverrideRow properties=properties selectedIdentifier=clusterIdentifier selectedTag=""/> <#list entityQuotas.tagOverrides as tag, properties> <@quotaPropertiesOverrideRow properties=properties selectedIdentifier="" selectedTag=tag/>
Location Producer byte rate Consumer byte rate Request percentage
Add cluster/tag override...

<#include "../../common/updateForm.ftl">




© 2015 - 2024 Weber Informatics LLC | Privacy Policy