Edit template postage from a separate view

This commit is contained in:
Pea Tyczynska
2019-01-29 15:43:59 +00:00
parent 2055a83516
commit db5378bac2
9 changed files with 140 additions and 47 deletions

View File

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

View File

@@ -0,0 +1,29 @@
{% extends "withnav_template.html" %}
{% from "components/page-footer.html" import sticky_page_footer %}
{% from "components/radios.html" import radios %}
{% from "components/form.html" import form_wrapper %}
{% block service_page_title %}
Edit postage
{% endblock %}
{% block maincolumn_content %}
<h1 class="heading-large">
Edit postage
</h1>
{% call form_wrapper() %}
<div class="grid-row">
<div class="column-five-sixths">
{{ radios(form.postage) }}
{{ sticky_page_footer(
'Save'
) }}
</div>
<aside class="column-three-quarters">
{% include "partials/templates/guidance-postage.html" %}
</aside>
</div>
{% endcall %}
{% endblock %}