{{#policy-form form=form item=item}} {{!don't show template selection here, i.e. Service Identity}} {{block-slot 'template'}} {{/policy-form}} {{#if (not create) }} {{token-list caption="Applied to the following tokens:" items=items}} {{/if}}
{{#if create }} {{! we only need to check for an empty name here as ember munges autofocus, once we have autofocus back revisit this}} {{ else }} {{/if}} {{# if (not create) }} {{#confirmation-dialog message='Are you sure you want to delete this Policy?'}} {{#block-slot 'action' as |confirm|}} {{/block-slot}} {{#block-slot 'dialog' as |execute cancel message|}} {{#if (gt items.length 0)}} {{#modal-dialog data-test-delete-modal onclose=(action cancel)}} {{#block-slot 'header'}}

Policy in Use

{{/block-slot}} {{#block-slot 'body'}}

This Policy is currently in use. If you choose to delete this Policy, it will be removed from the following {{items.length}} Tokens:

{{token-list items=items target='_blank'}}

This action cannot be undone. {{message}}

{{/block-slot}} {{#block-slot 'actions' as |close|}} {{/block-slot}} {{/modal-dialog}} {{else}} {{delete-confirmation message=message execute=execute cancel=cancel}} {{/if}} {{/block-slot}} {{/confirmation-dialog}} {{/if}}