ui/app/components/modal-rollback-service/template.hbs

39 lines
1.1 KiB
Handlebars

<h2>
{{#if model.secondaryLaunchConfigs.length}}
{{t 'modalRollbackService.titleWithSidekicks' instanceName=model.displayName count=model.secondaryLaunchConfigs.length}}
{{else}}
{{t 'modalRollbackService.title' instanceName=model.displayName}}
{{/if}}
</h2>
{{#if loading}}
<i class="icon icon-spinner icon-spin"/> {{t 'generic.loading'}}
{{else}}
<div class="row">
<div class="col span-12">
<label class="acc-label">{{t 'modalRollbackService.revisionId.label'}}</label>
{{new-select
content=choices
value=revisionId
prompt="modalRollbackService.revisionId.prompt"
localizedPrompt=true
optionLabelPath="label"
optionValuePath="value"
}}
</div>
</div>
{{#if (and diff diff.string)}}
<div class="row mt-10">
<div class="col span-12">
<label class="acc-label">{{t 'modalRollbackService.difference.label'}}</label>
<div>
{{diff}}
</div>
</div>
</div>
{{/if}}
{{save-cancel editing=true editLabel="modalRollbackService.action" save="save" cancel="cancel"}}
{{/if}}