Commit 4ef92069 authored by Jon Yu's avatar Jon Yu
Browse files

Style remaining accounts pages

parent cf9634dd
Pipeline #17896 passed with stage
in 14 seconds
......@@ -2,40 +2,38 @@
{% block content %}
{% if form.errors %}
<p>Your username and password didn't match. Please try again.</p>
<div class="alert alert-danger" role="alert">Your username and password didn't match. Please try again.</div>
{% endif %}
{% if next %}
{% if user.is_authenticated %}
<p>Your account doesn't have access to this page. To proceed,
please login with an account that has access.</p>
<div class="alert alert-danger" role="alert">Your account doesn't have access to this page. To proceed,
please login with an account that has access.</div>
{% else %}
<p>Please login to see this page.</p>
<div class="alert alert-danger" role="alert">Please login to see this page.</div>
{% endif %}
{% endif %}
<div class="col-lg-6 offset-lg-3 my-4">
<div class="card">
<div class="card-body">
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<div class="form-row">
<div class="form-group col-md-6">
<label for="username">Username</label>
<input class="form-control" type="text" placeholder="Username" autofocus autocapitalize="none" autocomplete="username" maxlength="150" required id="username">
</div>
<div class="form-group col-md-6">
<label for="password">Password</label>
<input class="form-control" type="password" placeholder="Password" autofocus autocomplete="current-password" required id="password">
</div>
<div class="card">
<div class="card-body">
<form method="post" action="{% url 'login' %}">
{% csrf_token %}
<div class="form-row">
<div class="form-group col-md-6">
<label for="username">Username</label>
<input class="form-control" name="username" type="text" placeholder="Username" autofocus autocapitalize="none" autocomplete="username" maxlength="150" required id="username">
</div>
<button type="submit" class="btn btn-primary">Login</button>
<input type="hidden" name="next" value="{{ next }}">
</form>
</div>
<div class="card-footer">
<a href="{% url 'password_reset' %}">Lost password?</a>
</div>
<div class="form-group col-md-6">
<label for="password">Password</label>
<input class="form-control" name="password" type="password" placeholder="Password" autofocus autocomplete="current-password" required id="password">
</div>
</div>
<button type="submit" class="btn btn-primary">Login</button>
<input type="hidden" name="next" value="{{ next }}">
</form>
</div>
<div class="card-footer">
<a href="{% url 'password_reset' %}">Lost password?</a>
</div>
</div>
{% endblock %}
{% extends 'base.html' %}
{% block content %}
<div class="card">
<div class="card-body">
<p>Your password has been set. You may go ahead and <a href="{% url 'login' %}">sign in</a> now.</p>
</div>
</div>
{% endblock %}
{% extends 'base.html' %}
{% block content %}
{% if validlink %}
<h1>Change password</h1>
<form method="post">
{% csrf_token %}
<div class="form-group">
<label for="new_password">New password:</label>
<input class="form-control" type="password" name="new_password1" autocomplete="new-password" placeholder="New password" required id="new_password">
</div>
<ul>
<li>Your password can’t be too similar to your other personal information.</li>
<li>Your password must contain at least 8 characters.</li>
<li>Your password can’t be a commonly used password.</li>
<li>Your password can’t be entirely numeric.</li>
{% for field, errors in form.errors.items %}
{% for error in errors %}
<li>{{ error }}</li>
{% endfor %}
{% endfor %}
</ul>
<div class="form-group">
<label for="new_password_confirmation">New password confirmation:</label>
<input class="form-control" type="password" name="new_password2" autocomplete="new-password" placeholder="New password confirmation" required id="new_password_confirmation">
</div>
<button type="submit" class="btn btn-primary">Change password</button>
</form>
{% else %}
<div class="alert alert-danger" role="alert">
The password reset link was invalid, possibly because it has already been used.
Please request a new password reset.
</div>
{% endif %}
{% endblock %}
{% extends 'base.html' %}
{% block content %}
<p>
We've emailed you instructions for setting your password, if an account exists with the email you entered.
You should receive them shortly.
</p>
<p>
If you don't receive an email, please make sure you've entered the address you registered with,
and check your spam folder.
</p>
<div class="card">
<div class="card-body">
<p>
We've emailed you instructions for setting your password, if an account exists with the email you entered.
You should receive them shortly.
</p>
<p>
If you don't receive an email, please make sure you've entered the address you registered with,
and check your spam folder.
</p>
</div>
</div>
{% endblock %}
{% extends "base.html" %}
{% block content %}
<div class="col-lg-6 offset-lg-3 my-4">
<div class="card">
<div class="card-body">
<p>Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.</p>
<form method="post" action="{% url 'password_reset' %}">
{% csrf_token %}
<fieldset>
<div class="form-group">
<label for="email">Email</label>
<input type="email" name="email" autocomplete="email" maxlength="254" required id="email" placeholder="Email">
</div>
<button type="submit" class="btn btn-primary">Reset my password</button>
</fieldset>
</form>
</div>
{% if form.errors %}
<div class="alert alert-danger" role="alert">Enter a valid email address.</div>
{% endif %}
<div class="card">
<div class="card-body">
<p>Forgotten your password? Enter your email address below, and we’ll email instructions for setting a new one.</p>
<form method="post" action="{% url 'password_reset' %}">
{% csrf_token %}
<fieldset>
<div class="form-group">
<label for="email" class="sr-only">Email</label>
<input class="form-control" type="email" name="email" autocomplete="email" maxlength="254" required id="email" placeholder="Email">
</div>
<button type="submit" class="btn btn-primary">Reset my password</button>
</fieldset>
</form>
</div>
</div>
{% endblock %}
......@@ -44,7 +44,7 @@
</div>
</nav>
<main role="main" class="container-fluid pt-2">
<main role="main" class="container mt-3">
<div>
{% block content %}
{% endblock %}
......
Supports Markdown
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