-<input type="text" id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" class="long"{if $field->isAutofocused()} autofocus{/if}{if $field->isImmutable()} disabled{/if}>
+<input type="text" {*
+ *}id="{@$field->getPrefixedId()}" {*
+ *}name="{@$field->getPrefixedId()}"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}{if $field->isAutofocused()} autofocus{/if}{*
+ *}{if $field->isImmutable()} disabled{/if}{*
+*}>
<script data-relocate="true">
require(['WoltLabSuite/Core/Ui/ItemList/Static'], function(UiItemListStatic) {
-<input type="text" id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" class="long"{if $field->isAutofocused()} autofocus{/if}{if $field->isImmutable()} disabled{/if}>
+<input type="text" {*
+ *}id="{@$field->getPrefixedId()}" {*
+ *}name="{@$field->getPrefixedId()}"{*
+ *}{if !$field->getFieldClasses()|empty} class="{implode from=$field->getFieldClasses() item='class' glue=' '}{$class}{/implode}"{/if}{*
+ *}{if $field->isAutofocused()} autofocus{/if}{*
+ *}{if $field->isImmutable()} disabled{/if}{*
+*}>
<script data-relocate="true">
require(['WoltLabSuite/Core/Ui/ItemList/Static'], function(UiItemListStatic) {
* @package WoltLabSuite\Core\System\Form\Builder\Field
* @since 5.2
*/
-class ItemListFormField extends AbstractFormField implements IAutoFocusFormField, IImmutableFormField, IMultipleFormField {
+class ItemListFormField extends AbstractFormField implements IAutoFocusFormField, ICssClassFormField, IImmutableFormField, IMultipleFormField {
use TAutoFocusFormField;
+ use TCssClassFormField;
use TImmutableFormField;
use TMultipleFormField;
*/
public function __construct() {
$this->multiple();
+ $this->addFieldClass('long');
}
/**