Sith/club/templates/club/club_members.jinja
2016-02-04 08:59:03 +01:00

19 lines
400 B
Django/Jinja

{% extends "core/base.jinja" %}
{% block content %}
<h2>Club members</h2>
<ul>
{% for m in club.members.all() %}
<li>{{ m }}</li>
{% endfor %}
</ul>
<form action="{{ url('club:club_members', club_id=club.id) }}" method="post">
{% csrf_token %}
{{ form.as_p() }}
<p><input type="submit" value="Add" /></p>
</form>
{% endblock %}