{{#if hasServiceTargets}} {{banner-message color="bg-info" icon="icon-info" message=(t 'formIngressBackends.warning' htmlSafe=true)}} {{/if}}
{{#if editing}} {{/if}}
{{#if pathArray.length}} {{#unless isDefault}} {{/unless}} {{#if editing}} {{/if}} {{#each pathArray as |path|}} {{#unless isDefault}} {{/unless}} {{#if editing}} {{/if}} {{/each}}
{{t 'formIngressBackends.path.label'}}{{t 'formIngressBackends.target'}} {{t 'formIngressBackends.targetPort.label'}}{{#if editing}}{{field-required}}{{/if}} 
{{#input-or-display editable=editing value=path.path classesForDisplay="clip"}} {{input type="text" class="input-sm" value=path.path placeholder=(t 'formIngressBackends.path.placeholder')}} {{/input-or-display}} {{#if (eq path.backendType 'service')}} {{schema/input-dns-record culsterIpNotNull=false disabled=(not editing) editing=editing obj=path.service selectClass="input-sm" selected=path.serviceId selectedNamespace=namespace }} {{else if (eq path.backendType 'workload')}} {{schema/input-workload editing=editing readOnly=(not editing) selectClass="input-sm" selected=path.serviceId selectedNamespace=namespace }} {{/if}} {{#input-or-display editable=editing value=path.targetPort classesForDisplay="clip"}} {{#if (eq path.backendType 'service')}} {{#if path.service}} {{new-select classNames="form-control input-sm" optionValuePath="port" optionLabelPath="port" content=path.service.availablePorts value=path.targetPort prompt="formIngressBackends.targetPort.prompt" localizedPrompt=true }} {{else}} {{t 'generic.na'}} {{/if}} {{else}} {{input-integer class="input-sm" min="1" max="65535" value=path.targetPort placeholder=(t 'formIngressBackends.targetPort.placeholder')}} {{/if}} {{/input-or-display}}
{{else}}
{{t 'formIngressBackends.noRules'}}
{{/if}}