diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po index 3d6a23936..4304d24a6 100644 --- a/locale/en/LC_MESSAGES/django.po +++ b/locale/en/LC_MESSAGES/django.po @@ -2800,3 +2800,12 @@ msgstr "" msgid "Update HTML Templates" msgstr "" + +msgid "HTML Preview" +msgstr "" + +msgid "Show Preview" +msgstr "" + +msgid "Hide Preview" +msgstr "" diff --git a/locale/fi/LC_MESSAGES/django.po b/locale/fi/LC_MESSAGES/django.po index 022617261..205523873 100644 --- a/locale/fi/LC_MESSAGES/django.po +++ b/locale/fi/LC_MESSAGES/django.po @@ -2177,3 +2177,12 @@ msgstr "sähköpostimalliprojekti" msgid "Update HTML Templates" msgstr "Päivitä HTML-pohjat" + +msgid "HTML Preview" +msgstr "HTML:n esikatselu" + +msgid "Show Preview" +msgstr "Näytä esikatselu" + +msgid "Hide Preview" +msgstr "Piilota esikatselu" diff --git a/locale/sv/LC_MESSAGES/django.po b/locale/sv/LC_MESSAGES/django.po index f6549637c..3fe6d635d 100644 --- a/locale/sv/LC_MESSAGES/django.po +++ b/locale/sv/LC_MESSAGES/django.po @@ -2115,3 +2115,12 @@ msgstr "e-postmallprojekt" msgid "Update HTML Templates" msgstr "Uppdatera HTML-mallar" + +msgid "HTML Preview" +msgstr "HTML-förhandsgranskning" + +msgid "Show Preview" +msgstr "Visa förhandsgranskning" + +msgid "Hide Preview" +msgstr "Dölj förhandsgranskningen" diff --git a/notifications/admin.py b/notifications/admin.py index c18a78534..a52f4a234 100644 --- a/notifications/admin.py +++ b/notifications/admin.py @@ -71,6 +71,7 @@ class NotificationTemplateAdmin(TranslatableAdmin): # variables are accessed? # form = NotificationTemplateForm + change_form_template = 'admin/html_preview.html' actions = ['update_notification_html_templates'] def get_urls(self): diff --git a/notifications/templates/admin/html_preview.html b/notifications/templates/admin/html_preview.html new file mode 100644 index 000000000..6c9e66d0b --- /dev/null +++ b/notifications/templates/admin/html_preview.html @@ -0,0 +1,68 @@ +{% extends "admin/parler/change_form.html" %} +{% load static %} +{% load i18n %} + +{% block extrahead %} + + +{% endblock %} + +{% block after_field_sets %}{{ block.super }} +
+

{% trans 'HTML Preview' %}

+ + +
+
+ +
+
+
+{% for item in original.items_set.all %} {{ item }} {% endfor %} +{% endblock %}