{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} {{#if @model.errors.name}} {{#each @model.errors.name as |error|}} {{error.message}} {{/each}} {{/if}} {{t 'form.description.label'}} {{t 'form.description.help'}} {{#if @model.errors.description}} {{#each @model.errors.description as |error|}} {{error.message}} {{/each}} {{/if}} {{#if @model.isNew}} {{t 'form.type.label'}} {{#each @types as |credentialType|}} {{t (concat 'resources.credential.types.' credentialType)}} {{t (concat 'resources.credential.help.' credentialType) }} {{/each}} {{t 'resources.credential.form.json.label'}} {{t 'resources.credential.form.json.help'}} {{else}} {{t 'form.type.label'}} {{t (concat 'resources.credential.help.' @model.type)}} {{t 'resources.credential.form.json.label'}} {{t 'resources.credential.form.json.help'}} {{/if}} {{#if (can 'save model' @model)}} {{/if}}