* [COMPLIANCE] Add Copyright and License Headers * chore: 🤖 update Copyright headers to satisfy our lint rules --------- Co-authored-by: hashicorp-copywrite[bot] <110428419+hashicorp-copywrite[bot]@users.noreply.github.com> Co-authored-by: Cameron Perera <cameron.perera@hashicorp.com>
46 lines
1.3 KiB
Handlebars
46 lines
1.3 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: MPL-2.0
|
|
}}
|
|
|
|
<Rose::Form
|
|
class='full-width'
|
|
@onSubmit={{fn @submit this.selectedCredentialSourceIDs}}
|
|
@cancel={{@cancel}}
|
|
@disabled={{@model.isSaving}}
|
|
as |form|
|
|
>
|
|
<form.actions
|
|
@submitText={{t
|
|
'resources.target.actions.add-injected-application-credential-sources'
|
|
}}
|
|
@cancelText={{t 'actions.cancel'}}
|
|
/>
|
|
|
|
<Rose::Table as |table|>
|
|
<table.header as |header|>
|
|
<header.row as |row|>
|
|
<row.headerCell>{{t 'form.id.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'form.name.label'}}</row.headerCell>
|
|
<row.headerCell>{{t 'form.type.label'}}</row.headerCell>
|
|
</header.row>
|
|
</table.header>
|
|
<table.body as |body|>
|
|
{{#each @filteredCredentialSources as |credentialSource|}}
|
|
<body.row as |row|>
|
|
<row.headerCell>
|
|
<form.checkbox
|
|
@label={{credentialSource.id}}
|
|
@description={{credentialSource.description}}
|
|
@onChange={{fn this.toggleCredentialSource credentialSource.id}}
|
|
/>
|
|
</row.headerCell>
|
|
<row.cell>{{credentialSource.name}}</row.cell>
|
|
<row.cell>
|
|
<CredSourceTypeBadge @model={{credentialSource}} />
|
|
</row.cell>
|
|
</body.row>
|
|
{{/each}}
|
|
</table.body>
|
|
</Rose::Table>
|
|
</Rose::Form> |