Fix html code of numeric form field
authorMatthias Schmidt <gravatronics@live.com>
Mon, 28 May 2018 19:02:49 +0000 (21:02 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 28 May 2018 19:02:49 +0000 (21:02 +0200)
See #2509

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

index 0f788eb0a7c9c8efe4637df289ab45a304c5812b..685f7fdda6a10b4f03350a714c96bd02c142113e 100644 (file)
@@ -4,7 +4,19 @@
        <div class="inputAddon">
 {/if}
 
-<input type="number" step="{@$field->getStep()}" id="{@$field->getPrefixedId()}" name="{@$field->getPrefixedId()}" value="{$field->getValue()}" class="short"{if $field->isAutofocused()} autofocus{/if}{if $field->isRequired()} required{/if}{if $field->isImmutable()} disabled{/if}{if $field->getMinimum() !== null} min="{$field->getMinimum()}"{/if}{if $field->getMaximum() !== null} max="{$field->getMaximum()}"{/if}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}">
+<input type="number" {*
+       *}step="{@$field->getStep()}" {*
+       *}id="{@$field->getPrefixedId()}" {*
+       *}name="{@$field->getPrefixedId()}" {*
+       *}value="{$field->getValue()}" {*
+       *}class="short"{*
+       *}{if $field->isAutofocused()} autofocus{/if}{*
+       *}{if $field->isRequired()} required{/if}{*
+       *}{if $field->isImmutable()} disabled{/if}{*
+       *}{if $field->getMinimum() !== null} min="{$field->getMinimum()}"{/if}{*
+       *}{if $field->getMaximum() !== null} max="{$field->getMaximum()}"{/if}{*
+       *}{if $field->getPlaceholder() !== null} placeholder="{$field->getPlaceholder()}"{/if}{*
+*}>
 
 {if $field->getSuffix() !== null}
                <span class="inputSuffix">{@$field->getSuffix()}</span>