login.html 1.91 KB
Newer Older
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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
{% extends "management/layouts/base.html" %}
{% block content %}
<div class="page-header" id="banner">
  <div class="row">
    <div class="col-lg-12 text-center">
      <h1><strong>GMU</strong>&#8203;WHATSOPEN</h1>
      <p class="lead">A place for managing What's Open</p>
    </div>
  </div>
</div>

<div class="row">
  <div class="col-lg-6 col-lg-offset-3">
    <div class="well">
      {% if form.errors %}
        <div class="row">
          <div class="col-md-12">
            <div class="alert alert-dismissable alert-danger">
              <button type="button" class="close" data-dismiss="alert">&times;</button>
              <strong>Oh snap!</strong> Your username and password were not
              found. Please try again.
            </div>
          </div>
        </div>
      {% endif %}

      <form id="login-form" method="post" class="form-horizontal"
      action=""> {% csrf_token %}
        <fieldset>
          <legend>Log In</legend>
          
          <div class="form-group{%if form.errors%} has-error{%endif%}">
            <label class="col-lg-2 control-label" for="username">Username</label>
            <div class="col-lg-10">
              <input type="username" name="username" id="username"
              class="form-control" placeholder="Username" />
            </div>
          </div>

          <div class="form-group{%if form.errors%} has-error{%endif%}">
            <label class="col-lg-2 control-label" for="password">Password</label>
            <div class="col-lg-10">
              <input type="password" name="password" id="password"
              class="form-control" placeholder="Password" />
            </div>
          </div>

          <div class="form-group">
            <div class="col-lg-10 col-lg-offset-2">
              <input type="submit" class="btn btn-primary" value="Sign In" />
            </div>
          </div>

        </fieldset>
      </form>
    </div>
  </div>
</div>
{% endblock %}