Commit c9c08804 authored by Jean Michel Rouly's avatar Jean Michel Rouly
Browse files

Styled login page.

parent 3e38993b
{% extends 'layouts/base.html' %}
{% block title %}
HNRS 110 • Login
{% endblock %}
{% block content %}
<div class="page-header" id="banner">
<div class="row">
<div class="col-lg-12">
<div class="col-lg-10 col-lg-offset-1">
<h1>Login</h1>
<p class="lead">Description</p>
<p class="lead">Honors 110 Research Question peer review tool.</p>
</div>
</div>
</div>
{% if form.errors %}
<div class="row">
<div class="col-lg-12">
<p>Your username and password didn't match. Please try again.</p>
<div class="col-lg-6 col-lg-offset-1">
<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 didn't match.
Please try again.
</div>
</div>
</div>
{% endif %}
<p>Please log in using your GMU NetID.</p>
<form id="login-form" method="post" action="{% url 'django.contrib.auth.views.login' %}">
{% csrf_token %}
<label for="username">user</label>
<br />
<input type="username" name="username" id="username" placeholder="Username" />
<br /><br />
<label for="password">password</label>
<br />
<input type="password" name="password" id="password" placeholder="Password" />
<br /><br />
<input type="submit" value="Sign in" />
</form>
<div class="row">
<div class="col-lg-6 col-lg-offset-1">
<div class="well">
<form id="login-form" method="post" class="form-horizontal"
action="{% url 'django.contrib.auth.views.login' %}"> {% csrf_token %}
<fieldset>
<div class="form-group">
<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">
<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 %}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment