18 lines
406 B
Text
18 lines
406 B
Text
<#macro kw checked=false id="" label="" rest...>
|
|
<div>
|
|
<input
|
|
<#if checked>checked</#if>
|
|
|
|
class="border-secondary-200 focus:ring-primary-600"
|
|
id="${id}"
|
|
type="radio"
|
|
|
|
<#list rest as attrName, attrValue>
|
|
${attrName}="${attrValue}"
|
|
</#list>
|
|
>
|
|
<label class="ml-2 text-secondary-600 text-sm" for="${id}">
|
|
${label}
|
|
</label>
|
|
</div>
|
|
</#macro>
|