Make a macro for email branding previews

This means we:
- don’t have to copy and paste the `<iframe>` code to every place where
  we use it
- can make changes to it in one place and have it apply everywhere
This commit is contained in:
Chris Hill-Scott
2022-03-01 12:20:20 +00:00
parent 42f0d36ab8
commit e8198f6a69
6 changed files with 15 additions and 7 deletions

View File

@@ -0,0 +1,3 @@
{% macro branding_preview(branding_style) %}
<iframe src="{{ url_for('main.email_template', branding_style=branding_style) }}" class="branding-preview"></iframe>
{% endmacro %}