mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-08 08:28:15 -04:00
Merge pull request #3201 from alphagov/remove-letter-validation-preview
Remove the letter validation preview endpoints
This commit is contained in:
@@ -1,56 +0,0 @@
|
||||
{% extends "withnav_template.html" %}
|
||||
{% from "components/banner.html" import banner %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/file-upload.html" import file_upload %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
|
||||
{% from "components/form.html" import form_wrapper %}
|
||||
|
||||
{% block service_page_title %}
|
||||
Letter validation preview
|
||||
{% endblock %}
|
||||
|
||||
{% block maincolumn_content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-whole">
|
||||
{% if passed_validation %}
|
||||
{{ banner(message, with_tick=True) }}
|
||||
{% elif message %}
|
||||
{% include "partials/check/letter-validation-failed-banner.html" %}
|
||||
{% endif %}
|
||||
|
||||
<h1 class="heading-large">Letter validation preview</h1>
|
||||
<div class="bottom-gutter">
|
||||
{{ file_upload(
|
||||
form.file,
|
||||
action = url_for('main.service_letter_validation_preview', service_id=current_service.id),
|
||||
button_text='Choose a file',
|
||||
)}}
|
||||
</div>
|
||||
{%if not pages %}
|
||||
<div>
|
||||
<p>Your file must be:
|
||||
<li>a PDF</li>
|
||||
<li>no more than 10 pages long</li>
|
||||
<li>less than 2 MB</li>
|
||||
</p>
|
||||
<p>The content of your letter must appear inside the printable area.</p>
|
||||
<p>
|
||||
<a href="https://docs.notifications.service.gov.uk/documentation/images/notify-pdf-letter-spec-v2.4.pdf">
|
||||
Download the letter specification</a> for more information.
|
||||
</p>
|
||||
</div>
|
||||
{% endif%}
|
||||
</div>
|
||||
<div class="column-whole template-container" >
|
||||
|
||||
{% for page in pages %}
|
||||
<div class="letter">
|
||||
<img src="data:image/png;base64,{{ page }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
@@ -24,7 +24,6 @@
|
||||
('Find users by email', url_for('main.find_users_by_email')),
|
||||
('Email Complaints', url_for('main.platform_admin_list_complaints')),
|
||||
('Returned letters', url_for('main.platform_admin_returned_letters')),
|
||||
('Letter validation preview', url_for('main.platform_admin_letter_validation_preview')),
|
||||
('Clear cache', url_for('main.clear_cache')),
|
||||
] %}
|
||||
<li>
|
||||
|
||||
@@ -1,38 +0,0 @@
|
||||
{% extends "views/platform-admin/_base_template.html" %}
|
||||
{% from "components/banner.html" import banner %}
|
||||
{% from "components/textbox.html" import textbox %}
|
||||
{% from "components/file-upload.html" import file_upload %}
|
||||
{% from "components/page-footer.html" import page_footer %}
|
||||
|
||||
{% block per_page_title %}
|
||||
{{ page_title|capitalize }}
|
||||
{% endblock %}
|
||||
|
||||
{% block platform_admin_content %}
|
||||
|
||||
<div class="grid-row">
|
||||
<div class="column-whole">
|
||||
<h1 class="heading-large">Letter Validation Preview</h1>
|
||||
|
||||
{{ file_upload(
|
||||
form.file,
|
||||
action = url_for('main.platform_admin_letter_validation_preview'),
|
||||
button_text='Upload a PDF document',
|
||||
)}}
|
||||
</div>
|
||||
<div class="column-whole template-container">
|
||||
{% if passed_validation %}
|
||||
{{ banner(message, with_tick=True) }}
|
||||
{% elif message %}
|
||||
{% include "partials/check/letter-validation-failed-banner.html" %}
|
||||
{% endif %}
|
||||
|
||||
{% for page in pages %}
|
||||
<div class="letter">
|
||||
<img src="data:image/png;base64,{{ page }}">
|
||||
</div>
|
||||
{% endfor %}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user