mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-05-26 16:20:19 -04:00
Split platform admin settings into new section
Makes it clearer what a normal user can change and what a platform admin can change.
This commit is contained in:
@@ -18,10 +18,6 @@
|
||||
'title': 'Set email reply to address',
|
||||
'link': url_for('.service_set_reply_to_email', service_id=current_service.id)
|
||||
},
|
||||
{
|
||||
'title': 'Set email branding',
|
||||
'link': url_for('.service_set_branding_and_org', service_id=current_service.id)
|
||||
} if current_user.has_permissions([], admin_override=True) else {},
|
||||
{
|
||||
'title': 'Set text message sender name',
|
||||
'link': url_for('.service_set_sms_sender', service_id=current_service.id)
|
||||
@@ -39,23 +35,34 @@
|
||||
} if not current_service.active else {
|
||||
'title': 'Reactivate API keys',
|
||||
'link': url_for('.service_status_change', service_id=current_service.id)
|
||||
},
|
||||
{
|
||||
'title': 'Make service live',
|
||||
'link': url_for('.service_switch_live', service_id=current_service.id)
|
||||
} if current_service.restricted and current_user.has_permissions([], admin_override=True) else {
|
||||
'title': 'Revert service to trial',
|
||||
'link': url_for('.service_switch_live', service_id=current_service.id)
|
||||
} if not current_service.restricted and current_user.has_permissions([], admin_override=True) else {
|
||||
},
|
||||
{
|
||||
'title': 'Put service into research mode',
|
||||
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
||||
} if not current_service.research_mode and current_user.has_permissions([], admin_override=True) else {
|
||||
'title': 'Take service out of research mode',
|
||||
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
||||
} if current_service.research_mode and current_user.has_permissions([], admin_override=True) else {
|
||||
}
|
||||
]) }}
|
||||
|
||||
{% if current_user.has_permissions([], admin_override=True) %}
|
||||
|
||||
<h2 class="heading-large">Platform admin settings</h2>
|
||||
|
||||
{{ browse_list([
|
||||
{
|
||||
'title': 'Set email branding',
|
||||
'link': url_for('.service_set_branding_and_org', service_id=current_service.id)
|
||||
},
|
||||
{
|
||||
'title': 'Make service live',
|
||||
'link': url_for('.service_switch_live', service_id=current_service.id)
|
||||
} if current_service.restricted else {
|
||||
'title': 'Revert service to trial',
|
||||
'link': url_for('.service_switch_live', service_id=current_service.id)
|
||||
},
|
||||
{
|
||||
'title': 'Put service into research mode',
|
||||
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
||||
} if not current_service.research_mode else {
|
||||
'title': 'Take service out of research mode',
|
||||
'link': url_for('.service_switch_research_mode', service_id=current_service.id)
|
||||
}
|
||||
]) }}
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user