From 2341c4d99c9b9920304483c07760fb30de62d883 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 21 Dec 2020 19:18:39 +0100 Subject: [PATCH] Add input mode support for `MultilineTextFormField` --- com.woltlab.wcf/templates/__multilineTextFormField.tpl | 1 + .../install/files/acp/templates/__multilineTextFormField.tpl | 1 + 2 files changed, 2 insertions(+) diff --git a/com.woltlab.wcf/templates/__multilineTextFormField.tpl b/com.woltlab.wcf/templates/__multilineTextFormField.tpl index 3a114ecbe3..ef6fce19cb 100644 --- a/com.woltlab.wcf/templates/__multilineTextFormField.tpl +++ b/com.woltlab.wcf/templates/__multilineTextFormField.tpl @@ -8,6 +8,7 @@ *}{if $field->isImmutable()} disabled{/if}{* *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{* *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{* + *}{if $field->getInputMode() !== null} inputmode="{$field->getInputMode()}"{/if}{* *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{* *}>{$field->getValue()} diff --git a/wcfsetup/install/files/acp/templates/__multilineTextFormField.tpl b/wcfsetup/install/files/acp/templates/__multilineTextFormField.tpl index 3a114ecbe3..ef6fce19cb 100644 --- a/wcfsetup/install/files/acp/templates/__multilineTextFormField.tpl +++ b/wcfsetup/install/files/acp/templates/__multilineTextFormField.tpl @@ -8,6 +8,7 @@ *}{if $field->isImmutable()} disabled{/if}{* *}{if $field->getMinimumLength() !== null} minlength="{$field->getMinimumLength()}"{/if}{* *}{if $field->getMaximumLength() !== null} maxlength="{$field->getMaximumLength()}"{/if}{* + *}{if $field->getInputMode() !== null} inputmode="{$field->getInputMode()}"{/if}{* *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{* *}>{$field->getValue()} -- 2.20.1