2024-10-25 14:54:11 +00:00
|
|
|
<div class="{{@wrapper-class}}">
|
2024-11-19 14:05:12 +00:00
|
|
|
{{#if @readonly}}
|
|
|
|
<p class="{{@element-classes}}">{{@selected}}</p>
|
|
|
|
{{else}}
|
|
|
|
{{#each @elements as |element index|}}
|
|
|
|
<RadioButton
|
|
|
|
@value="{{element}}"
|
|
|
|
@groupValue={{@selected}}
|
|
|
|
@name={{@name}}
|
|
|
|
@required={{@required}}
|
|
|
|
>
|
|
|
|
{{element}}
|
|
|
|
</RadioButton>
|
|
|
|
{{/each}}
|
|
|
|
{{/if}}
|
2024-10-25 14:54:11 +00:00
|
|
|
</div>
|