{{! Copyright (c) HashiCorp, Inc. SPDX-License-Identifier: MPL-2.0 }} {{t 'form.name.label'}} {{t 'form.name.help'}} {{#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 (and @model.isNew (feature-flag 'ssh-target'))}} {{t 'form.type.label'}} {{#each this.types as |type|}} {{t (concat 'resources.credential-library.types.' type) }} {{t (concat 'resources.credential-library.help.' type) }} {{/each}} {{else}} {{t 'form.type.label'}} {{t (concat 'resources.credential-library.help.' @model.type)}} {{/if}} {{t 'resources.credential-library.form.vault_path.label' }} {{t 'resources.credential-library.form.vault_path.help' }} {{#if @model.errors.path}} {{#each @model.errors.path as |error|}} {{error.message}} {{/each}} {{/if}} {{t 'resources.credential-library.form.http_method.label'}} {{t 'resources.credential-library.form.http_method.help'}} {{#each this.httpMethodOptions as |httpMethod|}} {{httpMethod}} {{/each}} {{#if this.isHttpRequestBodyAllowed}} {{t 'resources.credential-library.form.http_request_body.label' }} {{t 'resources.credential-library.form.http_request_body.help' }} {{#if @model.errors.http_request_body}} {{#each @model.errors.http_request_body as |error|}} {{error.message}} {{/each}} {{/if}} {{/if}} {{#if (can 'save model' @model)}} {{/if}}