nalodeni.pirati.cz/nalodeni/templates/news/list_show_recipients.html

54 lines
1.5 KiB
HTML

{% extends 'pirati_cz.html' %}
{%block body%}
<div class="row">
<div class="medium-12 large-12 columns">
<section class="o-section o-section--spaceBot">
<div class="o-section-inner">
<div class="o-section-block">
<h2> <a href="{% url 'nalodeni:news_list_show' obj.id%}">Newsletter {{obj}}</a> </h2>
<h3>Seznam aktuálních příjemců <small>(celkem {{ recipients_cnt }})</small></h3>
<br/>
{% if recipients_cnt > 0 %}
<table class="table-list">
<tr>
<th>Jméno</th>
<th>Příjmení</th>
<th>E-mail</th>
<th>PSČ</th>
<th>Město</th>
<th>Kraj</th>
</tr>
{% for r in recipients %}
<tr>
<td>{{r.first_name}}</td>
<td>{{r.last_name}}</td>
<td>{{r.email}}</td>
<td>{{r.postcode}}</td>
<td>{{r.city|default_if_none:'-'}}</td>
<td>{{r.get_district_display|default_if_none:'-'}}</td>
</tr>
{% endfor %}
</table>
{%else%}
<em>Žádné položky.</em>
{%endif%}
</div>
</div>
</section>
</div>
</div>
<div class="row">
<div class="medium-12 large-12 columns">
<section class="o-section o-section--spaceBot">
<div class="o-section-inner">
&nbsp;
</div>
</section>
</div>
</div>
{%endblock%}