Files
notifications-admin/app/templates/views/user-profile.html

75 lines
2.3 KiB
HTML
Raw Permalink Normal View History

{% extends "withnav_template.html" %}
2016-01-12 09:58:21 +00:00
{% from "components/table.html" import list_table, row, field %}
{% from "components/table.html" import mapping_table, row, text_field, optional_text_field, edit_field, field, boolean_field with context %}
{% block per_page_title %}
2023-10-12 10:21:11 -04:00
User profile
{% endblock %}
{% block serviceNavigation %}{% endblock %}
{% block sideNavigation %}
{% include "components/settings_nav.html" %}
{% endblock %}
{% block maincolumn_content %}
2023-10-12 10:21:11 -04:00
<h1 class="font-body-2xl margin-bottom-3">User profile</h1>
<div class="body-copy-table">
{% call mapping_table(
2023-10-12 10:21:11 -04:00
caption='User profile',
field_headings_visible=False,
caption_visible=False
) %}
{% call row() %}
{{ text_field('Name') }}
{{ text_field(current_user.name) }}
{{ edit_field(
'Change',
url_for('.user_profile_name'),
suffix='name'
)
}}
{% endcall %}
{% call row() %}
{{ text_field('Mobile number') }}
{{ optional_text_field(current_user.mobile_number) }}
{{ edit_field(
'Change',
url_for('.user_profile_mobile_number'),
suffix='mobile number'
)
}}
{% endcall %}
2023-11-30 12:39:37 -08:00
{% call row() %}
2024-08-26 10:06:29 -07:00
{{ text_field('Preferred timezone') }}
2023-11-30 12:39:37 -08:00
{{ optional_text_field(current_user.preferred_timezone) }}
2024-08-26 10:06:29 -07:00
{{ text_field('Set automatically') }}
2023-11-30 12:39:37 -08:00
{% endcall %}
{% if current_user.platform_admin or session.get('disable_platform_admin_view') %}
{% call row(id='disable-platform-admin') %}
{{ 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) }}
{{ edit_field(
'Change',
url_for('.user_profile_disable_platform_admin_view'),
suffix='whether to use platform admin view'
)
}}
{% endcall %}
{% endif %}
2017-11-14 16:54:53 +00:00
{% endcall %}
</div>
2024-04-18 16:06:05 -07:00
<h2>Sign-in method</h2>
2024-04-19 11:26:36 -07:00
<p>Your username, password, and multi-factor authentication options are handled by Login.gov. </p>
<p>To make changes, head to <a href="https://secure.login.gov/">Login.gov</a>
and sign-in with your credentials. Any changes made to your Login.gov account will automatically be synced with Notify.gov.</p>
2024-04-18 16:06:05 -07:00
{% endblock %}