Warn about lack of EMAIL_BACKEND in the interface

This commit is contained in:
Klaas van Schelven
2024-11-29 15:59:14 +01:00
parent 93ce454fb4
commit 3f432727d9
6 changed files with 76 additions and 7 deletions

View File

@@ -47,8 +47,11 @@
{% for system_warning in system_warnings %}
<div class="flex p-4 bg-yellow-100 border-b-2 border-yellow-200">
<div>
{{ system_warning }}
{{ system_warning.message }}
</div>
{% if system_warning.ignore_url %}
<div class="ml-auto flex" title="Ignore"><form method="post" action="{{ system_warning.ignore_url }}">{% csrf_token %}<input type="hidden" name="next" value="{{ request.path }}"><button type="submit"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /></svg></button></form></div>{# the button adds some undesired padding; leaving it for now #}
{% endif %}
</div>
{% endfor %}
@@ -58,7 +61,7 @@
Foo bar baz
</div>
<div class="ml-auto flex" title="Close">
<div class="ml-auto flex" title="Ignore">
{# heroicon's x-circle #}
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"><path stroke-linecap="round" stroke-linejoin="round" d="m9.75 9.75 4.5 4.5m0-4.5-4.5 4.5M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" /></svg>