{% extends "base.html" %} {% block title %}{{ 'attendee_dashboard'|t }} - NetEvents{% endblock %} {% block content %}

{{ 'attendee_dashboard'|t }}

{% if event %}

{{ 'current_event'|t }}

{{ event.name }}

{{ 'start'|t }}: {{ event.start_time|localized_date if event.start_time else 'TBD' }}

{% if event.end_time %}

{{ 'end'|t }}: {{ event.end_time|localized_date }}

{% endif %}

{{ 'location'|t }}: {{ event.location }}

{% endif %} {% if pending_connections %}

{{ 'incoming_connection_requests'|t }}

{{ 'review_scan_requests'|t }}

{% endif %}

{{ 'my_connections'|t }}

{% if connections %}
{% for conn in connections %}

{{ conn.first_name }} {{ conn.last_name }}

{{ (conn.organisation)|spacify if conn.organisation else '' }}

{{ (conn.role)|spacify if conn.role else '' }}

{% endfor %}
{% else %}

{{ 'no_connections_yet'|t }}

{% endif %}

{{ 'my_appointments'|t }}

{% if appointments %}
{% for apt in appointments %}

{% if apt.requester_id == session.user_id %} {{ 'with'|t }} {{ apt.target_first_name }} {{ apt.target_last_name }} {% else %} {{ 'with'|t }} {{ apt.requester_first_name }} {{ apt.requester_last_name }} {% endif %}

{{ 'time'|t }}: {{ apt.appointment_time|localized_date if apt.appointment_time else 'TBD' }}

{{ 'location'|t }}: {{ apt.location or 'TBD' }}

{{ (apt.status)|spacify if apt.status else '' }}

{% if apt.status == 'pending' and apt.target_id == session.user_id %}
{% endif %}
{% endfor %}
{% else %}

{{ 'no_appointments'|t }}

{% endif %}
{% endblock %}