mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-04 05:31:44 -04:00
In the short term I have created a duplicate version of the letter-validation-preview so that people from a service can upload a pdf and see why the letter isnot validating. It's hard to get a precompiled letter to validate when starting to integrate with Notify. This will return the overlay of the letter validation and is now available to the services. At the moment they send us a PDF to upload. This is temporary because there is a story to create a one-off flow to get this overlay, that will replace this page. There is no navigation to this on purpose.
38 lines
1.0 KiB
HTML
38 lines
1.0 KiB
HTML
{% 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 maincolumn_content %}
|
|
|
|
<div class="grid-row">
|
|
<div class="column-whole">
|
|
{% if result %}
|
|
{{ banner(message, with_tick=True) }}
|
|
{% elif message %}
|
|
{{ banner(message, 'dangerous')}}
|
|
{% endif %}
|
|
|
|
<h1 class="heading-large">Letter Validation Preview</h1>
|
|
<div class="bottom-gutter">
|
|
{{ file_upload(
|
|
form.file,
|
|
action = url_for('main.services_letter_validation_preview', service_id=current_service.id),
|
|
button_text='Upload a PDF document',
|
|
)}}
|
|
</div>
|
|
</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 %}
|