Merge branch '5.3'
[GitHub/WoltLab/WCF.git] / com.woltlab.wcf / templates / __radioButtonFormField.tpl
CommitLineData
a63f9b97 1{foreach from=$field->getOptions() key=$__fieldValue item=__fieldLabel}
04ee9fcf
MS
2 <label>
3 <input {*
4 *}type="radio" {*
5 *}name="{@$field->getPrefixedId()}" {*
6 *}value="{$__fieldValue}"{*
4a3a1caf 7 *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
53f92bba 8 *}{if $field->getValue() !== null && $field->getValue() == $__fieldValue} checked{/if}{*
04ee9fcf 9 *}{if $field->isImmutable()} disabled{/if}{*
f861e106 10 *}{foreach from=$field->getFieldAttributes() key='attributeName' item='attributeValue'} {$attributeName}="{$attributeValue}"{/foreach}{*
04ee9fcf
MS
11 *}> {@$__fieldLabel}
12 </label>
a63f9b97 13{/foreach}