{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} {{yield}}
{{#yield-slot name='template'}} {{else}}
Policy{{if allowIdentity ' or identity?' ''}}
{{#if allowIdentity}}

Identities are default policies with configurable names. They save you some time and effort you're using Consul for Connect features.

{{! this should use radio-group }}
{{#each templates as |template|}} {{/each}}
{{else}} {{/if}} {{/yield-slot}} {{#if (eq item.template 'node-identity')}} {{else}} {{! only show Valid Datacenters for the default partition }} {{#if (eq (or partition 'default') 'default')}}
Valid datacenters
{{/if}} {{#if isScoped }}
{{#each datacenters as |dc| }} {{/each}} {{#each item.Datacenters as |dc| }} {{#if (not (find-by 'Name' dc datacenters))}} {{/if}} {{/each}}
{{/if}} {{/if}} {{#if (eq item.template '') }} {{/if}}