Adds min value for categories' showOrder field
authorMatthias Schmidt <gravatronics@live.com>
Mon, 4 Mar 2013 08:56:18 +0000 (09:56 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 4 Mar 2013 08:56:18 +0000 (09:56 +0100)
wcfsetup/install/files/acp/templates/categoryAdd.tpl

index 20f372ebc6bc2abd2b56a8c2eb9b8ab0387cf082..dfcaf9f076f78b5383e42d52ed2118ad30fec04c 100644 (file)
                        <dl{if $errorField == 'showOrder'} class="formError"{/if}>
                                <dt><label for="showOrder">{@$objectType->getProcessor()->getLanguageVariable('showOrder')}</label></dt>
                                <dd>
-                                       <input type="number" id="showOrder" name="showOrder" value="{$showOrder}" class="short" />
+                                       <input type="number" id="showOrder" name="showOrder" value="{$showOrder}" min="0" class="short" />
                                        {if $errorField == 'showOrder'}
                                                <small class="innerError">
                                                        {assign var=__languageVariable value='showOrder.error.'|concat:$errorType}