Files
threshold-ui/ui/admin/app/components/form/credential-library/radio/index.hbs
T

29 lines
724 B
Handlebars
Raw Normal View History

2025-08-04 15:34:18 -05:00
{{!
Copyright IBM Corp. 2021, 2025
2025-08-04 15:34:18 -05:00
SPDX-License-Identifier: BUSL-1.1
}}
<Hds::Form::RadioCard::Group
@name={{t 'form.type.label'}}
@isRequired={{true}}
2025-08-04 15:34:18 -05:00
@alignment='center'
as |G|
>
<G.Legend>{{t 'form.type.label'}}</G.Legend>
{{#each this.credentialTypes as |type|}}
<G.RadioCard
@value={{type}}
@maxWidth='20rem'
@checked={{eq type @model.type}}
{{on 'input' (fn @changeType type)}}
as |R|
>
<R.Label>{{t
(concat 'resources.credential-library.types.' type)
}}</R.Label>
<R.Description>{{t
(concat 'resources.credential-library.help.' type)
}}</R.Description>
</G.RadioCard>
{{/each}}
</Hds::Form::RadioCard::Group>