mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 00:28:25 -04:00
Add Suspend and Resume service buttons to service-settings page.
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
{{ banner(
|
||||
message,
|
||||
'default' if ((category == 'default') or (category == 'default_with_tick')) else 'dangerous',
|
||||
delete_button="Yes, {}".format(category) if category in ['delete', 'remove'] else None,
|
||||
delete_button="Yes, {}".format(category) if category in ['delete', 'suspend', 'resume', 'remove'] else None,
|
||||
with_tick=True if category == 'default_with_tick' else False
|
||||
)}}
|
||||
{% endfor %}
|
||||
|
||||
@@ -115,6 +115,18 @@
|
||||
Archive service
|
||||
</a>
|
||||
</li>
|
||||
<li class="bottom-gutter">
|
||||
<a href="{{ url_for('.suspend_service', service_id=current_service.id) }}" class="button">
|
||||
Suspend service
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
{% if not current_service.active %}
|
||||
<li class="bottom-gutter">
|
||||
<a href="{{ url_for('.resume_service', service_id=current_service.id) }}" class="button">
|
||||
Resume service
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
</ul>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user