Move honeypot section to top position
authorMarcel Werk <burntime@woltlab.com>
Thu, 23 Nov 2023 15:52:44 +0000 (16:52 +0100)
committerMarcel Werk <burntime@woltlab.com>
Thu, 23 Nov 2023 15:52:44 +0000 (16:52 +0100)
com.woltlab.wcf/templates/register.tpl

index e8c12ba90ac7c9531c199de0cd007387ab9e44f5..d2b9af169ca698d967ac9890b562a42137bd9e4c 100644 (file)
 {include file='formError'}
 
 <form method="post" action="{link controller='Register'}{/link}">
-       <div class="section">
-               <dl{if $errorType[username]|isset} class="formError"{/if}>
-                       <dt>
-                               <label for="{@$randomFieldNames[username]}">{lang}wcf.user.username{/lang}</label> <span class="customOptionRequired">*</span>
-                       </dt>
-                       <dd>
-                               <input type="text" id="{@$randomFieldNames[username]}" name="{@$randomFieldNames[username]}" value="{$username}" required class="medium" autocomplete="username">
-                               {if $errorType[username]|isset}
-                                       <small class="innerError">
-                                               {if $errorType[username] == 'empty'}
-                                                       {lang}wcf.global.form.error.empty{/lang}
-                                               {else}
-                                                       {lang}wcf.user.username.error.{$errorType[username]}{/lang}
-                                               {/if}
-                                       </small>
-                               {/if}
-                               <small>{lang}wcf.user.username.description{/lang}</small>
-                       </dd>
-               </dl>
-               
-               {event name='usernameFields'}
-       </div>
-       
        <section class="section" id="fieldset1">
                <header class="sectionHeader">
                        <h2 class="sectionTitle">{lang}wcf.user.register.honeyPot{/lang}</h2>
                {event name='honeyPotFields'}
        </section>
        
+       <div class="section">
+               <dl{if $errorType[username]|isset} class="formError"{/if}>
+                       <dt>
+                               <label for="{@$randomFieldNames[username]}">{lang}wcf.user.username{/lang}</label> <span class="customOptionRequired">*</span>
+                       </dt>
+                       <dd>
+                               <input type="text" id="{@$randomFieldNames[username]}" name="{@$randomFieldNames[username]}" value="{$username}" required class="medium" autocomplete="username">
+                               {if $errorType[username]|isset}
+                                       <small class="innerError">
+                                               {if $errorType[username] == 'empty'}
+                                                       {lang}wcf.global.form.error.empty{/lang}
+                                               {else}
+                                                       {lang}wcf.user.username.error.{$errorType[username]}{/lang}
+                                               {/if}
+                                       </small>
+                               {/if}
+                               <small>{lang}wcf.user.username.description{/lang}</small>
+                       </dd>
+               </dl>
+               
+               {event name='usernameFields'}
+       </div>
+               
        <section class="section">
                <h2 class="sectionTitle">{lang}wcf.user.email{/lang}</h2>