2018-07-03 12:22:03 +00:00
|
|
|
|
{% extends 'base.html' %}
|
2018-07-13 09:22:28 +00:00
|
|
|
|
{% from '_macros.html' import field %}
|
2018-07-03 12:22:03 +00:00
|
|
|
|
|
2018-07-16 08:42:25 +00:00
|
|
|
|
{% macro time_zone_warning() %}
|
|
|
|
|
{% trans timezone=event.time_zone, start_time=event.start_time_tz | datetimeformat(rebase=false), end_time=event.end_time_tz | datetimeformat(rebase=false) -%}
|
|
|
|
|
This event is organised in the {{timezone}} time zone, in which it happens between {{start_time}} and {{end_time}}
|
|
|
|
|
{%- endtrans %}
|
|
|
|
|
{% endmacro %}
|
|
|
|
|
|
2018-07-03 12:22:03 +00:00
|
|
|
|
{% block content %}
|
2018-07-13 08:19:37 +00:00
|
|
|
|
<h2 class="ui header">
|
|
|
|
|
<div class="content">
|
|
|
|
|
{{ event.title }}<br>
|
|
|
|
|
<div class="sub header">
|
|
|
|
|
{%- if current_user.timezone | string != event.time_zone -%}
|
2018-07-16 08:42:25 +00:00
|
|
|
|
<span title="{{ time_zone_warning() }}">
|
2018-07-13 08:19:37 +00:00
|
|
|
|
<i class="fa fa-exclamation-triangle timezone-warning"></i>
|
2018-07-16 08:42:25 +00:00
|
|
|
|
<span class="sr-only">{{ time_zone_warning() }}</span>
|
2018-07-13 08:19:37 +00:00
|
|
|
|
</span>
|
2018-07-03 12:22:03 +00:00
|
|
|
|
{% endif %}
|
2018-07-13 08:19:37 +00:00
|
|
|
|
{{ event.start_time_for_user(current_user) | datetimeformat(rebase=false) }}
|
|
|
|
|
–
|
|
|
|
|
{{ event.end_time_for_user(current_user) | datetimeformat(rebase=false) }}
|
|
|
|
|
</div>
|
2018-07-13 08:19:37 +00:00
|
|
|
|
</div>
|
2018-07-13 08:19:37 +00:00
|
|
|
|
</h2>
|
2018-07-03 12:22:03 +00:00
|
|
|
|
{{ 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>
|
2018-07-13 08:19:37 +00:00
|
|
|
|
<form method="post" class="ui form">
|
2018-07-09 15:16:47 +00:00
|
|
|
|
{{ form.hidden_tag() }}
|
2018-07-13 08:19:37 +00:00
|
|
|
|
<div class="inline fields">
|
|
|
|
|
{{ field(form.invitee, inline=true) }}
|
2018-07-09 15:16:47 +00:00
|
|
|
|
|
2018-07-13 08:19:37 +00:00
|
|
|
|
<button type="submit" class="ui button">{% trans %}Invite{% endtrans %}</button>
|
|
|
|
|
</div>
|
2018-07-09 15:16:47 +00:00
|
|
|
|
</form>
|
2018-07-03 12:22:03 +00:00
|
|
|
|
{% endblock %}
|