mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-19 14:09:20 -04:00
Don’t let services go live without an organisation
We shouldn’t be making services live without an agreement in place. In order to have an agreement in place we need to know what organisation operates the service. If a service comes along but belongs to an organisation we don’t know about then we should create that organisation. This commits removes the link, which should force this to happen.
This commit is contained in:
@@ -288,8 +288,13 @@
|
||||
|
||||
{% call row() %}
|
||||
{{ text_field('Live')}}
|
||||
{{ boolean_field(not current_service.trial_mode) }}
|
||||
{{ edit_field('Change', url_for('.service_switch_live', service_id=current_service.id)) }}
|
||||
{% if current_service.trial_mode and not current_service.organisation %}
|
||||
{{ text_field('No (you need to assign this service to an organisation before you can make it live)') }}
|
||||
{{ text_field('') }}
|
||||
{% else %}
|
||||
{{ boolean_field(not current_service.trial_mode) }}
|
||||
{{ edit_field('Change', url_for('.service_switch_live', service_id=current_service.id)) }}
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
{% call row() %}
|
||||
|
||||
Reference in New Issue
Block a user