templates/Event/printableParticipants.html.twig line 1

Open in your IDE?
  1. <!doctype html>
  2. <html lang="en">
  3. <head>
  4.     <meta charset="UTF-8">
  5.     <meta name="viewport"
  6.           content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
  7.     <meta http-equiv="X-UA-Compatible" content="ie=edge">
  8.     <title>Event Participants | printable</title>
  9.     <style>
  10.         p{margin: 0;}
  11.     </style>
  12. </head>
  13. <body>
  14. Event: <strong>{{ data.event.title }}</strong> ({{ data.event.idEvent }})<br />
  15. Date: {{ data.event.startOn| date('Y-M-d') }} to {{ data.event.endOn | date('Y-M-d') }}<br /><br />
  16. {% if is_granted('ROLE_USER') %}
  17.     {% for role, participants in data.participants %}
  18.         <strong>{{ role }}</strong><br /><br />
  19.         {% for participant in participants %}
  20.             {% if participant.title != "" %}
  21.                 {{ participant.title }}
  22.             {% endif %}
  23.             {{ participant.fname | title ~' '~ participant.sname|upper}} ({{ participant.idInd }})<br />
  24.             {% if participant.jobtitle != "" %}
  25.                 {{ participant.jobtitle }}<br />
  26.             {% endif %}
  27.             {% if participant.dept != "" %}
  28.                 {{ participant.dept }}<br />
  29.             {% endif %}
  30.             {% if participant.instName != "" %}
  31.                 {{ participant.instName}}<br />
  32.             {% endif %}
  33.             {% if participant.instNameEng != ""
  34.                 and participant.instNameEng != participant.instName
  35.             %}
  36.                 {{ participant.instNameEng}}<br />
  37.             {% endif %}
  38.             {% if participant.address != "" %}
  39.                 {{ participant.address | raw}}<br />
  40.             {% endif %}
  41.             {% if app.user %}
  42.                 {% if participant.tel != "" %}
  43.                     Tel: {{ participant.tel }}<br />
  44.                 {% endif %}
  45.                 {% if participant.email1 is defined
  46.                     and participant.email1 !=""
  47.                 %}
  48.                     Email1: {{ participant.email1 }}<br />
  49.                 {% endif %}
  50.                 {% if participant.email2 is defined
  51.                     and participant.email2 !=""
  52.                     and participant.email1 != participant.email2
  53.                 %}
  54.                     Email2: {{ participant.email2 }}<br />
  55.                 {% endif %}
  56.             {% endif %}
  57.             <br /><br />
  58.         {% endfor %}
  59.     {% endfor %}
  60. {% else %}
  61.     <p>Sorry, you need to login to see this list.</p>
  62. {% endif %}
  63. </body>
  64. </html>