Replace recipient macros with formatters

We prefer formatters now. Removing uses of the aliasing macro lets
remove it entirely.
This commit is contained in:
Chris Hill-Scott
2021-01-06 13:02:09 +00:00
parent 462294c9d1
commit 4615c0ea3d
11 changed files with 17 additions and 38 deletions

View File

@@ -2,17 +2,16 @@
{% from "components/page-header.html" import page_header %}
{% from "components/page-footer.html" import page_footer %}
{% from "components/file-upload.html" import file_upload %}
{% from "components/message-count-label.html" import recipient_count_label %}
{% from "components/table.html" import list_table, text_field, index_field, index_field_heading %}
{% block service_page_title %}
Upload a list of {{ recipient_count_label(999, template.template_type) }}
Upload a list of {{ 999|recipient_count_label(template.template_type) }}
{% endblock %}
{% block maincolumn_content %}
{{ page_header(
'Upload a list of {}'.format(recipient_count_label(999, template.template_type)),
'Upload a list of {}'.format(999|recipient_count_label(template.template_type)),
back_link=url_for('main.send_one_off', service_id=current_service.id, template_id=template.id)
) }}