2017-01-10 17:30:27 +00:00
|
|
|
{% extends "core/base.jinja" %}
|
|
|
|
{% from 'core/macros.jinja' import user_profile_link %}
|
|
|
|
|
|
|
|
{% block title %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{{ weekmail.title }}
|
2017-01-10 17:30:27 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
{% block content %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<a href="{{ url('com:weekmail') }}">{% trans %}Back{% endtrans %}</a>
|
|
|
|
{% if bad_recipients %}
|
2021-10-03 15:20:43 +00:00
|
|
|
<p>
|
2024-07-23 22:16:31 +00:00
|
|
|
<span class="important">
|
2021-10-03 15:20:43 +00:00
|
|
|
{% trans %}The following recipients were refused by the SMTP:{% endtrans %}
|
2024-07-23 22:16:31 +00:00
|
|
|
</span>
|
|
|
|
<ul>
|
|
|
|
{% for r in bad_recipients.keys() %}
|
|
|
|
<li>{{ r }}</li>
|
|
|
|
{% endfor %}
|
|
|
|
</ul>
|
2021-10-03 15:20:43 +00:00
|
|
|
</p>
|
|
|
|
|
|
|
|
<form method="post" action="">
|
2024-07-23 22:16:31 +00:00
|
|
|
{% csrf_token %}
|
|
|
|
<button type="submit" name="send" value="clean">{% trans %}Clean subscribers{% endtrans %}</button>
|
2021-10-03 15:20:43 +00:00
|
|
|
</form>
|
2024-07-23 22:16:31 +00:00
|
|
|
{% else %}
|
2021-10-03 15:20:43 +00:00
|
|
|
{% if request.GET['send'] %}
|
2024-07-23 22:16:31 +00:00
|
|
|
<p>{% trans %}Are you sure you want to send this weekmail?{% endtrans %}</p>
|
|
|
|
{% if request.LANGUAGE_CODE != settings.LANGUAGE_CODE[:2] %}
|
|
|
|
<p><strong>{% trans %}Warning: you are sending the weekmail in another language than the default one!{% endtrans %}</strong></p>
|
|
|
|
{% endif %}
|
|
|
|
<form method="post" action="">
|
|
|
|
{% csrf_token %}
|
|
|
|
<button type="submit" name="send" value="validate">{% trans %}Send{% endtrans %}</button>
|
|
|
|
</form>
|
2021-10-03 15:20:43 +00:00
|
|
|
{% endif %}
|
2024-07-23 22:16:31 +00:00
|
|
|
{% endif %}
|
|
|
|
<hr>
|
|
|
|
{{ weekmail_rendered|safe }}
|
2017-01-10 17:30:27 +00:00
|
|
|
{% endblock %}
|
|
|
|
|
|
|
|
|
|
|
|
|