40 lines
		
	
	
		
			988 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			40 lines
		
	
	
		
			988 B
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% extends "registration/_registration_base.html" %}
 | 
						|
{% load url from future %}
 | 
						|
{% load i18n %}
 | 
						|
 | 
						|
{% block content %}
 | 
						|
 | 
						|
  {% if form.errors %}
 | 
						|
    <div class="alert alert-error">
 | 
						|
      <strong>Error:</strong> Your username and password didn't match. Please try again.
 | 
						|
    </div>
 | 
						|
  {% endif %}
 | 
						|
 | 
						|
  <h2>
 | 
						|
    Login
 | 
						|
  </h2>
 | 
						|
 | 
						|
  <form method="post" action="{% url "auth_login" %}">
 | 
						|
    {% csrf_token %}
 | 
						|
    <table class="table">
 | 
						|
      <tr>
 | 
						|
        <th>{{ form.username.label_tag }}</th>
 | 
						|
        <td>{{ form.username }}</td>
 | 
						|
      </tr>
 | 
						|
      <tr>
 | 
						|
        <th>{{ form.password.label_tag }}</th>
 | 
						|
        <td>{{ form.password }}</td>
 | 
						|
      </tr>
 | 
						|
      <tr>
 | 
						|
        <td>
 | 
						|
          <a href="{% url "django.contrib.auth.views.password_reset" %}">Forgot password</a>
 | 
						|
        </td>
 | 
						|
        <td>
 | 
						|
          <input class="btn pull-right" type="submit" value="Login" />
 | 
						|
        </td>
 | 
						|
      </tr>
 | 
						|
    </table>
 | 
						|
    <input type="hidden" name="next" value="{% url "accounts_index" %}" />
 | 
						|
  </form>
 | 
						|
{% endblock %}
 |