mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-07 17:08:25 -04:00
big commit with letters removal
This commit is contained in:
@@ -14,17 +14,4 @@
|
||||
{% endif %}
|
||||
</a>
|
||||
{% endif %}
|
||||
{% if current_service.has_returned_letters %}
|
||||
<a id="total-returned-letters" class="govuk-link govuk-link--no-visited-state banner-dashboard" href="{{ url_for('main.returned_letter_summary', service_id=current_service.id) }}">
|
||||
<span class="banner-dashboard-count">
|
||||
{{ current_service.count_of_returned_letters_in_last_7_days|format_thousands }}
|
||||
</span>
|
||||
<span class="banner-dashboard-count-label">
|
||||
returned {{ current_service.count_of_returned_letters_in_last_7_days|message_count_label('letter', suffix='') }}
|
||||
</span>
|
||||
<span class="banner-dashboard-meta">
|
||||
latest report {{ current_service.date_of_most_recent_returned_letter_report|format_delta_days }}
|
||||
</span>
|
||||
</a>
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
caption="Recent files uploaded",
|
||||
caption_visible=False,
|
||||
empty_message=(
|
||||
'Upload a letter and Notify will print, pack and post it for you.' if current_service.has_permission('letter') else 'You have not uploaded any files yet.'
|
||||
'You have not uploaded any files yet.'
|
||||
),
|
||||
field_headings=[
|
||||
'File',
|
||||
@@ -62,29 +62,12 @@
|
||||
suffix='waiting to send'
|
||||
)
|
||||
) }}
|
||||
{% elif item.template_type == 'letter' %}
|
||||
{{ big_number(
|
||||
item.notification_count,
|
||||
smallest=True,
|
||||
label=item.notification_count|message_count_label(
|
||||
item.template_type,
|
||||
suffix=''
|
||||
)
|
||||
) }}
|
||||
{% elif item.upload_type == 'contact_list' %}
|
||||
{{ big_number(
|
||||
item.row_count,
|
||||
smallest=True,
|
||||
label="saved {}".format(item.row_count|recipient_count_label(item.template_type))
|
||||
) }}
|
||||
{% elif item.pdf_letter %}
|
||||
<p class="govuk-body letter-recipient-summary">
|
||||
{% for line in item.recipient.splitlines() %}
|
||||
{% if loop.index < 3 %}
|
||||
{{ line }}<br>
|
||||
{% endif %}
|
||||
{% endfor %}
|
||||
</p>
|
||||
{% else %}
|
||||
<div class="govuk-grid-row">
|
||||
<div class="govuk-grid-column-one-third">
|
||||
|
||||
@@ -19,19 +19,10 @@
|
||||
) %}
|
||||
|
||||
{% call row_heading() %}
|
||||
{% if item.is_precompiled_letter %}
|
||||
<span class="template-statistics-table-template-name">
|
||||
Provided as PDF
|
||||
</span>
|
||||
<span class="template-statistics-table-hint">
|
||||
Letter
|
||||
</span>
|
||||
{% else %}
|
||||
<a class="govuk-link govuk-link--no-visited-state template-statistics-table-template-name" href="{{ url_for('.view_template', service_id=current_service.id, template_id=item.template_id) }}">{{ item.template_name }}</a>
|
||||
<span class="template-statistics-table-hint">
|
||||
{{ 1|message_count_label(item.template_type, suffix='template')|capitalize }}
|
||||
</span>
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
{{ spark_bar_field(item.count, most_used_template_count, id=item.template_id) }}
|
||||
|
||||
@@ -2,10 +2,6 @@
|
||||
|
||||
<nav>
|
||||
<a class="govuk-link govuk-link--no-visited-state pill-separate-item" href="{{ url_for('.choose_template', service_id=current_service.id) }}">
|
||||
<!-- {% if 'letter' in current_service.permissions %}
|
||||
Write an email, text message or letter
|
||||
{% else %} -->
|
||||
Write an email or text message
|
||||
<!-- {% endif %} -->
|
||||
Write an email or text message
|
||||
</a>
|
||||
</nav>
|
||||
|
||||
Reference in New Issue
Block a user