mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-06 12:08:25 -04:00
big commit with letters removal
This commit is contained in:
@@ -13,18 +13,7 @@
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
{% if template.template_type == 'letter' and current_service.trial_mode %}
|
||||
{% set error = 'trial-mode-letters' %}
|
||||
<div class="bottom-gutter">
|
||||
{% call banner_wrapper(type='dangerous') %}
|
||||
{% with
|
||||
count_of_recipients=1
|
||||
%}
|
||||
{% include "partials/check/trying-to-send-letters-in-trial-mode.html" %}
|
||||
{% endwith %}
|
||||
{% endcall %}
|
||||
</div>
|
||||
{% elif error == 'not-allowed-to-send-to' %}
|
||||
{% if error == 'not-allowed-to-send-to' %}
|
||||
<div class="bottom-gutter">
|
||||
{% call banner_wrapper(type='dangerous') %}
|
||||
{% with
|
||||
@@ -50,13 +39,6 @@
|
||||
{% include "partials/check/message-too-long.html" %}
|
||||
{% endcall %}
|
||||
</div>
|
||||
{% elif letter_too_long %}
|
||||
{% set error = 'letter-too-long' %}
|
||||
<div class="bottom-gutter">
|
||||
{% call banner_wrapper(type='dangerous') %}
|
||||
{% include "partials/check/letter-too-long.html" %}
|
||||
{% endcall %}
|
||||
</div>
|
||||
{% else %}
|
||||
{{ page_header('Preview of ‘{}’'.format(template.name)) }}
|
||||
{% endif %}
|
||||
@@ -75,9 +57,6 @@
|
||||
{% set button_text %}Send 1 {{ 1|message_count_label(template.template_type, suffix='') }}{% endset %}
|
||||
{{ govukButton({ "text": button_text }) }}
|
||||
{% endif %}
|
||||
{% if template.template_type == 'letter' %}
|
||||
<a href="{{ url_for('no_cookie.check_notification_preview', service_id=current_service.id, template_id=template.id, filetype='pdf') }}" download class="govuk-link govuk-link--no-visited-state page-footer-right-aligned-link{% if error %}-without-button{% endif %}">Download as a PDF</a>
|
||||
{% endif %}
|
||||
</form>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -1,17 +0,0 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Letter
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<h1 class="heading-large">Letter</h1>
|
||||
|
||||
<p class="govuk-body">
|
||||
Provided as PDF on {{ created_at|format_datetime_short }}
|
||||
</p>
|
||||
<p class="notification-status-cancelled">
|
||||
Validation failed – There’s a problem with your letter. <br>Notify cannot read this PDF.
|
||||
</p>
|
||||
{% endblock %}
|
||||
@@ -21,23 +21,15 @@
|
||||
1|message_count_label(template.template_type, suffix='') | capitalize
|
||||
) }}
|
||||
<p class="govuk-body">
|
||||
{% if is_precompiled_letter %}
|
||||
{% if created_by %}
|
||||
Uploaded
|
||||
{% else %}
|
||||
Provided as PDF
|
||||
{% endif %}
|
||||
{% if help %}
|
||||
‘{{ template.name }}’
|
||||
{% else %}
|
||||
{% if help %}
|
||||
‘{{ template.name }}’
|
||||
{% else %}
|
||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">‘{{ template.name }}’</a>
|
||||
{% endif %}
|
||||
was sent
|
||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.view_template', service_id=current_service.id, template_id=template.id) }}">‘{{ template.name }}’</a>
|
||||
{% endif %}
|
||||
was sent
|
||||
{% if job and job.original_file_name != 'Report' %}
|
||||
{% set destination =
|
||||
{'letter': 'an address', 'email': 'an email address', 'sms': 'a phone number'} %}
|
||||
{'email': 'an email address', 'sms': 'a phone number'} %}
|
||||
to {{ destination[template.template_type] }} from
|
||||
<a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.view_job', service_id=current_service.id, job_id=job.id) }}">{{ job.original_file_name }}</a>
|
||||
{% elif created_by %}
|
||||
@@ -46,7 +38,7 @@
|
||||
{{ created_at|format_datetime_human }}
|
||||
</p>
|
||||
|
||||
<div class="{{ 'letter-sent' if template.template_type == 'letter' else '' }}">
|
||||
<div class="">
|
||||
{{ template|string }}
|
||||
</div>
|
||||
|
||||
@@ -64,4 +56,4 @@
|
||||
</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
{% endblock %}q
|
||||
|
||||
Reference in New Issue
Block a user