mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
clean up info tables to not over-use safe markdown filter
the safe filter is quite dangerous - it allows HTML to be rendered as passed through (the default action is to escape all html), so should only be used with trusted input. Move it so we only apply it to fields we specifically expect to have HTML in - in this case, some tables contain links to other pages. Also, clean up the variable names for some of these info tables, as they didn't really make sense.
This commit is contained in:
@@ -28,7 +28,7 @@
|
||||
field_headings_visible=True,
|
||||
caption_visible=False
|
||||
) %}
|
||||
{% for message_length, description in [
|
||||
{% for column_heading, description in [
|
||||
('day', 'The whole business day in BST'),
|
||||
('provider', 'The SMS provider'),
|
||||
('sms totals', 'The number of text messages sent'),
|
||||
@@ -37,8 +37,8 @@
|
||||
('sms cost', 'The cost of text messages sent'),
|
||||
] %}
|
||||
{% call row() %}
|
||||
{{ text_field(message_length) }}
|
||||
{{ text_field(description | safe) }}
|
||||
{{ text_field(column_heading) }}
|
||||
{{ text_field(description) }}
|
||||
{% endcall %}
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
field_headings_visible=True,
|
||||
caption_visible=False
|
||||
) %}
|
||||
{% for message_length, charge in [
|
||||
{% for column_heading, description in [
|
||||
('day', 'The whole business day in BST.'),
|
||||
('sms totals', 'The number of text messages sent'),
|
||||
('sms fragments', 'The number of text message fragments sent times the rate multiplier'),
|
||||
@@ -38,8 +38,8 @@
|
||||
('letter sheet totals', 'The number of sheets sent')
|
||||
] %}
|
||||
{% call row() %}
|
||||
{{ text_field(message_length) }}
|
||||
{{ text_field(charge | safe) }}
|
||||
{{ text_field(column_heading) }}
|
||||
{{ text_field(description) }}
|
||||
{% endcall %}
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -28,16 +28,16 @@
|
||||
field_headings_visible=True,
|
||||
caption_visible=False
|
||||
) %}
|
||||
{% for message_length, charge in [
|
||||
{% for column_heading, description in [
|
||||
('sms cost', 'The total cost of text messages sent after a service has used its free allowance.'),
|
||||
('sms chargeable units', 'The number of fragments sent after a service has used its free allowance. This number takes into account the cost multiplier for <a class="govuk-link govuk-link--no-visited-state" href="https://www.notifications.service.gov.uk/pricing#international-numbers">sending international text messages</a>.'),
|
||||
('sms chargeable units', 'The number of fragments sent after a service has used its free allowance. This number takes into account the cost multiplier for <a class="govuk-link govuk-link--no-visited-state" href="https://www.notifications.service.gov.uk/pricing#international-numbers">sending international text messages</a>.' | safe),
|
||||
('letter cost', 'The total cost of letters sent by a service.'),
|
||||
('letter breakdown', 'The number of letters sent by a service, grouped by postage and unit cost.'),
|
||||
('purchase order number, contact names, contact email addresses and billing reference', 'We add this data manually based on the information we get from services. You can help by adding it to the service settings page.'),
|
||||
] %}
|
||||
{% call row() %}
|
||||
{{ text_field(message_length) }}
|
||||
{{ text_field(charge | safe) }}
|
||||
{{ text_field(column_heading) }}
|
||||
{{ text_field(description) }}
|
||||
{% endcall %}
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -28,7 +28,7 @@
|
||||
field_headings_visible=True,
|
||||
caption_visible=False
|
||||
) %}
|
||||
{% for message_length, charge in [
|
||||
{% for column_heading, description in [
|
||||
('free allowance', 'Free allowance set for the service. This is the latest free allowance for the date range given'),
|
||||
('sms notifications', 'The number of text messages sent by the service.'),
|
||||
('sms chargeable units', 'The number of text message fragments times the rate multiplier sent by the service.'),
|
||||
@@ -38,8 +38,8 @@
|
||||
('letter sheet totals', 'The number of sheet sent by a service')
|
||||
] %}
|
||||
{% call row() %}
|
||||
{{ text_field(message_length) }}
|
||||
{{ text_field(charge | safe) }}
|
||||
{{ text_field(column_heading) }}
|
||||
{{ text_field(description) }}
|
||||
{% endcall %}
|
||||
{% endfor %}
|
||||
{% endcall %}
|
||||
|
||||
Reference in New Issue
Block a user