mirror of https://github.com/rancher/ui.git
Template Lint
This commit is contained in:
parent
e481e4b344
commit
8b1738bb4e
|
|
@ -1,58 +1,76 @@
|
||||||
<div class="container-header-text">
|
<div class="container-header-text">
|
||||||
<h3>{{t 'confirmDelete.title'}}:</h3>
|
<h3>
|
||||||
|
{{t "confirmDelete.title"}}:
|
||||||
|
</h3>
|
||||||
<hr/>
|
<hr/>
|
||||||
{{#if isSystemProject}}
|
{{#if isSystemProject}}
|
||||||
<div class="mb-20 mt-20">
|
<div class="mb-20 mt-20">
|
||||||
{{#banner-message color='bg-warning m-0'}}
|
{{#banner-message
|
||||||
{{t 'confirmDelete.systemProjectNote'}}
|
color="bg-warning m-0"
|
||||||
|
}}
|
||||||
|
{{t "confirmDelete.systemProjectNote"}}
|
||||||
{{/banner-message}}
|
{{/banner-message}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if hasSystemProjectNamespace}}
|
{{#if hasSystemProjectNamespace}}
|
||||||
<div class="mb-20 mt-20">
|
<div class="mb-20 mt-20">
|
||||||
{{#banner-message color='bg-warning m-0'}}
|
{{#banner-message
|
||||||
{{t 'confirmDelete.systemProjectNamespaceNote'}}
|
color="bg-warning m-0"
|
||||||
|
}}
|
||||||
|
{{t "confirmDelete.systemProjectNamespaceNote"}}
|
||||||
{{/banner-message}}
|
{{/banner-message}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if isSystemChart}}
|
{{#if isSystemChart}}
|
||||||
<div class="mb-20 mt-20">
|
<div class="mb-20 mt-20">
|
||||||
{{#banner-message color='bg-warning m-0'}}
|
{{#banner-message
|
||||||
{{t 'confirmDelete.systemChartNote'}}
|
color="bg-warning m-0"
|
||||||
|
}}
|
||||||
|
{{t "confirmDelete.systemChartNote"}}
|
||||||
{{/banner-message}}
|
{{/banner-message}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="display-name">
|
<div class="display-name">
|
||||||
{{#if (lte resources.length 10)}}
|
{{#if (lte resources.length 10)}}
|
||||||
{{#each resources as |resource|}}
|
{{#each resources as |resource|}}
|
||||||
<div>{{resource.displayName}}</div>
|
<div>
|
||||||
|
{{resource.displayName}}
|
||||||
|
</div>
|
||||||
{{/each}}
|
{{/each}}
|
||||||
{{else}}
|
{{else}}
|
||||||
<div>{{t 'confirmDelete.largeDeleteText' key=resources.firstObject.displayName othersCount=(sub resources.length 1)}}</div>
|
<div>
|
||||||
|
{{t "confirmDelete.largeDeleteText" key=resources.firstObject.displayName othersCount=(sub resources.length 1)}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if (and isEnvironment (not isSystemProject))}}
|
{{#if (and isEnvironment (not isSystemProject))}}
|
||||||
<div class="mb-15">
|
<div class="mb-15">
|
||||||
{{t 'confirmDelete.environmentNote' appName=settings.appName}}
|
{{t "confirmDelete.environmentNote" appName=settings.appName}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if isCluster}}
|
{{#if isCluster}}
|
||||||
<div class="mb-15">
|
<div class="mb-15">
|
||||||
{{t 'confirmDelete.clusterNote' appName=settings.appName}}
|
{{t "confirmDelete.clusterNote" appName=settings.appName}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
{{#if isClusterRoleTemplateBinding}}
|
{{#if isClusterRoleTemplateBinding}}
|
||||||
<div class="mb-15">
|
<div class="mb-15">
|
||||||
{{t 'confirmDelete.clusterRoleTemplateBindingNote'}}
|
{{t "confirmDelete.clusterRoleTemplateBindingNote"}}
|
||||||
</div>
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
<div class="footer-actions">
|
<div class="footer-actions">
|
||||||
<button {{action "confirm"}} class="btn bg-error">{{t 'confirmDelete.confirmAction'}}</button>
|
<button {{action "confirm"}} class="btn bg-error">
|
||||||
<button {{action "cancel"}} class="btn bg-transparent">{{t 'confirmDelete.cancelAction'}}</button>
|
{{t "confirmDelete.confirmAction"}}
|
||||||
|
</button>
|
||||||
|
<button {{action "cancel"}} class="btn bg-transparent">
|
||||||
|
{{t "confirmDelete.cancelAction"}}
|
||||||
|
</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{{#if showProtip}}
|
{{#if showProtip}}
|
||||||
<div class="protip mt-10">{{t 'confirmDelete.protip' key=alternateLabel}}</div>
|
<div class="protip mt-10">
|
||||||
|
{{t "confirmDelete.protip" key=alternateLabel}}
|
||||||
|
</div>
|
||||||
{{/if}}
|
{{/if}}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue