<ol class="flexibleButtonGroup">
<li>
- <input type="radio" id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" value="1" data-no-input-id="{@$field->getPrefixedId()}_no"{if $field->isAutofocused()} autofocus{/if}{if $field->isRequired()} required{/if}{if $field->isImmutable()} disabled{/if}{if $field->getValue()} checked{/if}>
+ <input type="radio" {*
+ *}id="{@$field->getPrefixedId()}" {*
+ *}name="{@$field->getPrefixedId()}" {*
+ *}value="1" {*
+ *}data-no-input-id="{@$field->getPrefixedId()}_no"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}{if $field->isAutofocused()} autofocus{/if}{*
+ *}{if $field->isRequired()} required{/if}{*
+ *}{if $field->isImmutable()} disabled{/if}{*
+ *}{if $field->getValue()} checked{/if}{*
+ *}>
<label for="{@$field->getPrefixedId()}" class="green"><span class="icon icon16 fa-check"></span> {lang}wcf.global.form.boolean.yes{/lang}</label>
</li>
<li>
- <input type="radio" id="{@$field->getPrefixedId()}_no" name="{@$field->getPrefixedId()}" value="0"{if $field->isImmutable()} disabled{/if}{if !$field->getValue()} checked{/if}>
+ <input type="radio" {*
+ *}id="{@$field->getPrefixedId()}_no" {*
+ *}name="{@$field->getPrefixedId()}" {*
+ *}value="0"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}{if $field->isImmutable()} disabled{/if}{*
+ *}{if !$field->getValue()} checked{/if}{*
+ *}>
<label for="{@$field->getPrefixedId()}_no" class="red"><span class="icon icon16 fa-times"></span> {lang}wcf.global.form.boolean.no{/lang}</label>
</li>
</ol>
<ol class="flexibleButtonGroup">
<li>
- <input type="radio" id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" value="1" data-no-input-id="{@$field->getPrefixedId()}_no"{if $field->isAutofocused()} autofocus{/if}{if $field->isRequired()} required{/if}{if $field->isImmutable()} disabled{/if}{if $field->getValue()} checked{/if}>
+ <input type="radio" {*
+ *}id="{@$field->getPrefixedId()}" {*
+ *}name="{@$field->getPrefixedId()}" {*
+ *}value="1" {*
+ *}data-no-input-id="{@$field->getPrefixedId()}_no"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}{if $field->isAutofocused()} autofocus{/if}{*
+ *}{if $field->isRequired()} required{/if}{*
+ *}{if $field->isImmutable()} disabled{/if}{*
+ *}{if $field->getValue()} checked{/if}{*
+ *}>
<label for="{@$field->getPrefixedId()}" class="green"><span class="icon icon16 fa-check"></span> {lang}wcf.global.form.boolean.yes{/lang}</label>
</li>
<li>
- <input type="radio" id="{@$field->getPrefixedId()}_no" name="{@$field->getPrefixedId()}" value="0"{if $field->isImmutable()} disabled{/if}{if !$field->getValue()} checked{/if}>
+ <input type="radio" {*
+ *}id="{@$field->getPrefixedId()}_no" {*
+ *}name="{@$field->getPrefixedId()}" {*
+ *}value="0"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}{if $field->isImmutable()} disabled{/if}{*
+ *}{if !$field->getValue()} checked{/if}{*
+ *}>
<label for="{@$field->getPrefixedId()}_no" class="red"><span class="icon icon16 fa-times"></span> {lang}wcf.global.form.boolean.no{/lang}</label>
</li>
</ol>
* @package WoltLabSuite\Core\System\Form\Builder\Field
* @since 5.2
*/
-class BooleanFormField extends AbstractFormField implements IAutoFocusFormField, IImmutableFormField {
+class BooleanFormField extends AbstractFormField implements IAutoFocusFormField, ICssClassFormField, IImmutableFormField {
use TAutoFocusFormField;
+ use TCssClassFormField;
use TImmutableFormField;
/**