mirror of https://github.com/rancher/ui.git
38 lines
1.3 KiB
Handlebars
38 lines
1.3 KiB
Handlebars
{{#accordion-list-item
|
|
title=(t 'formAllowedHostPathsPodSecurityPolicy.title')
|
|
detail=(t 'formAllowedHostPathsPodSecurityPolicy.detail')
|
|
status=status
|
|
statusClass=statusClass
|
|
expandAll=expandAll
|
|
expand=(action expandFn)
|
|
}}
|
|
<div class="row">
|
|
|
|
{{#unless readOnly}}
|
|
<div>
|
|
<button class="btn bg-link icon-btn" {{action "add"}}>
|
|
<span class="darken"><i class="icon icon-plus text-small"/></span>
|
|
<span>{{t 'formAllowedHostPathsPodSecurityPolicy.path.addLabel'}}</span>
|
|
</button>
|
|
</div>
|
|
{{/unless}}
|
|
|
|
{{#if paths.length}}
|
|
<div>
|
|
{{#each paths as |item|}}
|
|
{{#if readOnly}}
|
|
<div>{{item.pathPrefix}}</div>
|
|
{{else}}
|
|
<div class="row pt-20">
|
|
<div class="col span-11">{{input type="text" value=item.pathPrefix classNames="form-control input-sm" placeholder=(t 'formAllowedHostPathsPodSecurityPolicy.path.placeholder')}}</div>
|
|
<div class="col"><button class="btn bg-primary btn-sm" {{action "remove" item}}><i class="icon icon-minus"/></button></div>
|
|
</div>
|
|
{{/if}}
|
|
{{/each}}
|
|
</div>
|
|
{{else if readOnly}}
|
|
<div>{{t 'generic.none'}}</div>
|
|
{{/if}}
|
|
</div>
|
|
{{/accordion-list-item}}
|