{% extends "newbase.html" %}

{% block main %}

{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

<ul class="main-content">
  <h1>Login</h1>
  <li class="grid_4">
    <form method="post" action="{% url 'login' %}">
      {% csrf_token %}
      <table>
        <tr>
          <td>{{ form.username.label_tag }}</td>
          <td>{{ form.username }}</td>
        </tr>
        <tr>
          <td>{{ form.password.label_tag }}</td>
          <td>{{ form.password }}</td>
        </tr>
        <tr>
          <td></td>
          <td><p><a href="/password_reset/">Forgot password?</a></p></td>
        </tr>
        <tr>
          <td></td>
          <td><p><a href="/rowers/register/?next={{ next }}">Register New User</a></p></td>
        </tr>
        <tr>
          <td></td>
          <td><input type="submit" value="login" /></td>
        </tr>
        
        
        
      </table>
      
      
      <input type="hidden" name="next" value="{{ next }}" />
    </form>
  </li>
</ul>
    
<p class="midden"><a class="twitter-follow-button"
                     href="https://twitter.com/rowsandall">
    Follow @rowsandall</a>
</p>


{% endblock %}

  
