2016-07-12 20:37:53 +02:00
|
|
|
<template name="groupRadio">
|
|
|
|
|
{{#group (extend this
|
2016-07-14 16:25:39 +02:00
|
|
|
class=(concat 'group-radio ' this.class)
|
|
|
|
|
mixins=(concat "groupRadio " this.mixins)
|
2016-07-12 20:37:53 +02:00
|
|
|
wrappers=(concat ''
|
|
|
|
|
(valueIf reactive this.label 'wrapperTitle ' '')
|
2016-07-14 16:25:39 +02:00
|
|
|
this.wrappers
|
2016-07-12 20:37:53 +02:00
|
|
|
)
|
|
|
|
|
)}}
|
|
|
|
|
{{>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>
|