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:
Leo Hemsted
2019-06-14 12:32:47 +01:00
parent 7b02cb72c6
commit c724f84c23
6 changed files with 57 additions and 50 deletions

View File

@@ -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 %}

View File

@@ -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')
) }}