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


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


{% block content %}
Chris Reffett's avatar
Chris Reffett committed
10 11 12 13 14 15 16 17 18 19 20 21 22
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-md-12">

      <h1><strong>Login</strong></h1>

    </div>
  </div>
</div>

<div class="row">
  <div class="col-md-6">
    <div class="well">
23

Chris Reffett's avatar
Chris Reffett committed
24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86
      <form class="form-horizontal" method="post" action="{% url 'django.contrib.auth.views.login' %}">
      {% csrf_token %}
      <fieldset>

        {% if form.non_field_errors %}
          <div class="form-group has-error">
            <div class="col-md-12">
            {% for error in form.non_field_errors %}
              <span class="help-block">{{ error }}</p>
            {% endfor %}
            </div>
          </div>
          {% endif %}

          {% if form.username.errors %}
          <div class="form-group has-error">
          {% else %}
          <div class="form-group">
          {% endif %}
            <div class="col-md-4">
              <label class="control-label" for="{{ form.username.id_for_label }}">
              {{ form.username.label }}</label>
            </div>

            <div class="col-md-8">
              <input type="text" id="username" name="username" placeholder="Mason NetID" />
              {% for error in form.username.errors %}
              <span class="help-block">{{error}}</span>
              {% endfor %}
            </div>
          </div>

          {% if form.password.errors %}
          <div class="form-group has-error">
          {% else %}
          <div class="form-group">
          {% endif %}
            <div class="col-md-4">
              <label class="control-label" for="{{ form.password.id_for_label }}">
              {{ form.password.label }}</label>
            </div>

            <div class="col-md-8">
              <input type="password" id="password" name="password" placeholder="Password" />
              {% for error in form.password.errors %}
              <span class="help-block">{{error}}</span>
              {% endfor %}
            </div>
          </div>

          <div class="form-group">
            <div class="col-md-12">
              <input type="submit" value="Login"
              class="btn btn-primary btn-lg btn-block" />
            </div>
          </div>

        </fieldset>
      </form>

    </div>
  </div>
</div>
Jean Michel Rouly's avatar
Jean Michel Rouly committed
87

88 89
<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
90

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