Add loops for changing each part of your profile

This commit adds a page or series of pages for changing your:

Name              | Email address     | Mobile number     | Password
------------------|-------------------|-------------------|------------
Enter new value   | Enter new value   | Enter new value   | Enter new value
                  | Enter 2fa code    | Enter 2fa code    |
Return to profile | Return to profile | Return to profile | Return to profile

(each row is a page)
This commit is contained in:
Chris Hill-Scott
2016-01-12 10:28:14 +00:00
parent ba50f132fc
commit df79dc69f6
5 changed files with 268 additions and 1 deletions

View File

@@ -0,0 +1,31 @@
{% extends "withnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
GOV.UK Notify | Service settings
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-xlarge">Change your {{ thing }}</h1>
<div class="grid-row">
{% if preamble %}
<p>
{{ preamble }}
</p>
{% endif %}
<div class="column-three-quarters">
<form method="post">
{{ textbox(form_field) }}
{{ page_footer(
'Save',
back_link=url_for('.userprofile'),
back_link_text="Back to your profile"
) }}
</form>
</div>
</div>
{% endblock %}

View File

@@ -0,0 +1,29 @@
{% extends "withnav_template.html" %}
{% from "components/textbox.html" import textbox %}
{% from "components/page-footer.html" import page_footer %}
{% block page_title %}
GOV.UK Notify | Service settings
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-xlarge">Change your {{ thing }}</h1>
<div class="grid-row">
<div class="column-three-quarters">
<p>
Weve sent a code to your new {{ thing }}.
</p>
<form method="post">
{{ textbox(form_field) }}
{{ page_footer(
'Confirm',
destructive=destructive,
back_link=url_for('.service_settings')
) }}
</form>
</div>
</div>
{% endblock %}