Fix HTML code of multiline text form field
authorMatthias Schmidt <gravatronics@live.com>
Thu, 3 Jan 2019 17:52:24 +0000 (18:52 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Thu, 3 Jan 2019 17:52:24 +0000 (18:52 +0100)
See #2509

wcfsetup/install/files/acp/templates/__multilineTextFormField.tpl

index 06f07aea9880b4c4d02cb4fe25be3c69a3011a6d..87f4ea315132d3077920c47514f963eb98edec7f 100644 (file)
@@ -1,6 +1,15 @@
 {include file='__formFieldHeader'}
 
-<textarea id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" rows="{@$field->getRows()}"{if $field->isAutofocused()} autofocus{/if}{if $field->isRequired()} required{/if}{if $field->isImmutable()} disabled{/if}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}">{$field->getValue()}</textarea>
+<textarea id="{@$field->getPrefixedId()}" {*
+       *}name="{@$field->getPrefixedId()}" {*
+       *}rows="{@$field->getRows()}"{*
+       *}{if $field->isAutofocused()} autofocus{/if}{*
+       *}{if $field->isRequired()} required{/if}{*
+       *}{if $field->isImmutable()} disabled{/if}{*
+       *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{*
+       *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{*
+       *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+*}>{$field->getValue()}</textarea>
 
 {if $field->isI18n()}
        {include file='multipleLanguageInputJavascript'}