Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added a list of the subscriber lists for the campaign to the send tem…

…plate. Change contributed by philippbosch
  • Loading branch information...
commit e5161a817715eaf4199db5b46089c8932af17b73 1 parent 56e5874
@arneb arneb authored
Showing with 9 additions and 3 deletions.
  1. +9 −3 campaign/templates/admin/campaign/campaign/send_object.html
View
12 campaign/templates/admin/campaign/campaign/send_object.html
@@ -22,12 +22,18 @@
<div>
<div class="module">
<div class="form-row">
- <p>{% blocktrans with opts.verbose_name|capfirst as model_name and object|truncatewords:"18" as object_name %}
- Clicking 'Send' below will send the <a href="../">{{ object_name }}</a> {{ model_name }} to its recipients.
- {% endblocktrans %}</p>
{% if object.sent %}
<div class="errornote">{% trans "This campaign has already been sent at least once. Are you sure that you want to send it again?" %}</div>
{% endif %}
+ <p>{% blocktrans with opts.verbose_name|capfirst as model_name and object|truncatewords:"18" as object_name %}
+ Clicking 'Send' below will send the <a href="../">{{ object_name }}</a> {{ model_name }} to its recipients.
+ {% endblocktrans %}</p>
+ <h3>{% trans "Subscriber lists" %}</h3>
+ <ul>
+ {% for subscriber_list in object.recipients.all %}
+ <li><strong>{{ subscriber_list.name }}</strong> – {% blocktrans with subscriber_list.subscribers.count as subscriber_count %}{{ subscriber_count }} recipients{% endblocktrans %}</li>
+ {% endfor %}
+ </ul>
</div>
</div>
<input type="hidden" value="1" name="send"/>
Please sign in to comment.
Something went wrong with that request. Please try again.