mirror of
https://github.com/ae-utbm/sith.git
synced 2025-07-16 23:09:23 +00:00
Even better mailing
This commit is contained in:
30
rootplace/templates/rootplace/mailing_lists.jinja
Normal file
30
rootplace/templates/rootplace/mailing_lists.jinja
Normal file
@ -0,0 +1,30 @@
|
||||
{% extends "core/base.jinja" %}
|
||||
|
||||
{% block title %}
|
||||
{% trans %}Mailing lists administration{% endtrans %}
|
||||
{% endblock %}
|
||||
|
||||
{% block content %}
|
||||
<h1>{% trans %}This page list all existing mailing lists{% endtrans %}</h1>
|
||||
{% if has_objects %}
|
||||
<table>
|
||||
<tr>
|
||||
<th>{% trans %}Email{% endtrans %}</th>
|
||||
<th>{% trans %}Club{%endtrans%}</th>
|
||||
</tr>
|
||||
{% for mailing in object_list %}
|
||||
<tr>
|
||||
<td>{{ mailing.email }}</td>
|
||||
<td>{{ mailing.club }} <a href="{{ url('club:mailing_delete', mailing_id=mailing.id) }}">{% trans %}Delete{% endtrans %}</a></td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</table>
|
||||
|
||||
{% else %}
|
||||
<p>{% trans %}No mailing existing{% endtrans %}</p>
|
||||
{% endif %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user