diff --git a/changelog/8683.md b/changelog/8683.md new file mode 100644 index 0000000000..a86d9ed0eb --- /dev/null +++ b/changelog/8683.md @@ -0,0 +1,6 @@ +### Changed +- New design for platform mail form +- sender field is now required to prevent issues with email clients +- CKEditor styling for redesign +- change default values for fields in platform email form + diff --git a/meinberlin/apps/platformemails/forms.py b/meinberlin/apps/platformemails/forms.py index de84d49042..5b2ccc59dc 100644 --- a/meinberlin/apps/platformemails/forms.py +++ b/meinberlin/apps/platformemails/forms.py @@ -17,3 +17,7 @@ class Meta: "people in summer." ), } + + def __init__(self, **kwargs): + super().__init__(**kwargs) + self.fields["sender"].required = True diff --git a/meinberlin/apps/platformemails/templates/meinberlin_platformemails/platformemail_form.html b/meinberlin/apps/platformemails/templates/meinberlin_platformemails/platformemail_form.html index 2f814696e8..5d63937f5d 100644 --- a/meinberlin/apps/platformemails/templates/meinberlin_platformemails/platformemail_form.html +++ b/meinberlin/apps/platformemails/templates/meinberlin_platformemails/platformemail_form.html @@ -1,36 +1,33 @@ -{% extends "a4dashboard/base_dashboard.html" %} +{% extends "base.html" %} {% load i18n userindicator %} {% block title %} - {% translate 'Create platform email' %} + {% translate 'Create platform email' %} {% endblock title %} {% block content %} -
- {% blocktranslate %}This email will be sent to all registered and verified users of mein.berlin.de.{% endblocktranslate %} -
- ++ {% blocktranslate %}This email will be sent to all registered and verified users of mein.berlin.de.{% endblocktranslate %} +
+