{{#if (and ports.length (not showIp))}} {{#if editing}}
{{t 'formPorts.showIpLink'}}
{{/if}} {{/if}} {{#if ports.length}} {{#if showIp}} {{/if}} {{#each ports as |port|}} {{#if showIp}} {{/if}} {{/each}}
{{#if port.existing}} {{#if port.hostIP}} {{port.hostIP}} {{else}} {{t 'generic.any'}} {{/if}} {{else}} {{#if editing}} {{input class="form-control input-sm" type="text" value=port.hostIP placeholder=(t 'formPorts.hostIp.placeholder')}} {{else}} {{#if port.hostIP}} {{port.hostIP}} {{else}} {{t 'generic.na'}} {{/if}} {{/if}} {{/if}}   {{#if editing}} {{input-integer class="form-control input-sm public" min="1" max="65535" value=port.hostPort placeholder=(t 'formPorts.hostPort.placeholder')}} {{else}} {{port.hostPort}} {{/if}}   {{#if port.existing}}
{{port.containerPort}}
{{else}} {{#if editing}} {{input-integer class="form-control input-sm" min="1" max="65535" value=port.containerPort placeholder=(t 'formPorts.containerPort.placeholder')}} {{else}} {{port.containerPort}} {{/if}} {{/if}}
  {{#if port.existing}}
{{upper-case port.protocol}}
{{else}} {{#if editing}} {{new-select class="form-control input-sm" content=protocolOptions value=port.protocol }} {{else}} {{port.protocol}} {{/if}} {{/if}}
{{#if port.existing}}   {{else}} {{#if editing}} {{/if}} {{/if}}
{{else}} {{#unless editing}} {{t 'formPorts.noPorts'}} {{/unless}} {{/if}}
{{#if editing}} {{/if}}