Display postage everywhere we display a letter

To avoid the problem of having confusing defaults, the postage is now
set explicitly on every template.

Putting the postage ‘inside’ the letter template makes the interaction
for changing it consistent with how other parts of the template are
added.

Plus everyone loves skeumorphism.
This commit is contained in:
Chris Hill-Scott
2018-09-10 11:21:43 +01:00
parent ab8244ec5d
commit cd70355db8
9 changed files with 108 additions and 6 deletions

View File

@@ -331,7 +331,8 @@ def get_template(
template,
image_url=letter_preview_url,
page_count=int(page_count),
contact_block=template['reply_to_text']
contact_block=template['reply_to_text'],
postage=template.get('postage') or service.postage,
)
else:
return LetterPreviewTemplate(