Skip to content

Commit

Permalink
Added a list of the subscriber lists for the campaign to the send tem…
Browse files Browse the repository at this point in the history
…plate. Change contributed by philippbosch

git-svn-id: https://django-campaign.googlecode.com/svn/trunk@18 e421d7ae-feb3-11dd-a3ef-1f8437fb274a
  • Loading branch information
arneb committed May 8, 2009
1 parent 1097fee commit 73bc11e
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions campaign/templates/admin/campaign/campaign/send_object.html
Original file line number Diff line number Diff line change
Expand Up @@ -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"/>
Expand Down

0 comments on commit 73bc11e

Please sign in to comment.