mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-05 08:31:00 -04:00
Added forgot password / create new password screens
Create new password would be sent in an email to the user.
This commit is contained in:
@@ -101,3 +101,13 @@ def showjob():
|
||||
@main.route("/jobs/job/notification")
|
||||
def shownotification():
|
||||
return render_template('notification.html')
|
||||
|
||||
|
||||
@main.route("/forgot-password")
|
||||
def forgotpassword():
|
||||
return render_template('forgot-password.html')
|
||||
|
||||
|
||||
@main.route("/new-password")
|
||||
def newpassword():
|
||||
return render_template('new-password.html')
|
||||
|
||||
27
app/templates/forgot-password.html
Normal file
27
app/templates/forgot-password.html
Normal file
@@ -0,0 +1,27 @@
|
||||
{% extends "admin_template.html" %}
|
||||
|
||||
{% block page_title %}
|
||||
GOV.UK Notify
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-xlarge">Create a new password</h1>
|
||||
|
||||
<p>If you have forgotten your password, we can send you an email to create a new password.</p>
|
||||
|
||||
<p>
|
||||
<label class="form-label" for="email">Email address</label>
|
||||
<input class="form-control" id="email" type="text" value="">
|
||||
</p>
|
||||
|
||||
|
||||
<p>
|
||||
<a class="button" href="sign-in" role="button">Send email</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
24
app/templates/new-password.html
Normal file
24
app/templates/new-password.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "admin_template.html" %}
|
||||
|
||||
{% block page_title %}
|
||||
GOV.UK Notify
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-two-thirds">
|
||||
<h1 class="heading-xlarge">Create a new password</h1>
|
||||
|
||||
<p>
|
||||
<label class="form-label" for="password">Password</label>
|
||||
<input class="form-control-1-4" id="password" type="password">
|
||||
</p>
|
||||
|
||||
<p>
|
||||
<a class="button" href="two-factor" role="button">Continue</a>
|
||||
</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -19,7 +19,7 @@ Hello world!
|
||||
<p>
|
||||
<label class="form-label" for="password">Password</label>
|
||||
<input class="form-control-1-4" id="password" type="password"><br>
|
||||
<span class="font-xsmall"><a href="">Forgotten password?</a></span>
|
||||
<span class="font-xsmall"><a href="forgot-password">Forgotten password?</a></span>
|
||||
</p>
|
||||
|
||||
<p>
|
||||
|
||||
Reference in New Issue
Block a user