Allow users to invite other users to events

This commit is contained in:
2018-07-09 17:16:47 +02:00
parent 6274543206
commit 17cca9380f
4 changed files with 109 additions and 4 deletions

View File

@@ -11,4 +11,22 @@
</small>
</h1>
{{ event.description }}
<hr>
<h2>{% trans %}Invited users{% endtrans %}</h2>
<ul>
{% for invitation in event.invitations %}
<li>{{ invitation.invitee }}</li>
{% endfor %}
</ul>
<hr>
<h2>{% trans %}Invite{% endtrans %}</h2>
<form method="post">
{{ form.hidden_tag() }}
{{ form.invitee.errors }}
{{ form.invitee.label }}
{{ form.invitee}}
<button type="submit">{% trans %}Invite{% endtrans %}</button>
</form>
{% endblock %}