{% 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 %} {% for nl in newsletters %} {% endfor %}
{% trans "Newsletter" %}{% trans "Sending" %}
{{nl.subject}} {% if nl.can_edit_newsletter %} {% trans "Edit" %} {% endif %} {% trans "View" %} {% if nl.emailing_set.count %} {% for e in nl.emailing_set.all %} {% endfor %}
{{e.get_info}} ({{e.get_contacts|length}} {% trans "recipients" %}) {% trans "View" %}
{% else %}   {% endif %}
{% paginate %} {% else %} {% trans "No newsletters" %} {% endif %} {% endblock %} {% block section_action %}
{% trans "Add" %}
{% trans "Newsletter" %} {% trans "Sending" %} {% endblock %}