{{#if @model.errors.name}}
{{#each @model.errors.name as |error|}}
{{error.message}}
{{/each}}
{{/if}}
{{#if @model.errors.description}}
{{#each @model.errors.description as |error|}}
{{error.message}}
{{/each}}
{{/if}}
{{#if @model.isNew}}
<:body>
{{t 'form.type.label'}}
{{#each @types as |credentialType|}}
{{t
(concat 'resources.credential.types.' credentialType)
}}
{{t
(concat 'resources.credential.help.' credentialType)
}}
{{/each}}
<:title>{{t 'resources.credential.form.json.label'}}
<:description>{{t 'resources.credential.form.json.help'}}
<:body>
{{else}}
{{t 'form.type.label'}}
{{t (concat 'resources.credential.types.' @model.type)}}
<:title>{{t 'resources.credential.form.json.label'}}
<:description>{{t 'resources.credential.form.json.help'}}
<:body>
{{/if}}
{{#if (can 'save model' @model)}}
{{/if}}