var/cache/dev/twig/c4/c44b08499148d0a418ef5c3c8048202d.php line 38

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* index.html.twig */
  14. class __TwigTemplate_7e24684abfe794b982e2cc731373d4a2 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 1
  29.         return "base.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.html.twig"));
  36.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""index.html.twig"));
  38.         $this->parent $this->loadTemplate("base.html.twig""index.html.twig"1);
  39.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  40.         
  41.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  42.         
  43.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  44.     }
  45.     // line 2
  46.     public function block_body($context, array $blocks = [])
  47.     {
  48.         $macros $this->macros;
  49.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  51.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  53.         // line 3
  54.         echo "  ";
  55.         if ($this->extensions['Symfony\Bridge\Twig\Extension\SecurityExtension']->isGranted("IS_AUTHENTICATED_REMEMBERED")) {
  56.             // line 4
  57.             echo "    ";
  58.             if (array_key_exists("newApplicationForm"$context)) {
  59.                 // line 5
  60.                 echo "      ";
  61.                 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');
  62.                 echo "
  63.     ";
  64.             }
  65.             // line 7
  66.             echo "    ";
  67.             if (array_key_exists("mystemForm"$context)) {
  68.                 // line 8
  69.                 echo "      ";
  70.                 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');
  71.                 echo "
  72.     ";
  73.             }
  74.             // line 10
  75.             echo "    ";
  76.             if (array_key_exists("applications"$context)) {
  77.                 // line 11
  78.                 echo "      <table class=\"hero col_25 table\" >
  79.         <tr>
  80.           <th>Имя</th>
  81.           <th>Ключ</th>
  82.         </tr>
  83.         ";
  84.                 // line 16
  85.                 $context['_parent'] = $context;
  86.                 $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); })()));
  87.                 foreach ($context['_seq'] as $context["_key"] => $context["application"]) {
  88.                     // line 17
  89.                     echo "          <tr>
  90.             <td>
  91.               ";
  92.                     // line 19
  93.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["application"], "name", [], "any"falsefalsefalse19), "html"nulltrue);
  94.                     echo "
  95.             </td>
  96.             <td>
  97.               ";
  98.                     // line 22
  99.                     echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->source$context["application"], "key", [], "any"falsefalsefalse22), "html"nulltrue);
  100.                     echo "
  101.             </td>
  102.           </tr>
  103.         ";
  104.                 }
  105.                 $_parent $context['_parent'];
  106.                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['application'], $context['_parent'], $context['loop']);
  107.                 $context array_intersect_key($context$_parent) + $_parent;
  108.                 // line 26
  109.                 echo "      </table>
  110.     ";
  111.             }
  112.             // line 28
  113.             echo "  ";
  114.         }
  115.         
  116.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117.         
  118.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  119.     }
  120.     /**
  121.      * @codeCoverageIgnore
  122.      */
  123.     public function getTemplateName()
  124.     {
  125.         return "index.html.twig";
  126.     }
  127.     /**
  128.      * @codeCoverageIgnore
  129.      */
  130.     public function isTraitable()
  131.     {
  132.         return false;
  133.     }
  134.     /**
  135.      * @codeCoverageIgnore
  136.      */
  137.     public function getDebugInfo()
  138.     {
  139.         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,);
  140.     }
  141.     public function getSourceContext()
  142.     {
  143.         return new Source("{% extends 'base.html.twig' %}
  144. {% block body %}
  145.   {% if is_granted('IS_AUTHENTICATED_REMEMBERED') %}
  146.     {% if newApplicationForm is defined %}
  147.       {{ form(newApplicationForm) }}
  148.     {% endif %}
  149.     {% if mystemForm is defined %}
  150.       {{ form(mystemForm) }}
  151.     {% endif %}
  152.     {% if applications is defined %}
  153.       <table class=\"hero col_25 table\" >
  154.         <tr>
  155.           <th>Имя</th>
  156.           <th>Ключ</th>
  157.         </tr>
  158.         {% for application in applications %}
  159.           <tr>
  160.             <td>
  161.               {{ application.name }}
  162.             </td>
  163.             <td>
  164.               {{ application.key }}
  165.             </td>
  166.           </tr>
  167.         {% endfor %}
  168.       </table>
  169.     {% endif %}
  170.   {% endif %}
  171. {% endblock %}
  172. ""index.html.twig""/home/icon/var/www/isocortex.online/templates/index.html.twig");
  173.     }
  174. }