* test: 💍 Refactor test selectors for targets credential sources ✅ Closes: https://hashicorp.atlassian.net/browse/ICU-16432
45 lines
1.2 KiB
Handlebars
45 lines
1.2 KiB
Handlebars
{{!
|
|
Copyright (c) HashiCorp, Inc.
|
|
SPDX-License-Identifier: BUSL-1.1
|
|
}}
|
|
|
|
<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'}}
|
|
/>
|
|
|
|
<Hds::Table
|
|
@model={{@filteredCredentialSources}}
|
|
@columns={{array
|
|
(hash label=(t 'form.id.label'))
|
|
(hash label=(t 'form.name.label'))
|
|
(hash label=(t 'form.type.label'))
|
|
}}
|
|
@valign='middle'
|
|
>
|
|
<:body as |B|>
|
|
<B.Tr>
|
|
<B.Td data-test-credential-source={{B.data.type}}>
|
|
<Hds::Form::Checkbox::Field
|
|
{{on 'change' (fn this.toggleCredentialSource B.data.id)}}
|
|
as |F|
|
|
>
|
|
<F.Label>{{B.data.id}}</F.Label>
|
|
<F.HelperText>{{B.data.description}}</F.HelperText>
|
|
</Hds::Form::Checkbox::Field>
|
|
</B.Td>
|
|
<B.Td>{{B.data.name}}</B.Td>
|
|
<B.Td><CredSourceTypeBadge @model={{B.data}} /></B.Td>
|
|
</B.Tr>
|
|
</:body>
|
|
</Hds::Table>
|
|
</Rose::Form> |