{% extends 'base.html' %}

{% block title %}UWCS | Log in{% endblock %}

{% block content %}
  <section class="row margin-top-2x margin-bottom-1x">
    <div class="small-12 medium-8 large-6 medium-push-2 large-push-3 columns">
      <h3>Log in</h3>
      <form method="post">
        {% csrf_token %}

        {% if form.non_field_errors %}
          <div class="callout alert">
            <p>{{ form.non_field_errors.as_text }}</p>
          </div>
        {% endif %}

        <label {% if form.username.errors %}class="error"{% endif %}>{{ form.username.label }}
          {{ form.username }}
          {% if form.username.errors %}
            <span class="error">{{ form.username.errors.as_text }}</span>
          {% endif %}
        </label>
        <label {% if form.password.errors %}class="error"{% endif %}>{{ form.password.label }}
          {{ form.password }}
          {% if form.password.errors %}
            <span class="error">{{ form.password.errors.as_text }}</span>
          {% endif %}
        </label>

        <input type="submit" class="button" value="Log in">
      </form>

      <hr>

      <h3>Forgotten your password?</h3>
      <p><a href="{% url 'password_reset' %}">Click here to start resetting your password.</a></p>
    </div>
  </section>
{% endblock %}
{% extends 'base.html' %}

{% block title %}UWCS | Log in{% endblock %}

{% block content %}
  <section class="row margin-top-2x margin-bottom-1x">
    <div class="small-12 medium-8 large-6 medium-push-2 large-push-3 columns">
      <h3>Log in</h3>
      <form method="post">
        {% csrf_token %}

        {% if form.non_field_errors %}
          <div class="callout alert">
            <p>{{ form.non_field_errors.as_text }}</p>
          </div>
        {% endif %}

        <label {% if form.username.errors %}class="error"{% endif %}>University Number
          {{ form.username }}
          {% if form.username.errors %}
            <span class="error">{{ form.username.errors.as_text }}</span>
          {% endif %}
        </label>
        <label {% if form.password.errors %}class="error"{% endif %}>{{ form.password.label }}
          {{ form.password }}
          {% if form.password.errors %}
            <span class="error">{{ form.password.errors.as_text }}</span>
          {% endif %}
        </label>

        <input type="submit" class="button" value="Log in">
      </form>

      <hr>

      <h3>Forgotten your password?</h3>
      <p><a href="{% url 'password_reset' %}">Click here to start resetting your password.</a></p>
    </div>
  </section>
{% endblock %}
Rename username field to university number
Rename username field to university number

Closes #44
