mirror of https://github.com/rancher/ui.git
115 lines
2.9 KiB
Handlebars
115 lines
2.9 KiB
Handlebars
<div class="container-header-text">
|
|
<h3>
|
|
{{#if resourceType}}
|
|
{{t
|
|
"confirmDelete.titleWithResourceType"
|
|
resourceType=(t (concat "confirmDelete.resourceType." resourceType))
|
|
htmlSafe=true
|
|
}}
|
|
{{else}}
|
|
{{t "confirmDelete.titleWithoutResourceType"}}
|
|
{{/if}}
|
|
</h3>
|
|
<hr />
|
|
{{#if isSystemProject}}
|
|
<div class="mb-20 mt-20">
|
|
{{#banner-message color="bg-warning m-0"}}
|
|
{{t "confirmDelete.systemProjectNote"}}
|
|
{{/banner-message}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if hasSystemProjectNamespace}}
|
|
<div class="mb-20 mt-20">
|
|
{{#banner-message color="bg-warning m-0"}}
|
|
{{t "confirmDelete.systemProjectNamespaceNote"}}
|
|
{{/banner-message}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if isSystemChart}}
|
|
<div class="mb-20 mt-20">
|
|
{{#banner-message color="bg-warning m-0"}}
|
|
{{t "confirmDelete.systemChartNote"}}
|
|
{{/banner-message}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if isRke2NodeEtcd}}
|
|
<div class="mb-20 mt-20">
|
|
<BannerMessage
|
|
@color="bg-warning"
|
|
@message={{t "confirmDelete.twoNodeEtcd"}}
|
|
/>
|
|
</div>
|
|
{{/if}}
|
|
<div class="display-name">
|
|
{{#if (lte resources.length 10)}}
|
|
{{#each resources as |resource|}}
|
|
<div>
|
|
{{resource.displayName}}
|
|
</div>
|
|
{{/each}}
|
|
{{else}}
|
|
<div>
|
|
{{t
|
|
"confirmDelete.largeDeleteText"
|
|
key=resources.firstObject.displayName
|
|
othersCount=(sub resources.length 1)
|
|
}}
|
|
</div>
|
|
{{/if}}
|
|
</div>
|
|
</div>
|
|
{{#if (and isEnvironment (not isSystemProject))}}
|
|
<div class="mb-15">
|
|
{{t "confirmDelete.environmentNote" appName=settings.appName}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if isCluster}}
|
|
<div class="mb-15">
|
|
{{t "confirmDelete.clusterNote" appName=settings.appName}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if isPod}}
|
|
<div class="checkbox pt-10">
|
|
<label>
|
|
{{input type="checkbox" checked=forceDelete}}
|
|
{{t "confirmDelete.forceDelete.label"}}
|
|
</label>
|
|
</div>
|
|
{{/if}}
|
|
{{#if forceDelete}}
|
|
<div class="mb-20 mt-20">
|
|
{{banner-message
|
|
icon="icon-alert"
|
|
color="bg-warning m-0"
|
|
message=(t "confirmDelete.forceDelete.warning" htmlSafe=true)
|
|
}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if isClusterRoleTemplateBinding}}
|
|
<div class="mb-15">
|
|
{{t "confirmDelete.clusterRoleTemplateBindingNote"}}
|
|
</div>
|
|
{{/if}}
|
|
{{#if
|
|
(and isGlobalRole (gte resources.firstObject.globalRoleAssociatedUserCount 0))
|
|
}}
|
|
<div class="mb-15 text-center">
|
|
{{t
|
|
"confirmDelete.globalRoleNote"
|
|
count=resources.firstObject.globalRoleAssociatedUserCount
|
|
}}
|
|
</div>
|
|
{{/if}}
|
|
<div class="footer-actions">
|
|
<button class="btn bg-transparent" type="button" {{action "cancel"}}>
|
|
{{t "confirmDelete.cancelAction"}}
|
|
</button>
|
|
<button class="btn bg-error" type="button" {{action "confirm"}}>
|
|
{{t "confirmDelete.confirmAction"}}
|
|
</button>
|
|
</div>
|
|
{{#if showProtip}}
|
|
<div class="protip mt-10">
|
|
{{t "confirmDelete.protip" key=alternateLabel}}
|
|
</div>
|
|
{{/if}} |