mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 21:49:37 -04:00
Add international pricing table
This commit is contained in:
@@ -35,7 +35,10 @@ def pricing():
|
|||||||
return render_template(
|
return render_template(
|
||||||
'views/pricing.html',
|
'views/pricing.html',
|
||||||
sms_rate=0.0158,
|
sms_rate=0.0158,
|
||||||
international_sms_rates=INTERNATIONAL_BILLING_RATES,
|
international_sms_rates=sorted([
|
||||||
|
(cc, country['names'], country['billable_units'])
|
||||||
|
for cc, country in INTERNATIONAL_BILLING_RATES.items()
|
||||||
|
], key=lambda x: x[0])
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -60,6 +60,21 @@
|
|||||||
times the cost of messages to UK mobile numbers.
|
times the cost of messages to UK mobile numbers.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
|
{% call mapping_table(
|
||||||
|
caption='Letter pricing',
|
||||||
|
field_headings=['Country code', 'Country', 'Cost multipler'],
|
||||||
|
field_headings_visible=True,
|
||||||
|
caption_visible=False
|
||||||
|
) %}
|
||||||
|
{% for cc, names, billable_units in international_sms_rates %}
|
||||||
|
{% call row() %}
|
||||||
|
{{ text_field('+ '|safe + cc) }}
|
||||||
|
{{ text_field(names[0]) }}
|
||||||
|
{{ text_field('{} ×'.format(billable_units)|safe) }}
|
||||||
|
{% endcall %}
|
||||||
|
{% endfor %}
|
||||||
|
{% endcall %}
|
||||||
|
|
||||||
<h2 class="heading-medium">
|
<h2 class="heading-medium">
|
||||||
Letters
|
Letters
|
||||||
</h2>
|
</h2>
|
||||||
|
|||||||
Reference in New Issue
Block a user