Show letter preview once file is uploaded

This shows the sanitised letter preview if the file had no validation
errors or the preview with the overlay if it failed validation.
This commit is contained in:
Katie Smith
2019-09-09 10:59:32 +01:00
parent 8a322b844b
commit 7368245c9a
9 changed files with 228 additions and 6 deletions

View File

@@ -314,6 +314,7 @@ class HeaderNavigation(Navigation):
'view_jobs',
'view_letter_notification_as_preview',
'view_letter_template_preview',
'view_letter_upload_as_preview',
'view_notification',
'view_notification_updates',
'view_notifications',
@@ -607,6 +608,7 @@ class MainNavigation(Navigation):
'view_job_updates',
'view_letter_notification_as_preview',
'view_letter_template_preview',
'view_letter_upload_as_preview',
'view_notification_updates',
'view_notifications_csv',
'view_provider',
@@ -887,6 +889,7 @@ class CaseworkNavigation(Navigation):
'view_job_updates',
'view_letter_notification_as_preview',
'view_letter_template_preview',
'view_letter_upload_as_preview',
'view_notification_updates',
'view_notifications_csv',
'view_provider',
@@ -1170,6 +1173,7 @@ class OrgNavigation(Navigation):
'view_jobs',
'view_letter_notification_as_preview',
'view_letter_template_preview',
'view_letter_upload_as_preview',
'view_notification',
'view_notification_updates',
'view_notifications',