big commit with letters removal

This commit is contained in:
stvnrlly
2022-12-05 15:33:44 -05:00
parent 92da56fe63
commit 944715ac46
151 changed files with 278 additions and 10116 deletions

View File

@@ -1,8 +0,0 @@
<h1 h1 class="banner-title" data-module="track-error" data-error-type="letter-too-long" data-error-label="precompiled letter validation failed for service_id: {{ current_service.id }}">
Your letter is too long
</h1>
<p class="govuk-body">
Letters must be {{ letter_max_pages }} pages or less ({{ letter_max_pages // 2 }} double-sided sheets of paper).
<br>
Your letter is {{ page_count }} pages long.
</p>

View File

@@ -1,18 +0,0 @@
{% from "components/banner.html" import banner_wrapper %}
{% call banner_wrapper(type='dangerous') %}
{% if message is string %}
<h1 class="banner-title">
{{ message }}
</h1>
{% else %}
<h1 class="banner-title" data-module="track-error" data-error-type="{{ error_code }}" data-error-label="precompiled letter validation failed for service_id: {{ current_service.id }}">
{{ message.title }}
</h1>
{% if message.detail %}
<p class="govuk-body">
{{ message.detail | safe }}
</p>
{% endif %}
{% endif %}
{% endcall %}

View File

@@ -1,8 +0,0 @@
<h1 class='banner-title' data-module="track-error" data-error-type="Trying to send letters in trial mode" data-error-label="{{ upload_id }}">
You cannot send
{{ 'this letter' if count_of_recipients == 1 else 'these letters' }}
</h1>
<p class="govuk-body">
In <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.trial_mode_new') }}">trial mode</a> you
can only preview how your letters will look
</p>

View File

@@ -24,25 +24,18 @@
{% if notifications %}
<div class="dashboard-table bottom-gutter-3-2">
{% endif %}
{% if job.template_type == 'letter' %}
<div class="keyline-block bottom-gutter-1-2">
{% if job.still_processing %}
<p class="bottom-gutter hint">
Report is {{ "{:.0f}%".format(job.percentage_complete * 0.99) }} complete…
</p>
{% elif notifications %}
<p class="bottom-gutter">
<a href="{{ download_link }}" download class="govuk-link govuk-link--no-visited-state heading-small">Download this report (<abbr title="Comma separated values">CSV</abbr>)</a>
&emsp;
<span id="time-left">{{ time_left }}</span>
</p>
{% endif %}
{% if job.still_processing %}
<p class="{% if job.template_type != 'letter' %}bottom-gutter{% endif %} hint">
Report is {{ "{:.0f}%".format(job.percentage_complete * 0.99) }} complete…
</p>
{% elif notifications %}
<p class="{% if job.template_type != 'letter' %}bottom-gutter{% endif %}">
<a href="{{ download_link }}" download class="govuk-link govuk-link--no-visited-state heading-small">Download this report (<abbr title="Comma separated values">CSV</abbr>)</a>
&emsp;
<span id="time-left">{{ time_left }}</span>
</p>
{% endif %}
{% if job.template_type == 'letter' %}
</div>
{% endif %}
{% call(item, row_number) list_table(
notifications,
caption=uploaded_file_name,

View File

@@ -1,15 +0,0 @@
<h2 class="heading-medium">
Delivery times
</h2>
<p class="govuk-body">
Letters sent before 5:30pm are dispatched the next working day (Monday to Friday).
</p>
<p class="govuk-body">
First class letters are delivered one day after they're dispatched. Second class letters are delivered 2 days after they're dispatched.
</p>
<p class="govuk-body">
Royal Mail delivers from Monday to Saturday, excluding bank holidays.
</p>
<p class="govuk-body">
See a list of <a class="govuk-link govuk-link--no-visited-state" href="{{ url_for('.pricing') + '#letters'}}">postage prices</a>.
</p>