<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* Event/printableParticipants.html.twig */
class __TwigTemplate_f5374570ce2b0a804dc817488fece2c5066bab4a6971e918536639ca33dde1f8 extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
];
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Event/printableParticipants.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Event/printableParticipants.html.twig"));
// line 1
echo "<!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>";
// line 14
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 14, $this->source); })()), "event", [], "any", false, false, false, 14), "title", [], "any", false, false, false, 14), "html", null, true);
echo "</strong> (";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 14, $this->source); })()), "event", [], "any", false, false, false, 14), "idEvent", [], "any", false, false, false, 14), "html", null, true);
echo ")<br />
Date: ";
// line 15
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 15, $this->source); })()), "event", [], "any", false, false, false, 15), "startOn", [], "any", false, false, false, 15), "Y-M-d"), "html", null, true);
echo " to ";
echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 15, $this->source); })()), "event", [], "any", false, false, false, 15), "endOn", [], "any", false, false, false, 15), "Y-M-d"), "html", null, true);
echo "<br /><br />
";
// line 16
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("ROLE_USER")) {
// line 17
echo " ";
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(twig_get_attribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 17, $this->source); })()), "participants", [], "any", false, false, false, 17));
foreach ($context['_seq'] as $context["role"] => $context["participants"]) {
// line 18
echo " <strong>";
echo twig_escape_filter($this->env, $context["role"], "html", null, true);
echo "</strong><br /><br />
";
// line 19
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable($context["participants"]);
foreach ($context['_seq'] as $context["_key"] => $context["participant"]) {
// line 20
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "title", [], "any", false, false, false, 20) != "")) {
// line 21
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "title", [], "any", false, false, false, 21), "html", null, true);
echo "
";
}
// line 23
echo " ";
echo twig_escape_filter($this->env, ((twig_title_string_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "fname", [], "any", false, false, false, 23)) . " ") . twig_upper_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "sname", [], "any", false, false, false, 23))), "html", null, true);
echo " (";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "idInd", [], "any", false, false, false, 23), "html", null, true);
echo ")<br />
";
// line 24
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "jobtitle", [], "any", false, false, false, 24) != "")) {
// line 25
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "jobtitle", [], "any", false, false, false, 25), "html", null, true);
echo "<br />
";
}
// line 27
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "dept", [], "any", false, false, false, 27) != "")) {
// line 28
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "dept", [], "any", false, false, false, 28), "html", null, true);
echo "<br />
";
}
// line 30
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "instName", [], "any", false, false, false, 30) != "")) {
// line 31
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "instName", [], "any", false, false, false, 31), "html", null, true);
echo "<br />
";
}
// line 33
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["participant"], "instNameEng", [], "any", false, false, false, 33) != "") && (twig_get_attribute($this->env, $this->source, // line 34
$context["participant"], "instNameEng", [], "any", false, false, false, 34) != twig_get_attribute($this->env, $this->source, $context["participant"], "instName", [], "any", false, false, false, 34)))) {
// line 36
echo " ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "instNameEng", [], "any", false, false, false, 36), "html", null, true);
echo "<br />
";
}
// line 38
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "address", [], "any", false, false, false, 38) != "")) {
// line 39
echo " ";
echo twig_get_attribute($this->env, $this->source, $context["participant"], "address", [], "any", false, false, false, 39);
echo "<br />
";
}
// line 41
echo " ";
if (twig_get_attribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 41, $this->source); })()), "user", [], "any", false, false, false, 41)) {
// line 42
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "tel", [], "any", false, false, false, 42) != "")) {
// line 43
echo " Tel: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "tel", [], "any", false, false, false, 43), "html", null, true);
echo "<br />
";
}
// line 45
echo " ";
if ((twig_get_attribute($this->env, $this->source, $context["participant"], "email1", [], "any", true, true, false, 45) && (twig_get_attribute($this->env, $this->source, // line 46
$context["participant"], "email1", [], "any", false, false, false, 46) != ""))) {
// line 48
echo " Email1: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "email1", [], "any", false, false, false, 48), "html", null, true);
echo "<br />
";
}
// line 50
echo " ";
if (((twig_get_attribute($this->env, $this->source, $context["participant"], "email2", [], "any", true, true, false, 50) && (twig_get_attribute($this->env, $this->source, // line 51
$context["participant"], "email2", [], "any", false, false, false, 51) != "")) && (twig_get_attribute($this->env, $this->source, // line 52
$context["participant"], "email1", [], "any", false, false, false, 52) != twig_get_attribute($this->env, $this->source, $context["participant"], "email2", [], "any", false, false, false, 52)))) {
// line 54
echo " Email2: ";
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["participant"], "email2", [], "any", false, false, false, 54), "html", null, true);
echo "<br />
";
}
// line 56
echo " ";
}
// line 57
echo " <br /><br />
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['participant'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 59
echo "
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['role'], $context['participants'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
} else {
// line 62
echo " <p>Sorry, you need to login to see this list.</p>
";
}
// line 64
echo "
</body>
</html>
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
public function getTemplateName()
{
return "Event/printableParticipants.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 202 => 64, 198 => 62, 190 => 59, 183 => 57, 180 => 56, 174 => 54, 172 => 52, 171 => 51, 169 => 50, 163 => 48, 161 => 46, 159 => 45, 153 => 43, 150 => 42, 147 => 41, 141 => 39, 138 => 38, 132 => 36, 130 => 34, 128 => 33, 122 => 31, 119 => 30, 113 => 28, 110 => 27, 104 => 25, 102 => 24, 95 => 23, 89 => 21, 86 => 20, 82 => 19, 77 => 18, 72 => 17, 70 => 16, 64 => 15, 58 => 14, 43 => 1,);
}
public function getSourceContext()
{
return new Source("<!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>
", "Event/printableParticipants.html.twig", "/var/www/html/oceanexpert_dev/templates/Event/printableParticipants.html.twig");
}
}