{% extends "base.html" %} {% load static %} {% load core_tags %} {% block content %}

Match Participants for {{ event.name|default:event.event_type }}

File: {{ file_name }}

{% if unmatched_rows %}
Unmatched Participants ({{ unmatched_rows|length }})

Manually match these participants to existing voters. If a voter is matched, their email will be updated with the one from the file, and they will be added to the event.

{% csrf_token %}
{% for row_data in unmatched_rows %}
From File (Name): {{ row_data.row_data|get_item:name_column|default:"N/A" }}
From File (Email): {{ row_data.row_data|get_item:email_column|default:"N/A" }}
From File (Status): {{ row_data.row_data|get_item:participation_status_column|default:"N/A" }}
From File (Phone): {{ row_data.row_data|get_item:phone_column|default:"N/A" }}
{% endfor %}
{% else %} Back to Event Details {% endif %}
{% endblock %}