Commit | Line | Data |
---|---|---|
fd6352ea | 1 | {% extends "container_base.html" %} |
c612a4d0 | 2 | {% load pagination_tags staticfiles %} |
31249cf3 | 3 | {% load url from future %} |
fd6352ea PP |
4 | |
5 | {% block contenu %} | |
737dbcd8 PP |
6 | {% autopaginate messages 20 %} |
7 | ||
c612a4d0 | 8 | <a class="rss-icon" href="{% url "rss_messages" groupe.pk %}"><img src="{% static 'img/feed.png' %}" /></a> |
bf2904f0 | 9 | |
fd6352ea | 10 | <h1>{{ groupe }}</h1> |
31249cf3 | 11 | <p><a href="{% url "groupe_retrieve" groupe.pk %}">Retour à la page du groupe</a></p> |
fd6352ea PP |
12 | |
13 | <h2>Messages</h2> | |
14 | {% if messages %} | |
15 | {% for message in messages.all %} | |
16 | {% include 'chercheurs/groupe_message_display.html' %} | |
17 | {% endfor %} | |
737dbcd8 | 18 | <div class="pagination">{% paginate %}</div> |
fd6352ea PP |
19 | {% else %} |
20 | <p>Aucun message</p> | |
21 | {% endif %} | |
22 | ||
9aa1d783 | 23 | {% if est_membre_actif %} |
ffb8bdd9 | 24 | <a name="ajout"></a><h2>Nouveau message</h2> |
fd6352ea PP |
25 | <form method="post" action=""> |
26 | <table> | |
27 | {% include "render_form.html" %} | |
28 | <tr><th></th><td><input type="submit" class="bouton" value="Envoyer" /></td></tr> | |
29 | </table> | |
30 | </form> | |
9aa1d783 | 31 | {% endif %} |
fd6352ea PP |
32 | |
33 | {% endblock %} |