mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-03-02 07:11:14 -05:00
This changeset removes webauthn from the Notify.gov admin app. We are not using webauthn at all in our implementation and will be looking at an entirely different authentication system in the near future. Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
85 lines
2.4 KiB
HTML
85 lines
2.4 KiB
HTML
{% extends "withoutnav_template.html" %}
|
|
{% 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 %}
|
|
Your profile
|
|
{% endblock %}
|
|
|
|
{% block maincolumn_content %}
|
|
|
|
<h1 class="font-body-2xl margin-bottom-3">Your profile</h1>
|
|
|
|
<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) }}
|
|
{{ edit_field(
|
|
'Change',
|
|
url_for('.user_profile_name'),
|
|
suffix='name'
|
|
)
|
|
}}
|
|
{% endcall %}
|
|
|
|
{% call row() %}
|
|
{{ text_field('Email address') }}
|
|
{{ text_field(current_user.email_address) }}
|
|
{% if can_see_edit %}
|
|
{{ edit_field(
|
|
'Change',
|
|
url_for('.user_profile_email'),
|
|
suffix='email address'
|
|
)
|
|
}}
|
|
{% else %}
|
|
{{ text_field('') }}
|
|
{% endif %}
|
|
{% 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 %}
|
|
|
|
{% call row() %}
|
|
{{ text_field('Password') }}
|
|
{{ text_field('Last changed ' + current_user.password_changed_at|format_delta) }}
|
|
{{ edit_field(
|
|
'Change',
|
|
url_for('.user_profile_password'),
|
|
suffix='password'
|
|
)
|
|
}}
|
|
{% 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') }}
|
|
{{ 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 %}
|
|
|
|
{% endcall %}
|
|
</div>
|
|
|
|
{% endblock %}
|