{{#if (eq model.mode "customLogPath")}}
{{t 'formVolumeRow.customLogPath.helpText'}}
{{#if editing}}
{{/if}}
{{else}}
{{#input-or-display editable=editing value=model.volume.name}} {{input type="text" value=model.volume.name placeholder=(t 'formVolumeRow.name.placeholder')}} {{/input-or-display}}
{{t (concat 'formVolumeRow.mode.' model.mode)}} {{#if editing}} {{#if (eq model.mode "newPvc")}} {{else if (or (eq model.mode "existingVolume") (eq model.mode "newVolume"))}} {{/if}} {{/if}}
{{#if editing}}
{{/if}}
{{/if}} {{#if (eq model.mode "existingPvc")}}
{{#if editing}} {{new-select value=model.volume.persistentVolumeClaim.persistentVolumeClaimId content=pvcChoices prompt=(t 'formVolumeRow.prompt') localizedLabel=false }} {{else}}
{{model.volume.persistentVolumeClaim.persistentVolumeClaimId}}
{{/if}}
{{else if (eq model.mode "bindMount")}} {{volume-source/source-host-path volume=model.volume editing=editing }} {{else if (eq model.mode "customLogPath")}} {{volume-source/source-custom-log-path remove="remove" model=model volume=model.volume mounts=model.mounts editing=editing }} {{else if (eq model.mode "secret")}} {{volume-source/source-secret namespace=namespace volume=model.volume editing=editing }} {{else if (eq model.mode "certificate")}} {{volume-source/source-certificate namespace=namespace volume=model.volume editing=editing }} {{else if (eq model.mode "configmap")}} {{volume-source/source-config-map namespace=namespace volume=model.volume editing=editing }} {{/if}} {{#if (eq model.mode "customLogPath")}} {{else}}
{{#if model.mounts.length}} {{#each model.mounts as |mnt|}} {{/each}}
{{t "formVolumeRow.mounts.mountPoint"}}{{#if editing}}{{field-required}}{{/if}}   {{t "formVolumeRow.mounts.subPath"}}   {{t "formVolumeRow.mounts.readOnly"}}  
{{#if editing}} {{input value=mnt.mountPath}} {{else}} {{mnt.mountPath}} {{/if}} {{#if editing}} {{input value=mnt.subPath}} {{else}} {{mnt.subPath}} {{/if}} {{#if editing}} {{input type="checkbox" classNames="form-control" checked=mnt.readOnly}} {{else}} {{mnt.readOnly}} {{/if}} {{#if editing}} {{/if}}
{{else}} {{t "formVolumeRow.mounts.helper"}} {{/if}} {{#if editing}}
{{/if}}
{{/if}}