mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-24 16:24:08 -04:00
change wording of platform admin toggle to positive rather than negative
CHS Approved Wording 👍
also rename suppress_platform_admin -> disable_platform_admin_view in
the backend, as suppress is a kinda weird word.
This commit is contained in:
@@ -45,11 +45,11 @@
|
||||
{{ edit_field('Change', url_for('.user_profile_password')) }}
|
||||
{% endcall %}
|
||||
|
||||
{% if current_user.platform_admin or session.get('suppress_platform_admin') %}
|
||||
{% if current_user.platform_admin or session.get('disable_platform_admin_view') %}
|
||||
{% call row() %}
|
||||
{{ text_field('Suppress Platform Admin') }}
|
||||
{{ text_field('On' if session.get('suppress_platform_admin') else 'Off') }}
|
||||
{{ edit_field('Change', url_for('.user_profile_suppress_platform_admin')) }}
|
||||
{{ text_field('Use platform admin view') }}
|
||||
{{ text_field('Yes' if not session.get('disable_platform_admin_view') else 'No') }}
|
||||
{{ edit_field('Change', url_for('.user_profile_disable_platform_admin_view')) }}
|
||||
{% endcall %}
|
||||
{% endif %}
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
{% from "components/radios.html" import radios %}
|
||||
|
||||
{% block per_page_title %}
|
||||
Suppress platform admin view
|
||||
Use platform admin view
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
@@ -13,7 +13,7 @@
|
||||
<div class="grid-row">
|
||||
<div class="column-five-sixths">
|
||||
{{ page_header(
|
||||
'Suppress platform admin',
|
||||
'Use platform admin view',
|
||||
back_link=url_for('.user_profile')
|
||||
) }}
|
||||
|
||||
Reference in New Issue
Block a user