Comma-delimit thousands in ‘Send’ button

Matches the style of how we display numbers in the thousands elsewhere.
This commit is contained in:
Chris Hill-Scott
2019-11-13 13:29:49 +00:00
parent 7735c23428
commit c3b2017f47
2 changed files with 31 additions and 1 deletions

View File

@@ -45,7 +45,7 @@
) }}
{% endif %}
{% if (template.template_type != 'letter' or not request.args.from_test) and not letter_too_long %}
<button type="submit" class="button">Send {{ count_of_recipients }} {{ message_count_label(count_of_recipients, template.template_type, suffix='') }}</button>
<button type="submit" class="button">Send {{ count_of_recipients|format_thousands }} {{ message_count_label(count_of_recipients, template.template_type, suffix='') }}</button>
{% else %}
<a href="{{ url_for('main.check_messages_preview', service_id=current_service.id, template_id=template.id, upload_id=upload_id, filetype='pdf') }}" download class="button">Download as a PDF</a>
{% endif %}