{% extends "sanza/_section.html" %}
{% load i18n pagination_tags %}{% load url from future %}
{% block section_title %}
{% trans "Newsletters" %}
{% endblock %}
{% block section_data %}
{% if not credits %}
{% trans "Emailing is disabled: You must buy credits in order to send new emailings" %}
{% else %}
{% trans "You have a credit of " %} {{credits}} {% trans "emails" %}
{% endif %}
{% if newsletters %}
{% autopaginate newsletters 10 %}
{% trans "Newsletter" %} | {% trans "Sending" %} |
{% for nl in newsletters %}
{{nl.subject}}
{% if nl.can_edit_newsletter %}
{% trans "Edit" %}
{% endif %}
{% trans "View" %}
|
{% if nl.emailing_set.count %}
{% for e in nl.emailing_set.all %}
{{e.get_info}} ({{e.get_contacts|length}} {% trans "recipients" %})
{% trans "View" %}
|
{% endfor %}
{% else %}
{% endif %}
|
{% endfor %}
{% paginate %}
{% else %}
{% trans "No newsletters" %}
{% endif %}
{% endblock %}
{% block section_action %}
{% trans "Newsletter" %}
{% trans "Sending" %}
{% endblock %}