login.html 1.09 KB
Newer Older
Jean Michel Rouly's avatar
Jean Michel Rouly committed
1 2 3 4 5 6 7 8 9
{% extends 'base.html' %}


{% block title %}
Go - Login
{% endblock %}


{% block content %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
10 11
<h3>~Login~</h3>

Jean Michel Rouly's avatar
Jean Michel Rouly committed
12
{% for error in form.non_field_errors %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
13 14 15 16 17 18 19
  <p class="error">{{ error }}</p>
{% endfor %}

<form id="login-form" method="post"
action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}

20
  <label for="username">Mason NetID</label>
Jean Michel Rouly's avatar
Jean Michel Rouly committed
21 22 23 24 25 26
  <br/>
  {% for error in form.username.errors %}
  <p class="error">{{ error }}</p>
  {% empty %}
  <br/>
  {% endfor %}
27
  <input type="text" id="username" name="username" placeholder="Mason NetID"
Jean Michel Rouly's avatar
Jean Michel Rouly committed
28 29 30 31
  {% if form.username.errors %} class="error"{% endif %} />
  <br/><br/>

  <label for="password">Password</label>
Jean Michel Rouly's avatar
Jean Michel Rouly committed
32 33 34 35 36 37
  <br/>
  {% for error in form.password.errors %}
  <p class="error">{{ error }}</p>
  {% empty %}
  <br/>
  {% endfor %}
Jean Michel Rouly's avatar
Jean Michel Rouly committed
38 39 40 41 42 43 44 45
  <input type="password" id="password" name="password" placeholder="Password"
  {% if form.password.errors %} class="error"{% endif %} />
  <br/><br/>

  <input type="submit" value="Login" />

</form>

46 47
<p>You must be registered to use this service. Please log in in order to
submit a registration request.</p>
Jean Michel Rouly's avatar
Jean Michel Rouly committed
48

Jean Michel Rouly's avatar
Jean Michel Rouly committed
49
{% endblock %}