22 lines
646 B
HTML
22 lines
646 B
HTML
<template name="groupRadio">
|
|
{{#group (extend this
|
|
class=(concat 'group-radio ' this.class)
|
|
mixins=(concat 'groupRadio ' this.mixins)
|
|
wrappers=(concat ''
|
|
(valueIf reactive this.label 'wrapperTitle ' '')
|
|
this.wrappers
|
|
)
|
|
)}}
|
|
{{>UI.contentBlock}}
|
|
{{#each item in (reactive this.items)}}
|
|
{{>inputRadio
|
|
class=this.radioClass
|
|
name=this.key
|
|
value=item.value
|
|
label=item.label
|
|
checked=(eq item.value (reactive this.value))
|
|
}}
|
|
{{/each}}
|
|
{{/group}}
|
|
</template>
|