mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-07-25 10:29:14 -04:00
Use PDF link renderer to preview letters
Depends on and implements: - [x] https://github.com/alphagov/notifications-utils/pull/84 - [ ] https://github.com/alphagov/notifications-utils/pull/86
This commit is contained in:
@@ -8,7 +8,7 @@ import unicodedata
|
||||
from flask import (abort, current_app, session, request, redirect, url_for)
|
||||
from flask_login import current_user
|
||||
|
||||
from notifications_utils.renderers import SMSPreview, EmailPreview, LetterPreview
|
||||
from notifications_utils.renderers import SMSPreview, EmailPreview, LetterPDFLink
|
||||
|
||||
import pyexcel
|
||||
import pyexcel.ext.io
|
||||
@@ -233,5 +233,5 @@ def get_renderer(template_type, service, show_recipient, expand_emails=False):
|
||||
sender=service['sms_sender'],
|
||||
show_recipient=show_recipient
|
||||
),
|
||||
'letter': LetterPreview(),
|
||||
'letter': LetterPDFLink(service['id']),
|
||||
}[template_type]
|
||||
|
||||
Reference in New Issue
Block a user