mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-04 17:18:25 -04:00
Show org type and free allowance on settings page
As a platform admin it’s useful to be able to see what each service has set for these attributes.
This commit is contained in:
@@ -191,6 +191,19 @@
|
|||||||
field_headings_visible=False,
|
field_headings_visible=False,
|
||||||
caption_visible=False
|
caption_visible=False
|
||||||
) %}
|
) %}
|
||||||
|
{% call row() %}
|
||||||
|
{{ text_field('Organisation type')}}
|
||||||
|
{{ text_field(
|
||||||
|
current_service.organisation_type|title or 'Not set',
|
||||||
|
status='' if current_service.organisation_type else 'default'
|
||||||
|
) }}
|
||||||
|
{{ text_field() }}
|
||||||
|
{% endcall %}
|
||||||
|
{% call row() %}
|
||||||
|
{{ text_field('Free text message allowance')}}
|
||||||
|
{{ text_field('{:,}'.format(current_service.free_sms_fragment_limit)) }}
|
||||||
|
{{ text_field() }}
|
||||||
|
{% endcall %}
|
||||||
{% call row() %}
|
{% call row() %}
|
||||||
{{ text_field('Email branding' )}}
|
{{ text_field('Email branding' )}}
|
||||||
{% call field() %}
|
{% call field() %}
|
||||||
|
|||||||
@@ -54,6 +54,8 @@ def service_json(
|
|||||||
letter_contact_block=None,
|
letter_contact_block=None,
|
||||||
inbound_api=None,
|
inbound_api=None,
|
||||||
permissions=['email', 'sms'],
|
permissions=['email', 'sms'],
|
||||||
|
organisation_type='central',
|
||||||
|
free_sms_fragment_limit=250000,
|
||||||
):
|
):
|
||||||
if users is None:
|
if users is None:
|
||||||
users = []
|
users = []
|
||||||
@@ -66,12 +68,14 @@ def service_json(
|
|||||||
'name': name,
|
'name': name,
|
||||||
'users': users,
|
'users': users,
|
||||||
'message_limit': message_limit,
|
'message_limit': message_limit,
|
||||||
|
'free_sms_fragment_limit': free_sms_fragment_limit,
|
||||||
'active': active,
|
'active': active,
|
||||||
'restricted': restricted,
|
'restricted': restricted,
|
||||||
'email_from': email_from,
|
'email_from': email_from,
|
||||||
'reply_to_email_address': reply_to_email_address,
|
'reply_to_email_address': reply_to_email_address,
|
||||||
'sms_sender': sms_sender,
|
'sms_sender': sms_sender,
|
||||||
'research_mode': research_mode,
|
'research_mode': research_mode,
|
||||||
|
'organisation_type': organisation_type,
|
||||||
'organisation': organisation,
|
'organisation': organisation,
|
||||||
'branding': branding,
|
'branding': branding,
|
||||||
'created_at': created_at or str(datetime.utcnow()),
|
'created_at': created_at or str(datetime.utcnow()),
|
||||||
|
|||||||
@@ -65,6 +65,8 @@ from tests.conftest import (
|
|||||||
'Send letters Off Change',
|
'Send letters Off Change',
|
||||||
|
|
||||||
'Label Value Action',
|
'Label Value Action',
|
||||||
|
'Organisation type Central',
|
||||||
|
'Free text message allowance 250,000',
|
||||||
'Email branding GOV.UK Change',
|
'Email branding GOV.UK Change',
|
||||||
'Letter branding HM Government Change',
|
'Letter branding HM Government Change',
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user