mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-26 17:24:23 -04:00
Add page to show all uploaded letters
Because we won’t be showing uploaded letters individually on the uploads page any more we need a way of listing them. This should be by printing day, to match how we’re grouping them on the uploads page. This code reuses the notifications.html template, but flips the precedence of the filename and recipient because I reckon when you’re looking at uploads you’re thinking filename-first.
This commit is contained in:
37
app/templates/views/uploads/uploaded-letters.html
Normal file
37
app/templates/views/uploads/uploaded-letters.html
Normal file
@@ -0,0 +1,37 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from 'components/big-number.html' import big_number %}
|
||||
{% from 'components/message-count-label.html' import message_count_label %}
|
||||
{% from "components/page-header.html" import page_header %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Uploaded letters
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
{{ page_header(
|
||||
'Uploaded letters',
|
||||
back_link=url_for('main.uploads', service_id=current_service.id)
|
||||
) }}
|
||||
|
||||
{% if notifications %}
|
||||
|
||||
<p class='govuk-body'>
|
||||
{{ total|format_thousands}} {{ message_count_label(total, 'letter', suffix='') }}
|
||||
</p>
|
||||
|
||||
<p class='govuk-body'>
|
||||
{{ letter_printing_statement }}
|
||||
</p>
|
||||
|
||||
{% else %}
|
||||
|
||||
<p class='table-empty-message'>
|
||||
No letters printing {{ letter_print_day }}
|
||||
</p>
|
||||
|
||||
{% endif %}
|
||||
|
||||
{% include 'views/activity/notifications.html' %}
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user