2023-03-14 13:18:55 +00:00
|
|
|
{{!
|
|
|
|
Copyright (c) HashiCorp, Inc.
|
2023-08-11 13:12:13 +00:00
|
|
|
SPDX-License-Identifier: BUSL-1.1
|
2023-03-14 13:18:55 +00:00
|
|
|
}}
|
|
|
|
|
2020-09-18 10:14:06 +00:00
|
|
|
<label
|
|
|
|
...attributes
|
|
|
|
class="radio-card{{if checked ' checked'}}"
|
|
|
|
>
|
|
|
|
<div>
|
2020-10-08 19:32:27 +00:00
|
|
|
{{! workaround FF/Ember problem where you cannnot set a value to be value="" (empty)}}
|
|
|
|
{{#if (gt value.length 0) }}
|
|
|
|
<input type="radio" name={{name}} value={{value}} checked={{checked}} onchange={{action onchange}} />
|
|
|
|
{{else}}
|
|
|
|
<input type="radio" name={{name}} value="" checked={{checked}} onchange={{action onchange}} />
|
|
|
|
{{/if}}
|
2020-09-18 10:14:06 +00:00
|
|
|
</div>
|
|
|
|
<div>
|
|
|
|
{{yield}}
|
|
|
|
</div>
|
|
|
|
</label>
|