*}type="radio" {*
*}name="{@$field->getPrefixedId()}" {*
*}value="{$__fieldNestedOption[value]}"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
*}{if $field->getValue() == $__fieldNestedOption[value] && $__fieldNestedOption[isSelectable]} checked{/if}{*
*}{if $field->isImmutable() || !$__fieldNestedOption[isSelectable]} disabled{/if}{*
*}> {@$__fieldNestedOption[label]}</label>
{/foreach}
</ul>
{else}
- <select id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}">
+ <select id="{@$field->getPrefixedId()}" {*
+ *}name="{@$field->getPrefixedId()}"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}>
{foreach from=$field->getNestedOptions() item=__fieldNestedOption}
<option {*
*}name="{@$field->getPrefixedId()}" {*
*}type="radio" {*
*}name="{@$field->getPrefixedId()}" {*
*}value="{$__fieldNestedOption[value]}"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
*}{if $field->getValue() == $__fieldNestedOption[value] && $__fieldNestedOption[isSelectable]} checked{/if}{*
*}{if $field->isImmutable() || !$__fieldNestedOption[isSelectable]} disabled{/if}{*
*}> {@$__fieldNestedOption[label]}</label>
{/foreach}
</ul>
{else}
- <select id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}">
+ <select id="{@$field->getPrefixedId()}" {*
+ *}name="{@$field->getPrefixedId()}"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}>
{foreach from=$field->getNestedOptions() item=__fieldNestedOption}
<option {*
*}name="{@$field->getPrefixedId()}" {*
* @package WoltLabSuite\Core\System\Form\Builder\Field
* @since 5.2
*/
-class SingleSelectionFormField extends AbstractFormField implements IImmutableFormField, IFilterableSelectionFormField, INullableFormField {
+class SingleSelectionFormField extends AbstractFormField implements ICssClassFormField, IImmutableFormField, IFilterableSelectionFormField, INullableFormField {
+ use TCssClassFormField;
use TImmutableFormField;
use TFilterableSelectionFormField {
filterable as protected traitFilterable;