mirror of
https://github.com/discourse/discourse.git
synced 2025-02-19 12:22:46 +08:00

* Run no-implicit-this codemod for app templates * Run tagless-ember-components-codemod for plugins * Turn on no-implicit-this lint
26 lines
652 B
Handlebars
26 lines
652 B
Handlebars
{{#each this.field.choices as |choice|}}
|
|
<div class="radio-field-choice {{this.fieldClass}}">
|
|
<div class="radio-area">
|
|
<RadioButton @selection={{this.field.value}} @value={{choice.id}} @name={{choice.label}} @onChange={{action "changed"}} />
|
|
|
|
<span class="radio-label">
|
|
{{#if choice.icon}}
|
|
{{d-icon choice.icon}}
|
|
{{/if}}
|
|
|
|
{{choice.label}}
|
|
</span>
|
|
|
|
{{#if choice.extraLabel}}
|
|
<span class="extra-label">
|
|
{{html-safe choice.extraLabel}}
|
|
</span>
|
|
{{/if}}
|
|
</div>
|
|
|
|
<div class="radio-description">
|
|
{{choice.description}}
|
|
</div>
|
|
</div>
|
|
{{/each}}
|