<?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;
/* index.html.twig */
class __TwigTemplate_7e24684abfe794b982e2cc731373d4a2 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'body' => [$this, 'block_body'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "base.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "index.html.twig"));
$this->parent = $this->loadTemplate("base.html.twig", "index.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
public function block_body($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
// line 3
echo " ";
if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
// line 4
echo " ";
if (array_key_exists("newApplicationForm", $context)) {
// line 5
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["newApplicationForm"]) || array_key_exists("newApplicationForm", $context) ? $context["newApplicationForm"] : (function () { throw new RuntimeError('Variable "newApplicationForm" does not exist.', 5, $this->source); })()), 'form');
echo "
";
}
// line 7
echo " ";
if (array_key_exists("mystemForm", $context)) {
// line 8
echo " ";
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["mystemForm"]) || array_key_exists("mystemForm", $context) ? $context["mystemForm"] : (function () { throw new RuntimeError('Variable "mystemForm" does not exist.', 8, $this->source); })()), 'form');
echo "
";
}
// line 10
echo " ";
if (array_key_exists("applications", $context)) {
// line 11
echo " <table class=\"hero col_25 table\" >
<tr>
<th>Имя</th>
<th>Ключ</th>
</tr>
";
// line 16
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["applications"]) || array_key_exists("applications", $context) ? $context["applications"] : (function () { throw new RuntimeError('Variable "applications" does not exist.', 16, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["application"]) {
// line 17
echo " <tr>
<td>
";
// line 19
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["application"], "name", [], "any", false, false, false, 19), "html", null, true);
echo "
</td>
<td>
";
// line 22
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, $context["application"], "key", [], "any", false, false, false, 22), "html", null, true);
echo "
</td>
</tr>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['application'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 26
echo " </table>
";
}
// line 28
echo " ";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "index.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 127 => 28, 123 => 26, 113 => 22, 107 => 19, 103 => 17, 99 => 16, 92 => 11, 89 => 10, 83 => 8, 80 => 7, 74 => 5, 71 => 4, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'base.html.twig' %}
{% block body %}
{% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
{% if newApplicationForm is defined %}
{{ form(newApplicationForm) }}
{% endif %}
{% if mystemForm is defined %}
{{ form(mystemForm) }}
{% endif %}
{% if applications is defined %}
<table class=\"hero col_25 table\" >
<tr>
<th>Имя</th>
<th>Ключ</th>
</tr>
{% for application in applications %}
<tr>
<td>
{{ application.name }}
</td>
<td>
{{ application.key }}
</td>
</tr>
{% endfor %}
</table>
{% endif %}
{% endif %}
{% endblock %}
", "index.html.twig", "/home/icon/var/www/isocortex.online/templates/index.html.twig");
}
}