Files
threshold-ui/ui/admin/app/components/form/target/add-injected-application-credential-sources/index.hbs
T

46 lines
1.3 KiB
Handlebars
Raw Normal View History

{{!
Copyright (c) HashiCorp, Inc.
SPDX-License-Identifier: MPL-2.0
}}
2022-09-02 12:29:39 -07:00
<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>
2022-09-20 17:31:16 -07:00
<CredSourceTypeBadge @model={{credentialSource}} />
2022-09-02 12:29:39 -07:00
</row.cell>
</body.row>
{{/each}}
</table.body>
</Rose::Table>
2022-10-06 11:41:12 -04:00
</Rose::Form>