mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-17 04:59:37 -04:00
Add macro for letter branding previews
This extends the same thing we’ve done for email branding previews in the previous commit to cover letter branding as well.
This commit is contained in:
@@ -1,3 +1,11 @@
|
||||
{% macro branding_preview(branding_style) %}
|
||||
<iframe src="{{ url_for('main.email_template', branding_style=branding_style) }}" class="branding-preview"></iframe>
|
||||
{% macro branding_preview(branding_style, endpoint) %}
|
||||
<iframe src="{{ url_for(endpoint, branding_style=branding_style) }}" class="branding-preview"></iframe>
|
||||
{% endmacro %}
|
||||
|
||||
{% macro email_branding_preview(branding_style) %}
|
||||
{{ branding_preview(branding_style, 'main.email_template') }}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro letter_branding_preview(branding_style) %}
|
||||
{{ branding_preview(branding_style, 'main.letter_template') }}
|
||||
{% endmacro %}
|
||||
|
||||
Reference in New Issue
Block a user