ui/app/components/volume-source/source-host-path/template.hbs

27 lines
822 B
Handlebars

<div class="row">
<div class="col span-6">
<label class="acc-label">{{t 'volumeSource.host-path.path.label'}}</label>
{{#input-or-display editable=editing value=config.path}}
{{input type="text" value=config.path classNames="form-control" placeholder=(t 'cruPersistentVolume.local.path.placeholder')}}
{{/input-or-display}}
</div>
<div class="col span-6">
<label class="acc-label">{{t 'volumeSource.host-path.kind.label'}}</label>
{{#if editing}}
{{new-select
value=config.kind
content=kindChoices
localizedLabel=true
}}
{{else if config.kind}}
<div>
{{t (concat 'volumeSource.host-path.kind.' config.kind)}}
</div>
{{else}}
<div>
{{t 'volumeSource.host-path.kind.Any'}}
</div>
{{/if}}
</div>
</div>