<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport"
content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Event Participants | printable</title>
<style>
p{margin: 0;}
</style>
</head>
<body>
Event: <strong>{{ data.event.title }}</strong> ({{ data.event.idEvent }})<br />
Date: {{ data.event.startOn| date('Y-M-d') }} to {{ data.event.endOn | date('Y-M-d') }}<br /><br />
{% if is_granted('ROLE_USER') %}
{% for role, participants in data.participants %}
<strong>{{ role }}</strong><br /><br />
{% for participant in participants %}
{% if participant.title != "" %}
{{ participant.title }}
{% endif %}
{{ participant.fname | title ~' '~ participant.sname|upper}} ({{ participant.idInd }})<br />
{% if participant.jobtitle != "" %}
{{ participant.jobtitle }}<br />
{% endif %}
{% if participant.dept != "" %}
{{ participant.dept }}<br />
{% endif %}
{% if participant.instName != "" %}
{{ participant.instName}}<br />
{% endif %}
{% if participant.instNameEng != ""
and participant.instNameEng != participant.instName
%}
{{ participant.instNameEng}}<br />
{% endif %}
{% if participant.address != "" %}
{{ participant.address | raw}}<br />
{% endif %}
{% if app.user %}
{% if participant.tel != "" %}
Tel: {{ participant.tel }}<br />
{% endif %}
{% if participant.email1 is defined
and participant.email1 !=""
%}
Email1: {{ participant.email1 }}<br />
{% endif %}
{% if participant.email2 is defined
and participant.email2 !=""
and participant.email1 != participant.email2
%}
Email2: {{ participant.email2 }}<br />
{% endif %}
{% endif %}
<br /><br />
{% endfor %}
{% endfor %}
{% else %}
<p>Sorry, you need to login to see this list.</p>
{% endif %}
</body>
</html>