Commits

Elisée Maurer committed d24c7d3

Display sign up form by default instead of log in form

Comments (0)

Files changed (3)

media/css/login.css

     text-align: right;
 }
 
-#SignUpButton, #PasswordConfirmTr, #AlreadyHaveAnAccountLink, #FormStatus {
+#NoAccountYetLink, #FormStatus {
     display: none;
 }
 

media/js/login.js

        
        We might want to break the whole thing into 2 separate forms
        later on */
-    $('#MainForm').submit( doLogin );
+    $('#MainForm').submit( doSignUp );
 } );
 

templates/login.html

                     </tr>
                     <tr id="PasswordConfirmTr">
                         <th><label for="PasswordConfirm">Password (again):</label></th>
-                        <td><input type="password" name="PasswordConfirm" id="PasswordConfirm" disabled="disabled" /></td>
+                        <td><input type="password" name="PasswordConfirm" id="PasswordConfirm" /></td>
                     </tr>
                     <tr id="FormStatus">
                         <td colspan="2" id="FormStatusText">
                             <a id="NoAccountYetLink" href="#" onclick="displaySignUpForm()">I don't have an account yet</a>
                             <a id="AlreadyHaveAnAccountLink" href="#" onclick="hideSignUpForm()">I already have an account</a>
                             &nbsp;
-                            <input type="submit" id="FormSubmitButton" value="Log in" />
+                            <input type="submit" id="FormSubmitButton" value="Sign up" />
                         </td>
                     </tr>
                 </table>