Refactoring mailings

This commit is contained in:
2017-08-19 01:19:31 +02:00
parent 3a6f7009fd
commit 69e997d587
8 changed files with 34 additions and 53 deletions

View File

@ -41,7 +41,7 @@
<h2>{% trans %}New member{% endtrans %}</h2>
<form action="{{ url('club:mailing_subscription_create', club_id=club.id) }}" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ new_member.as_p() }}
{{ add_member.as_p() }}
<p><input type="submit" value="{% trans %}Add to mailing list{% endtrans %}" /></p>
</form>
{% endif %}
@ -49,7 +49,7 @@
<h2>{% trans %}New mailing{% endtrans %}</h2>
<form action="{{ url('club:mailing_create', club_id=club.id) }}" method="post" enctype="multipart/form-data">
{% csrf_token %}
{{ new_mailing.as_p() }}
{{ add_mailing.as_p() }}
<p><input type="submit" value="{% trans %}Create mailing list{% endtrans %}" /></p>
</form>

View File

@ -1,3 +0,0 @@
{%- for mailing in object_list -%}
{{ mailing.fetch_format() }}
{%- endfor -%}