2016-02-01 12:15:38 +00:00
|
|
|
|
{% extends "withoutnav_template.html" %}
|
2016-01-12 09:58:21 +00:00
|
|
|
|
{% from "components/table.html" import list_table, row, field %}
|
2015-11-30 16:13:33 +00:00
|
|
|
|
|
|
|
|
|
|
{% block page_title %}
|
2016-02-08 09:23:51 +00:00
|
|
|
|
Your profile – GOV.UK Notify
|
2015-11-30 16:13:33 +00:00
|
|
|
|
{% endblock %}
|
|
|
|
|
|
|
2016-02-01 12:15:38 +00:00
|
|
|
|
{% block maincolumn_content %}
|
2015-11-30 16:13:33 +00:00
|
|
|
|
|
2016-02-02 14:05:45 +00:00
|
|
|
|
<h1 class="heading-large">Your profile</h1>
|
2015-11-30 16:13:33 +00:00
|
|
|
|
|
2016-04-05 11:16:29 +01:00
|
|
|
|
{% call(item, row_number) list_table(
|
2016-01-12 09:58:21 +00:00
|
|
|
|
[
|
2016-01-15 17:46:09 +00:00
|
|
|
|
{'label': 'Name', 'value': current_user.name, 'url': url_for('.user_profile_name')},
|
|
|
|
|
|
{'label': 'Email address', 'value': current_user.email_address, 'url': url_for('.user_profile_email')},
|
|
|
|
|
|
{'label': 'Mobile number', 'value': current_user.mobile_number, 'url': url_for('.user_profile_mobile_number')},
|
2016-06-28 10:40:39 +01:00
|
|
|
|
{'label': 'Password', 'value': 'Last changed ' + current_user.password_changed_at |format_datetime_short, 'url': url_for('.user_profile_password')},
|
2016-01-12 09:58:21 +00:00
|
|
|
|
],
|
|
|
|
|
|
caption='Account settings',
|
|
|
|
|
|
field_headings=['Setting', 'Value', 'Link to change'],
|
|
|
|
|
|
field_headings_visible=False,
|
|
|
|
|
|
caption_visible=False
|
|
|
|
|
|
) %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
{{ item.label }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field() %}
|
|
|
|
|
|
{{ item.value }}
|
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% call field(align='right') %}
|
2016-10-28 11:45:05 +01:00
|
|
|
|
{% if item.label == 'Email address' %}
|
|
|
|
|
|
{% if can_see_edit %}
|
|
|
|
|
|
<a href="{{ item.url }}">Change</a>
|
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
{% else %}
|
|
|
|
|
|
<a href="{{ item.url }}">Change</a>
|
|
|
|
|
|
{% endif %}
|
2016-01-12 09:58:21 +00:00
|
|
|
|
{% endcall %}
|
|
|
|
|
|
{% endcall %}
|
2015-11-30 16:13:33 +00:00
|
|
|
|
|
|
|
|
|
|
{% endblock %}
|