login.html 1.06 KB
Newer Older
1
{% extends 'layouts/base.html' %} {% block title %} GMU RoomList • Login {% endblock %} {% block content %}
Jason D Yeomans's avatar
Jason D Yeomans committed
2 3 4 5 6 7 8 9 10 11 12 13

<link href="/static/css/signin.css" rel="stylesheet" media="screen">

<div class="page-header" id="banner">
  <div class="row">
    <div class="col-lg-12 text-center">
      <h1><strong>GMU</strong>ROOMLIST</h1>
      <p class="lead">{{ building.name }}</p>
    </div>
  </div>
</div>

14 15 16 17
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
{% endif %}

18
<form class="form-signin" role="form" action="/accounts/login/" method="post">
19 20
  {% csrf_token %}

21 22
  <h2 class="form-signin-heading">Please sign in</h2>
  <label for="username" class="sr-only">Username</label>
23
  {{form.username}}
24
  <label for="inputPassword" class="sr-only">Password</label>
25
  {{form.password}}
Jason D Yeomans's avatar
Jason D Yeomans committed
26 27 28 29 30 31
  <div class="checkbox">
    <label>
      <input type="checkbox" value="remember-me"> Remember me
    </label>
  </div>
  <button class="btn btn-lg btn-primary btn-block" type="submit">Sign in</button>
Jason D Yeomans's avatar
Jason D Yeomans committed
32
  <input type="hidden" name="next" value="/" />
Jason D Yeomans's avatar
Jason D Yeomans committed
33 34 35
</form>

{% endblock %}