Remove platform admin toggle for basic view

Since platform admins can use the new settings page, this commit:
- links to that page
- removes the platform-admin-only endpoint that switches basic view on
  and off
This commit is contained in:
Chris Hill-Scott
2018-07-10 10:09:17 +01:00
parent 4d3a4ef9af
commit 2f40ddae20
4 changed files with 3 additions and 19 deletions

View File

@@ -365,8 +365,8 @@
</a>
</li>
<li class="bottom-gutter">
<a href="{{ url_for('.service_switch_caseworking', service_id=current_service.id) }}" class="button">
{{ 'Stop basic view' if 'caseworking' in current_service.permissions else 'Allow basic view' }}
<a href="{{ url_for('.service_set_basic_view', service_id=current_service.id) }}" class="button">
Set basic view
</a>
</li>
<li class="bottom-gutter">
@@ -397,3 +397,4 @@
{% endif %}
{% endblock %}
}