{{#if (and editing (gt rules.length 1))}}
{{#if (lte rules.length 1 )}} {{else}} {{/if}}
{{else}}
{{/if}} {{#if (and defaultProvider (gt capabilities.length 1) )}}
{{new-select classNames="form-control" content=ingressControllersCapabilities localizedPrompt=true optionLabelPath="ingressProvider" optionValuePath="ingressProvider" prompt="editStack.project.prompt" value=selectedProvider }}
{{/if}}
{{#if editing}} {{#unless rule.new}}
{{/unless}} {{#if settings.ingress-ip-domain}}
{{/if}}
{{#if defaultDisabled}}

{{t 'formIngress.hostMode.defaultDisabled'}}

{{/if}}
{{else}}
{{#if (eq mode "default")}} {{t 'formIngress.defaultBackend.mark'}} {{else}} {{rule.host}} {{/if}}
{{/if}}
{{#if (eq mode "manual")}}
{{#input-or-display editable=editing value=rule.host classesForDisplay="clip"}} {{input type="text" class="form-control input-sm" value=rule.host placeholder=(t 'formIngress.host.placeholder')}} {{/input-or-display}}
{{/if}}

{{form-ingress-backends ingress=ingress namespace=namespace isDefault=isDefault rule=rule editing=editing }}