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 %}
|
2018-01-25 15:29:05 +00:00
|
|
|
{% from "components/table.html" import mapping_table, row, text_field, optional_text_field, edit_field, field, boolean_field with context %}
|
2015-11-30 16:13:33 +00:00
|
|
|
|
2017-02-13 10:45:15 +00:00
|
|
|
{% block per_page_title %}
|
|
|
|
|
Your profile
|
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
|
|
|
|
2023-06-06 15:28:24 -04:00
|
|
|
<h1 class="font-body-2xl margin-bottom-3">Your profile</h1>
|
2015-11-30 16:13:33 +00:00
|
|
|
|
2019-02-11 12:58:54 +00:00
|
|
|
<div class="body-copy-table">
|
|
|
|
|
{% call mapping_table(
|
|
|
|
|
caption='Your profile',
|
|
|
|
|
field_headings=['Label', 'Value', 'Action'],
|
|
|
|
|
field_headings_visible=False,
|
|
|
|
|
caption_visible=False
|
|
|
|
|
) %}
|
|
|
|
|
{% call row() %}
|
|
|
|
|
{{ text_field('Name') }}
|
|
|
|
|
{{ text_field(current_user.name) }}
|
2021-08-05 13:57:07 +01:00
|
|
|
{{ edit_field(
|
|
|
|
|
'Change',
|
|
|
|
|
url_for('.user_profile_name'),
|
|
|
|
|
suffix='name'
|
|
|
|
|
)
|
|
|
|
|
}}
|
2019-02-11 12:58:54 +00:00
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
{{ text_field('Email address') }}
|
|
|
|
|
{{ text_field(current_user.email_address) }}
|
|
|
|
|
{% if can_see_edit %}
|
2021-08-05 13:57:07 +01:00
|
|
|
{{ edit_field(
|
|
|
|
|
'Change',
|
|
|
|
|
url_for('.user_profile_email'),
|
|
|
|
|
suffix='email address'
|
|
|
|
|
)
|
|
|
|
|
}}
|
2019-02-11 12:58:54 +00:00
|
|
|
{% else %}
|
|
|
|
|
{{ text_field('') }}
|
|
|
|
|
{% endif %}
|
|
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
{{ text_field('Mobile number') }}
|
|
|
|
|
{{ optional_text_field(current_user.mobile_number) }}
|
2021-08-05 13:57:07 +01:00
|
|
|
{{ edit_field(
|
|
|
|
|
'Change',
|
|
|
|
|
url_for('.user_profile_mobile_number'),
|
|
|
|
|
suffix='mobile number'
|
|
|
|
|
)
|
|
|
|
|
}}
|
2019-02-11 12:58:54 +00:00
|
|
|
{% endcall %}
|
|
|
|
|
|
|
|
|
|
{% call row() %}
|
|
|
|
|
{{ text_field('Password') }}
|
|
|
|
|
{{ text_field('Last changed ' + current_user.password_changed_at|format_delta) }}
|
2021-08-05 13:57:07 +01:00
|
|
|
{{ edit_field(
|
|
|
|
|
'Change',
|
|
|
|
|
url_for('.user_profile_password'),
|
|
|
|
|
suffix='password'
|
|
|
|
|
)
|
|
|
|
|
}}
|
2019-02-11 12:58:54 +00:00
|
|
|
{% endcall %}
|
2017-11-14 16:54:53 +00:00
|
|
|
|
2019-06-14 12:32:47 +01:00
|
|
|
{% if current_user.platform_admin or session.get('disable_platform_admin_view') %}
|
2021-05-11 17:53:36 +01:00
|
|
|
{% call row(id='disable-platform-admin') %}
|
2019-06-14 12:32:47 +01:00
|
|
|
{{ text_field('Use platform admin view') }}
|
2021-10-15 09:18:54 +01:00
|
|
|
{{ text_field((not session.get('disable_platform_admin_view'))|format_yes_no) }}
|
2021-08-05 13:57:07 +01:00
|
|
|
{{ edit_field(
|
|
|
|
|
'Change',
|
|
|
|
|
url_for('.user_profile_disable_platform_admin_view'),
|
|
|
|
|
suffix='whether to use platform admin view'
|
|
|
|
|
)
|
|
|
|
|
}}
|
2019-06-13 19:00:17 +01:00
|
|
|
{% endcall %}
|
|
|
|
|
{% endif %}
|
|
|
|
|
|
2017-11-14 16:54:53 +00:00
|
|
|
{% endcall %}
|
2019-02-11 12:58:54 +00:00
|
|
|
</div>
|
2015-11-30 16:13:33 +00:00
|
|
|
|
|
|
|
|
{% endblock %}
|