Allow letter templates to select the default contact block from the list

This commit is contained in:
chrisw
2018-01-03 10:44:36 +00:00
parent db2fad1a75
commit 7271d4fbde
15 changed files with 875 additions and 40 deletions

View File

@@ -8,7 +8,7 @@ class TemplatePreview:
@classmethod
def from_database_object(cls, template, filetype, values=None, page=None):
data = {
'letter_contact_block': current_service['letter_contact_block'],
'letter_contact_block': template.get('reply_to_text', ''),
'template': template,
'values': values,
'dvla_org_id': current_service['dvla_organisation'],