Add field CSS class support for `MultilineTextFormField`
authorMatthias Schmidt <gravatronics@live.com>
Sun, 20 Dec 2020 09:52:56 +0000 (10:52 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Sun, 20 Dec 2020 09:52:56 +0000 (10:52 +0100)
com.woltlab.wcf/templates/__multilineTextFormField.tpl
wcfsetup/install/files/acp/templates/__multilineTextFormField.tpl

index dfd907b6408e1a0274583b702ef7421e22aa2878..b300045a17ce3d825ddc1561c5fc299b7a7546cc 100644 (file)
@@ -1,6 +1,7 @@
 <textarea id="{@$field->getPrefixedId()}" {*
        *}name="{@$field->getPrefixedId()}" {*
        *}rows="{@$field->getRows()}"{*
+       *}{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}{*
index dfd907b6408e1a0274583b702ef7421e22aa2878..b300045a17ce3d825ddc1561c5fc299b7a7546cc 100644 (file)
@@ -1,6 +1,7 @@
 <textarea id="{@$field->getPrefixedId()}" {*
        *}name="{@$field->getPrefixedId()}" {*
        *}rows="{@$field->getRows()}"{*
+       *}{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}{*