2018-07-03 12:22:03 +00:00
|
|
|
|
{% extends 'base.html' %}
|
|
|
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
|
<h1>
|
|
|
|
|
{{ event.title }}<br>
|
|
|
|
|
<small>
|
|
|
|
|
{{ event.start_time_for_user(current_user) }}–{{ event.end_time_for_user(current_user) }}
|
|
|
|
|
{% if current_user.timezone | string != event.time_zone %}
|
|
|
|
|
({{ event.start_time_tz }}–{{ event.end_time_tz }} {{ event.time_zone }})
|
|
|
|
|
{% endif %}
|
|
|
|
|
</small>
|
|
|
|
|
</h1>
|
|
|
|
|
{{ event.description }}
|
2018-07-09 15:16:47 +00:00
|
|
|
|
<hr>
|
|
|
|
|
<h2>{% trans %}Invited users{% endtrans %}</h2>
|
|
|
|
|
<ul>
|
|
|
|
|
{% for invitation in event.invitations %}
|
2018-07-10 08:58:43 +00:00
|
|
|
|
<li>
|
|
|
|
|
{{ invitation.invitee }}
|
|
|
|
|
{% if invitation.invitee == current_user.profile %}
|
|
|
|
|
<a href="{{ url_for('accept_invite', invite_id=invitation.id) }}">Accept</a>
|
|
|
|
|
{% endif %}
|
|
|
|
|
</li>
|
2018-07-09 15:16:47 +00:00
|
|
|
|
{% 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>
|
2018-07-03 12:22:03 +00:00
|
|
|
|
{% endblock %}
|