project/templates/user/login.html
changeset 118 78dfa383f6a3
parent 96 178b89a3ca4f
child 396 c4b236ea6912
--- a/project/templates/user/login.html	Tue Jul 20 15:46:53 2010 +0530
+++ b/project/templates/user/login.html	Tue Jul 20 15:48:35 2010 +0530
@@ -9,36 +9,31 @@
         <h2 class="authenticate">Login</h2>
 
         <div class="description">
-            Log in for registered users of the site.
+          Log in for registered users of the site.
         </div>
 
         <form class="authenticate"
               enctype="multipart/form-data"
-              action="{% url scipycon_login %}"
+              action="{% url scipycon_login params.scope %}"
               method="post">
 
-                <table class="scipycon-default">
-                    {{ login_form }}
-                    <tr>
-                        <td></td>
-                        <td>
-                            <a href="{% url scipycon_password_reset %}">Forgot password?</a>
-                        </td>
-                    </tr>
-                </table>
+          <table class="scipycon-default">
+            {{ login_form }}
+            <tr>
+              <td></td>
+              <td>
+                <a href="{% url scipycon_password_reset %}">
+                  Forgot password?
+                </a>
+              </td>
+            </tr>
+          </table>
 
-            <input type="hidden"
-                   name="action"
-                   value="login" />
+          <input type="hidden" name="action" value="login" />
 
-            <input type="hidden"
-                   name="next"
-                   value="{{ next_url }}" />
+          <input type="hidden" name="next" value="{{ next_url }}" />
 
-            <button class="button left"
-                    type="submit">
-                Login
-            </button>
+          <button class="button left" type="submit">Login</button>
 
         </form>
     </div>
@@ -50,23 +45,16 @@
             If you are not already a member of the site you can register here.
         </div>
 
-        <form action="{% url scipycon_login %}"
-              method="post">
-                    <table class="scipycon-default">
-                        {{ register_form }}
-                    </table>
-                <input type="hidden"
-                       name="action"
-                       value="register" />
+        <form action="{% url scipycon_login params.scope %}" method="post">
+          <table class="scipycon-default">
+            {{ register_form }}
+          </table>
 
-                <input type="hidden"
-                       name="next"
-                       value="{{ next_url }}" />
+          <input type="hidden" name="action" value="register" />
 
-                <button class="button left"
-                        type="submit">
-                    Register
-                </button>
+          <input type="hidden" name="next" value="{{ next_url }}" />
+
+          <button class="button left" type="submit">Register</button>
         </form>
     </div>
 {% endblock content %}