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

{{ event.name }}

{% if event.location %} {{ event.location }} {% endif %} {% if event.start_date %} {{ event.start_date|format_date }} {% endif %}
{% if event.description %}

{{ event.description }}

{% endif %}
{% endif %}

{{ 'connect_with_attendees'|t }}

{% if search_query and search_query|length >= min_chars %} {% if too_broad %}

{{ 'search_too_broad'|t }}

{% elif attendees %}
{% for att in attendees %}
{% if att.profile_picture %} Photo {% else %}
{{ att.first_name[0] }}{{ att.last_name[0] }}
{% endif %}

{{ att.first_name }} {{ att.last_name }}

{{ att.organisation if att.organisation else '' }}

{{ att.role if att.role else '' }}

{% if att.introduction %}

{{ att.introduction[:100] }}{% if att.introduction|length > 100 %}...{% endif %}

{% endif %}
{% if att.my_status == 'accepted' %} {{ 'connected'|t }} {% elif att.my_status == 'pending' %} {{ 'request_pending'|t }} {% elif att.my_status == 'rejected' %} {{ 'rejected'|t }} {% else %}
{% endif %}
{% endfor %}
{% else %}

{{ 'no_attendees_found'|t }}

{% endif %} {% endif %}
{% endblock %}