Files
notifications-admin/app/templates/views/service-settings.html
Chris Hill-Scott a6d19ff45b Show correct default state on service settings page
By default a service should be active (ie keys not suspended). For some reason
the API is returning the opposite.

This commit reverses the logic to make it look right for hack day.
2016-01-26 17:16:24 +00:00

39 lines
1.2 KiB
HTML

{% extends "withnav_template.html" %}
{% from "components/browse-list.html" import browse_list %}
{% block page_title %}
GOV.UK Notify | Service settings
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-xlarge">Service settings</h1>
{{ browse_list([
{
'title': 'Change your service name',
'link': url_for('.service_name_change', service_id=service_id)
},
{
'title': 'Request to go live and turn off sending restrictions',
'link': url_for('.service_request_to_go_live', service_id=service_id),
'hint': 'A live service can send notifications to any phone number or email address',
} if not service.live else {
},
{
'title': 'Temporarily suspend API keys',
'link': url_for('.service_status_change', service_id=service_id),
'destructive': True
} if not service.active else {
'title': 'Reactivate API keys',
'link': url_for('.service_status_change', service_id=service_id)
},
{
'title': 'Delete this service from GOV.UK Notify',
'link': url_for('.service_delete', service_id=service_id),
'destructive': True
},
]) }}
{% endblock %}