<?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;
/* report/overview.html.twig */
class __TwigTemplate_11ff4e5e9024fc6ded0f883c4c2809572915bd325a17386f2eb557fe9dd6989e extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
'javascripts' => [$this, 'block_javascripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
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", "report/overview.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "report/overview.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "report/overview.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 3
public function block_body($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(), "block", "body"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 4
echo "
<h3>Verfügbare Editionen für BL ";
// line 5
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, (isset($context["compilation"]) || array_key_exists("compilation", $context) ? $context["compilation"] : (function () { throw new RuntimeError('Variable "compilation" does not exist.', 5, $this->source); })()), "title", [], "any", false, false, false, 5), "html", null, true);
echo "</h3>
<table>
<tr>
<th>Id</th>
<th>Title</th>
<th>Code</th>
<th></th>
<th></th>
</tr>
";
// line 15
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["editions"]) || array_key_exists("editions", $context) ? $context["editions"] : (function () { throw new RuntimeError('Variable "editions" does not exist.', 15, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["edition"]) {
// line 16
echo " <tr>
<td style=\"padding:0 4px 0 4px;\">";
// line 17
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["edition"], 0, [], "array", false, false, false, 17), "edition", [], "any", false, false, false, 17), "id", [], "any", false, false, false, 17), "html", null, true);
echo "</td>
<td style=\"padding:0 4px 0 4px;\">";
// line 18
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["edition"], 0, [], "array", false, false, false, 18), "edition", [], "any", false, false, false, 18), "title", [], "any", false, false, false, 18), "html", null, true);
echo "</td>
<td style=\"padding:0 4px 0 4px;\">";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["edition"], 0, [], "array", false, false, false, 19), "edition", [], "any", false, false, false, 19), "codeTitle", [], "any", false, false, false, 19), "html", null, true);
echo "</td>
<td style=\"padding:0 4px 0 4px;\"><a href=\"";
// line 20
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("PapyrillioBeehive_ReportPrint", ["compilationVolume" => twig_get_attribute($this->env, $this->source, (isset($context["compilation"]) || array_key_exists("compilation", $context) ? $context["compilation"] : (function () { throw new RuntimeError('Variable "compilation" does not exist.', 20, $this->source); })()), "volume", [], "any", false, false, false, 20), "editionId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["edition"], 0, [], "array", false, false, false, 20), "edition", [], "any", false, false, false, 20), "id", [], "any", false, false, false, 20)]), "html", null, true);
echo "\">PRINT</a> </td>
<td style=\"padding:0 4px 0 4px;\"><!--a href=\"";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("PapyrillioBeehive_ReportPdf", ["compilationVolume" => twig_get_attribute($this->env, $this->source, (isset($context["compilation"]) || array_key_exists("compilation", $context) ? $context["compilation"] : (function () { throw new RuntimeError('Variable "compilation" does not exist.', 21, $this->source); })()), "volume", [], "any", false, false, false, 21), "editionId" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, $context["edition"], 0, [], "array", false, false, false, 21), "edition", [], "any", false, false, false, 21), "id", [], "any", false, false, false, 21)]), "html", null, true);
echo "\">PDF</a--></td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['edition'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 25
echo " </table>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
// line 29
public function block_javascripts($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(), "block", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 30
echo " ";
$this->displayParentBlock("javascripts", $context, $blocks);
echo "
<script src=\"";
// line 32
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("js/jquery/jquery-jeditable.min.js"), "html", null, true);
echo "\" type=\"text/javascript\"></script>
<script type=\"text/javascript\">
\$(function(){
\$('span#print').click(function(event){window.print();});
});
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "report/overview.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 146 => 32, 140 => 30, 130 => 29, 118 => 25, 108 => 21, 104 => 20, 100 => 19, 96 => 18, 92 => 17, 89 => 16, 85 => 15, 72 => 5, 69 => 4, 59 => 3, 36 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
<h3>Verfügbare Editionen für BL {{ compilation.title }}</h3>
<table>
<tr>
<th>Id</th>
<th>Title</th>
<th>Code</th>
<th></th>
<th></th>
</tr>
{% for edition in editions %}
<tr>
<td style=\"padding:0 4px 0 4px;\">{{ edition[0].edition.id }}</td>
<td style=\"padding:0 4px 0 4px;\">{{ edition[0].edition.title }}</td>
<td style=\"padding:0 4px 0 4px;\">{{ edition[0].edition.codeTitle }}</td>
<td style=\"padding:0 4px 0 4px;\"><a href=\"{{ path('PapyrillioBeehive_ReportPrint', {'compilationVolume': compilation.volume, 'editionId': edition[0].edition.id}) }}\">PRINT</a> </td>
<td style=\"padding:0 4px 0 4px;\"><!--a href=\"{{ path('PapyrillioBeehive_ReportPdf', {'compilationVolume': compilation.volume, 'editionId': edition[0].edition.id}) }}\">PDF</a--></td>
</tr>
{% endfor %}
</table>
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script src=\"{{ asset('js/jquery/jquery-jeditable.min.js') }}\" type=\"text/javascript\"></script>
<script type=\"text/javascript\">
\$(function(){
\$('span#print').click(function(event){window.print();});
});
</script>
{% endblock %}", "report/overview.html.twig", "/var/www/beehive_dev/templates/report/overview.html.twig");
}
}