protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"modular-row callout\">\n    <div class=\"callout-container container\">\n    ";
     // line 3
     $context["image"] = twig_first($this->env, $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "media", array()), "images", array()));
     // line 4
     echo "    ";
     $context["imagelink"] = $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "image_link", array());
     // line 5
     echo "    ";
     if (isset($context["imagelink"]) ? $context["imagelink"] : null) {
         // line 6
         echo "    \t\t<a href=\"";
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "image_link", array());
         echo "\" target=\"_blank\">\n    ";
     }
     // line 8
     echo "    ";
     if (isset($context["image"]) ? $context["image"] : null) {
         // line 9
         echo "        ";
         echo $this->getAttribute($this->getAttribute(isset($context["image"]) ? $context["image"] : null, "cropResize", array(0 => 400, 1 => 400), "method"), "html", array(0 => "", 1 => "", 2 => "align-" . $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "image_align", array())), "method");
         echo "\n    ";
     }
     // line 11
     echo "    ";
     if (isset($context["imagelink"]) ? $context["imagelink"] : null) {
         // line 12
         echo "    \t\t</a>\n    ";
     }
     // line 14
     echo isset($context["content"]) ? $context["content"] : null;
     echo "\n    <div class=\"clearfix\"></div>\n    </div>\n</div>\n";
 }
 public function block_page_content($context, array $blocks = array())
 {
     // line 6
     echo "    <div class=\"page-header\">\n        <h1>Namespaces</h1>\n    </div>\n\n    ";
     // line 10
     if (isset($context["namespaces"]) ? $context["namespaces"] : $this->getContext($context, "namespaces")) {
         // line 11
         echo "        <div class=\"namespaces clearfix\">\n            ";
         // line 12
         $context["last_name"] = "";
         // line 13
         echo "            ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["namespaces"]) ? $context["namespaces"] : $this->getContext($context, "namespaces"));
         foreach ($context['_seq'] as $context["_key"] => $context["namespace"]) {
             // line 14
             echo "                ";
             $context["top_level"] = twig_first($this->env, twig_split_filter($this->env, $context["namespace"], "\\"));
             // line 15
             echo "                ";
             if ((isset($context["top_level"]) ? $context["top_level"] : $this->getContext($context, "top_level")) != (isset($context["last_name"]) ? $context["last_name"] : $this->getContext($context, "last_name"))) {
                 // line 16
                 echo "                    ";
                 if (isset($context["last_name"]) ? $context["last_name"] : $this->getContext($context, "last_name")) {
                     echo "</ul></div>";
                 }
                 // line 17
                 echo "                    <div class=\"namespace-container\">\n                        <h2>";
                 // line 18
                 echo twig_escape_filter($this->env, isset($context["top_level"]) ? $context["top_level"] : $this->getContext($context, "top_level"), "html", null, true);
                 echo "</h2>\n                        <ul>\n                    ";
                 // line 20
                 $context["last_name"] = isset($context["top_level"]) ? $context["top_level"] : $this->getContext($context, "top_level");
                 // line 21
                 echo "                ";
             }
             // line 22
             echo "                <li><a href=\"";
             echo twig_escape_filter($this->env, $this->env->getExtension('sami')->pathForNamespace($context, $context["namespace"]), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $context["namespace"], "html", null, true);
             echo "</a></li>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['namespace'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 24
         echo "                </ul>\n            </div>\n        </div>\n    ";
     }
     // line 28
     echo "\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3 = $this->env->getExtension("native_profiler");
     $__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3->enter($__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@EasyAdmin/default/layout.html.twig"));
     // line 1
     echo "<!DOCTYPE html>\n<html lang=\"";
     // line 2
     echo twig_escape_filter($this->env, _twig_default_filter(twig_first($this->env, twig_split_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["app"]) ? $context["app"] : $this->getContext($context, "app"), "request", array()), "locale", array()), "_")), "en"), "html", null, true);
     echo "\">\n    <head>\n        <meta charset=\"utf-8\">\n        <meta name=\"viewport\" content=\"width=device-width, initial-scale=1\">\n        <meta http-equiv=\"X-UA-Compatible\" content=\"IE=edge\">\n        <meta http-equiv=\"content-type\" content=\"text/html; charset=utf-8\">\n        <meta name=\"generator\" content=\"EasyAdmin\" />\n\n        <title>";
     // line 10
     $this->displayBlock('page_title', $context, $blocks);
     echo "</title>\n\n        ";
     // line 12
     $this->displayBlock('head_stylesheets', $context, $blocks);
     // line 17
     echo "\n        ";
     // line 18
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->env->getExtension('easyadmin_extension')->getBackendConfiguration("design.assets.css"));
     foreach ($context['_seq'] as $context["_key"] => $context["css_asset"]) {
         // line 19
         echo "            <link rel=\"stylesheet\" href=\"";
         echo twig_escape_filter($this->env, $this->env->getExtension('asset')->getAssetUrl($context["css_asset"]), "html", null, true);
         echo "\">\n        ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['css_asset'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 21
     echo "\n        ";
     // line 22
     $this->displayBlock('head_favicon', $context, $blocks);
     // line 26
     echo "\n        ";
     // line 27
     $this->displayBlock('head_javascript', $context, $blocks);
     // line 28
     echo "    </head>\n\n    ";
     // line 30
     $this->displayBlock('body', $context, $blocks);
     // line 129
     echo "</html>\n";
     $__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3->leave($__internal_b6577aabed1b59abc2dcd70f6f709dedd4f304b19815695b725d60aefbbe37c3_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     $context["showcase_image"] = twig_first($this->env, $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "media", array()), "images", array()));
     // line 2
     if (isset($context["showcase_image"]) ? $context["showcase_image"] : null) {
         // line 3
         echo "\t<div class=\"modular-row showcase flush-top\" style=\"background-image: url(";
         echo $this->getAttribute(isset($context["showcase_image"]) ? $context["showcase_image"] : null, "url", array());
         echo ");\">\n";
     } else {
         // line 5
         echo "<div class=\"modular-row showcase\">\n";
     }
     // line 7
     echo "    ";
     echo isset($context["content"]) ? $context["content"] : null;
     echo "\n\n    ";
     // line 9
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "buttons", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["button"]) {
         // line 10
         echo "        <a class=\"button";
         if ($this->getAttribute($context["button"], "primary", array())) {
             echo " primary";
         }
         echo "\" href=\"";
         echo $this->getAttribute($context["button"], "url", array());
         echo "\">";
         echo $this->getAttribute($context["button"], "text", array());
         echo "</a>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['button'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 12
     echo "\n</div>\n";
 }
 public function getform_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "forms_by_hash" => $__forms_by_hash__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_0379e6e52f2454f68a1477d4851dc64870d86fd5af7017c1bfdf5f6a0dbfea4c = $this->env->getExtension("native_profiler");
         $__internal_0379e6e52f2454f68a1477d4851dc64870d86fd5af7017c1bfdf5f6a0dbfea4c->enter($__internal_0379e6e52f2454f68a1477d4851dc64870d86fd5af7017c1bfdf5f6a0dbfea4c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "form_tree_details"));
         // line 446
         echo "    ";
         $context["tree"] = $this;
         // line 447
         echo "    <div class=\"tree-details\" ";
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "id", array(), "any", true, true)) {
             echo " id=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-details\"";
         }
         echo ">\n        <h2>\n            ";
         // line 449
         echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true);
         echo "\n            ";
         // line 450
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "type_class", array(), "any", true, true) && $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "type", array(), "any", true, true)) {
             // line 451
             echo "            <span class=\"form-type\">[<abbr title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type_class", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type", array()), "html", null, true);
             echo "</abbr>]</span>\n            ";
         }
         // line 453
         echo "        </h2>\n\n        ";
         // line 455
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "errors", array(), "any", true, true) && twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array())) > 0) {
             // line 456
             echo "        <div class=\"errors\">\n            <h3>\n                <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 458
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\" href=\"#\">\n                    Errors\n                    <span class=\"toggle-icon\"></span>\n                </a>\n            </h3>\n\n            <table id=\"";
             // line 464
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\">\n                <tr>\n                    <th>Message</th>\n                    <th>Origin</th>\n                    <th>Cause</th>\n                </tr>\n                ";
             // line 470
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 471
                 echo "                <tr>\n                    <td>";
                 // line 472
                 echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", array()), "html", null, true);
                 echo "</td>\n                    <td>\n                        ";
                 // line 474
                 if (twig_test_empty($this->getAttribute($context["error"], "origin", array()))) {
                     // line 475
                     echo "                            <em>This form.</em>\n                        ";
                 } elseif (!$this->getAttribute(isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : null, $this->getAttribute($context["error"], "origin", array()), array(), "array", true, true)) {
                     // line 477
                     echo "                            <em>Unknown.</em>\n                        ";
                 } else {
                     // line 479
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"), $this->getAttribute($context["error"], "origin", array()), array(), "array"), "name", array()), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 481
                 echo "                    </td>\n                    <td>\n                        ";
                 // line 483
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["error"], "trace", array()));
                 $context['_iterated'] = false;
                 $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                 if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                     $length = count($context['_seq']);
                     $context['loop']['revindex0'] = $length - 1;
                     $context['loop']['revindex'] = $length;
                     $context['loop']['length'] = $length;
                     $context['loop']['last'] = 1 === $length;
                 }
                 foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
                     // line 484
                     echo "                            ";
                     if (!$this->getAttribute($context["loop"], "first", array())) {
                         // line 485
                         echo "                                <br/>Caused by:<br/><br/>\n                            ";
                     }
                     // line 487
                     echo "                            ";
                     if ($this->getAttribute($context["trace"], "root", array(), "any", true, true)) {
                         // line 488
                         echo "                                <strong>";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "class", array()), "html", null, true);
                         echo "</strong><br/>\n                                <pre>";
                         // line 490
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "root", array()), "html", null, true);
                         // line 491
                         if (!twig_test_empty($this->getAttribute($context["trace"], "path", array()))) {
                             // line 492
                             if (twig_first($this->env, $this->getAttribute($context["trace"], "path", array())) != "[") {
                                 echo ".";
                             }
                             // line 493
                             echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "path", array()), "html", null, true);
                         }
                         // line 494
                         echo " = ";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "value", array()), "html", null, true);
                         // line 495
                         echo "</pre>\n                            ";
                     } elseif ($this->getAttribute($context["trace"], "message", array(), "any", true, true)) {
                         // line 497
                         echo "                                <strong>";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "class", array()), "html", null, true);
                         echo "</strong><br/>\n                                <pre>";
                         // line 498
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "message", array()), "html", null, true);
                         echo "</pre>\n                            ";
                     } else {
                         // line 500
                         echo "                                <pre>";
                         echo twig_escape_filter($this->env, $context["trace"], "html", null, true);
                         echo "</pre>\n                            ";
                     }
                     // line 502
                     echo "                        ";
                     $context['_iterated'] = true;
                     ++$context['loop']['index0'];
                     ++$context['loop']['index'];
                     $context['loop']['first'] = false;
                     if (isset($context['loop']['length'])) {
                         --$context['loop']['revindex0'];
                         --$context['loop']['revindex'];
                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                     }
                 }
                 if (!$context['_iterated']) {
                     // line 503
                     echo "                            <em>Unknown.</em>\n                        ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 505
                 echo "                    </td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 508
             echo "            </table>\n        </div>\n        ";
         }
         // line 511
         echo "\n        ";
         // line 512
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", true, true)) {
             // line 513
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 514
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\" href=\"#\">\n                Default Data\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 520
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\">\n            <table>\n                <tr>\n                    <th width=\"180\">Model Format</th>\n                    <td>\n                        ";
             // line 525
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                 // line 526
                 echo "                            <pre>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "model", array()), "html", null, true);
                 echo "</pre>\n                        ";
             } else {
                 // line 528
                 echo "                            <em>same as normalized format</em>\n                        ";
             }
             // line 530
             echo "                    </td>\n                </tr>\n                <tr>\n                    <th>Normalized Format</th>\n                    <td><pre>";
             // line 534
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "norm", array()), "html", null, true);
             echo "</pre></td>\n                </tr>\n                <tr>\n                    <th>View Format</th>\n                    <td>\n                        ";
             // line 539
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                 // line 540
                 echo "                            <pre>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "view", array()), "html", null, true);
                 echo "</pre>\n                        ";
             } else {
                 // line 542
                 echo "                            <em>same as normalized format</em>\n                        ";
             }
             // line 544
             echo "                    </td>\n                </tr>\n            </table>\n        </div>\n        ";
         }
         // line 549
         echo "\n        ";
         // line 550
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", true, true)) {
             // line 551
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 552
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\" href=\"#\">\n                Submitted Data\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 558
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\">\n        ";
             // line 559
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) {
                 // line 560
                 echo "            <table>\n                <tr>\n                    <th width=\"180\">View Format</th>\n                    <td>\n                        ";
                 // line 564
                 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                     // line 565
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "view", array()), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 567
                     echo "                            <em>same as normalized format</em>\n                        ";
                 }
                 // line 569
                 echo "                    </td>\n                </tr>\n                <tr>\n                    <th>Normalized Format</th>\n                    <td><pre>";
                 // line 573
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "norm", array()), "html", null, true);
                 echo "</pre></td>\n                </tr>\n                <tr>\n                    <th>Model Format</th>\n                    <td>\n                        ";
                 // line 578
                 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                     // line 579
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "model", array()), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 581
                     echo "                            <em>same as normalized format</em>\n                        ";
                 }
                 // line 583
                 echo "                    </td>\n                </tr>\n            </table>\n        ";
             } else {
                 // line 587
                 echo "            <p><em>This form was not submitted.</em></p>\n        ";
             }
             // line 589
             echo "        </div>\n        ";
         }
         // line 591
         echo "\n        ";
         // line 592
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "passed_options", array(), "any", true, true)) {
             // line 593
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 594
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\" href=\"#\">\n                Passed Options\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 600
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\">\n            ";
             // line 601
             if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()))) {
                 // line 602
                 echo "            <table>\n                <tr>\n                    <th width=\"180\">Option</th>\n                    <th>Passed Value</th>\n                    <th>Resolved Value</th>\n                </tr>\n                ";
                 // line 608
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()));
                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                     // line 609
                     echo "                <tr>\n                    <th>";
                     // line 610
                     echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                     echo "</th>\n                    <td><pre>";
                     // line 611
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "</pre></td>\n                    <td>\n                        ";
                     // line 613
                     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array") === $context["value"]) {
                         // line 614
                         echo "                            <em>same as passed value</em>\n                        ";
                     } else {
                         // line 616
                         echo "                            <pre>";
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array"), "html", null, true);
                         echo "</pre>\n                        ";
                     }
                     // line 618
                     echo "                    </td>\n                </tr>\n                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 621
                 echo "            </table>\n            ";
             } else {
                 // line 623
                 echo "            <p><em>No options where passed when constructing this form.</em></p>\n            ";
             }
             // line 625
             echo "        </div>\n        ";
         }
         // line 627
         echo "\n        ";
         // line 628
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "resolved_options", array(), "any", true, true)) {
             // line 629
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 630
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" href=\"#\">\n                Resolved Options\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 636
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" class=\"hidden\">\n            <table>\n                <tr>\n                    <th width=\"180\">Option</th>\n                    <th>Value</th>\n                </tr>\n                ";
             // line 642
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()));
             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                 // line 643
                 echo "                <tr>\n                    <th>";
                 // line 644
                 echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                 echo "</th>\n                    <td><pre>";
                 // line 645
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</pre></td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 648
             echo "            </table>\n        </div>\n        ";
         }
         // line 651
         echo "\n        ";
         // line 652
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "view_vars", array(), "any", true, true)) {
             // line 653
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 654
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" href=\"#\">\n                View Variables\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 660
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" class=\"hidden\">\n            <table>\n                <tr>\n                    <th width=\"180\">Variable</th>\n                    <th>Value</th>\n                </tr>\n                ";
             // line 666
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "view_vars", array()));
             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
                 // line 667
                 echo "                <tr>\n                    <th>";
                 // line 668
                 echo twig_escape_filter($this->env, $context["variable"], "html", null, true);
                 echo "</th>\n                    <td><pre>";
                 // line 669
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</pre></td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 672
             echo "            </table>\n        </div>\n        ";
         }
         // line 675
         echo "    </div>\n\n    ";
         // line 677
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "children", array()));
         foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
             // line 678
             echo "        ";
             echo $context["tree"]->getform_tree_details($context["childName"], $context["childData"], isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"));
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         $__internal_0379e6e52f2454f68a1477d4851dc64870d86fd5af7017c1bfdf5f6a0dbfea4c->leave($__internal_0379e6e52f2454f68a1477d4851dc64870d86fd5af7017c1bfdf5f6a0dbfea4c_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function block_content($context, array $blocks = array())
 {
     // line 3
     echo "\n\t\t\t";
     // line 5
     echo "\t\t\t";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array())) {
         // line 6
         echo "\t\t\t\t<audio autoplay src=\"";
         if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array()) == "shot") {
             echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/" . $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array()) . "-" . twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method"))) . ".mp3");
         } else {
             echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/" . $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "audio", array()) . ".mp3");
         }
         echo "\"></audio>\n\t\t\t";
     }
     // line 8
     echo "\n      ";
     // line 10
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "a", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "a", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "a", array())) {
     } else {
         echo "onclick=\"play('shot-a')\"";
     }
     echo ">\n        <div id=\"soldier_a\"></div>\n      </a>\n      <audio id=\"shot-a\" src=\"";
     // line 13
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-a.mp3");
     echo "\" ></audio>\n\n      ";
     // line 16
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "b", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "b", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "b", array())) {
     } else {
         echo "onclick=\"play('shot-b')\"";
     }
     echo ">\n        <div id=\"soldier_b\"></div>\n      </a>\n      <audio id=\"shot-b\" src=\"";
     // line 19
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-b.mp3");
     echo "\" ></audio>\n\n      ";
     // line 22
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "c", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "c", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "c", array())) {
     } else {
         echo "onclick=\"play('shot-c')\"";
     }
     echo ">\n        <div id=\"soldier_c\"></div>\n      </a>\n      <audio id=\"shot-c\" src=\"";
     // line 25
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-c.mp3");
     echo "\" ></audio>\n\n      ";
     // line 28
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "d", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "d", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "d", array())) {
     } else {
         echo "onclick=\"play('shot-d')\"";
     }
     echo ">\n        <div id=\"soldier_d\"></div>\n      </a>\n      <audio id=\"shot-d\" src=\"";
     // line 31
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-d.mp3");
     echo "\" ></audio>\n\n      ";
     // line 34
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "e", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "e", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "e", array())) {
     } else {
         echo "onclick=\"play('shot-5')\"";
     }
     echo ">\n        <div id=\"soldier_e\"></div>\n      </a>\n      <audio id=\"shot-5\" src=\"";
     // line 37
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-e.mp3");
     echo "\" ></audio>\n\n      ";
     // line 40
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "f", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "f", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "f", array())) {
     } else {
         echo "onclick=\"play('shot-6')\"";
     }
     echo ">\n        <div id=\"soldier_f\"></div>\n      </a>\n      <audio id=\"shot-6\" src=\"";
     // line 43
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-f.mp3");
     echo "\" ></audio>\n\n      ";
     // line 46
     echo "      <a href=\"";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "g", array())) {
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "g", array());
     } else {
         echo "#";
     }
     echo "\" ";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "g", array())) {
     } else {
         echo "onclick=\"play('shot-7')\"";
     }
     echo ">\n        <div id=\"soldier_g\"></div>\n      </a>\n      <audio id=\"shot-7\" src=\"";
     // line 49
     echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/shot-g.mp3");
     echo "\" ></audio>\n\n\t\t\t";
     // line 52
     echo "\t\t\t";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "balloon") {
         // line 53
         echo "\t\t\t\t<blockquote id=\"balloon-";
         echo twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method")));
         echo "\">\n\t\t\t\t\t";
         // line 54
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array());
         echo "\n\t\t\t\t</blockquote>\n\n\t\t\t";
         // line 58
         echo "\t\t\t";
     } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "thought") {
         // line 59
         echo "\t\t\t\t<div id=\"thought-";
         echo twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method")));
         echo "\" ";
         if (null === $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "no_dialog_fade", array())) {
             echo "class=\"dialog-fade-in\"";
         }
         echo ">\n\t\t\t\t\t<a href=\"";
         // line 60
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
         echo "\">";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array());
         echo "</a>\n\t\t\t\t</div>\n\n\t\t\t";
         // line 64
         echo "\t\t\t";
     } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "thought-chest") {
         // line 65
         echo "\t\t\t\t\t<div id=\"thought-";
         echo twig_lower_filter($this->env, twig_first($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "slug", array(), "method")));
         echo "\">\n\t\t\t\t\t\t<a href=\"";
         // line 66
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
         echo "\" onmouseover=\"play('latch-open')\">\n\t\t\t\t\t\t\t<div id=\"small-chest\">\n\t\t\t\t\t\t\t\t<audio id=\"latch-open\" src=\"";
         // line 68
         echo $this->env->getExtension('GravTwigExtension')->urlFunc("theme://static/audio/latch-open.mp3");
         echo "\"></audio>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</a>\n\t\t\t\t\t</div>\n\n\t\t\t";
         // line 74
         echo "\t\t\t";
     } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array()) == "chest-closed" || "chest-open") {
         // line 75
         echo "\t\t\t\t<a href=\"";
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
         echo "\"><div id=\"";
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "type", array());
         echo "\"></div></a>\n\t\t\t";
     } else {
         // line 77
         echo "\t\t\t\t";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array());
         echo "\n\t\t\t";
     }
     // line 79
     echo "\n\t\t\t";
     // line 81
     echo "\t\t\t";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "hint", array())) {
         // line 82
         echo "\t\t\t\t<div id=\"hint-";
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "hint", array());
         echo "\">\n\t\t\t\t\t";
         // line 83
         if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_a", array()) && $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_b", array()) && $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_c", array())) {
             // line 84
             echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<a href=\"";
             // line 85
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_a", array());
             echo "\"><div class=\"keyhole keyhole-left mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t\t<a href=\"";
             // line 87
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_b", array());
             echo "\"><div class=\"keyhole keyhole-center mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t\t<a href=\"";
             // line 89
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link_c", array());
             echo "\"><div class=\"keyhole keyhole-right mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t";
         } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "on") {
             // line 91
             echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<a href=\"";
             // line 92
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
             echo "\"><div class=\"keyhole keyhole-left mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t    <a href=\"";
             // line 94
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
             echo "\"><div class=\"keyhole keyhole-center mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t    <a href=\"";
             // line 96
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
             echo "\"><div class=\"keyhole keyhole-right mouse-on\"><div class=\"keyflash\"></div></div></a>\n\t\t\t\t\t";
         } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "a") {
             // line 98
             echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left keyhole-out\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off keyhole-fade-in\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t";
         } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "b") {
             // line 103
             echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center keyhole-out\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off keyhole-fade-in\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t";
         } elseif ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keyholes", array()) == "c") {
             // line 108
             echo "\t\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right keyhole-out\"></div>\n\t\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off keyhole-fade-in\"></div>\n\t\t\t\t\t";
         } else {
             // line 113
             echo "\t\t\t\t\t<div class=\"keyhole keyhole-left mouse-off\"></div>\n\t\t\t\t\t<div class=\"keyhole keyhole-center mouse-off\"></div>\n\t\t\t\t\t<div class=\"keyhole keyhole-right mouse-off\"></div>\n\t\t\t\t\t";
         }
         // line 117
         echo "\t\t\t\t</div>\n\t\t\t";
     }
     // line 119
     echo "\n\t\t\t";
     // line 121
     echo "\t\t\t";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keys", array())) {
         // line 122
         echo "\t\t\t\t";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(range(1, $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "keys", array())));
         foreach ($context['_seq'] as $context["_key"] => $context["name"]) {
             // line 123
             echo "\t\t\t\t\t<div class=\"key\"></div>\n\t\t\t\t";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['name'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 125
         echo "\t\t\t";
     }
     // line 126
     echo "\n\t\t\t";
     // line 128
     echo "\t\t\t";
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "effect", array()) == "final-fade") {
         // line 129
         echo "\t\t\t\t<div id=\"white-screen\"></div>\n\t\t\t";
     }
     // line 131
     echo "\n      ";
     // line 133
     echo "      <div id=\"return\">\n        <a href=\"";
     // line 134
     echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "return_link", array());
     echo "\">Return</a>\n      </div>\n\t";
 }
 public function getform_tree_details($_name = null, $_data = null, $_forms_by_hash = null)
 {
     $context = $this->env->mergeGlobals(array("name" => $_name, "data" => $_data, "forms_by_hash" => $_forms_by_hash));
     $blocks = array();
     ob_start();
     try {
         // line 440
         echo "    <div class=\"tree-details\" id=\"";
         echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
         echo "-details\">\n        <h2>\n            ";
         // line 442
         echo twig_escape_filter($this->env, $this->getContext($context, "name"), "html", null, true);
         echo "\n            ";
         // line 443
         if ($this->getAttribute($this->getContext($context, "data", true), "type_class", array(), "any", true, true)) {
             // line 444
             echo "            <span class=\"form-type\">[<abbr title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "type_class"), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "type"), "html", null, true);
             echo "</abbr>]</span>\n            ";
         }
         // line 446
         echo "        </h2>\n\n        ";
         // line 448
         if ($this->getAttribute($this->getContext($context, "data", true), "errors", array(), "any", true, true) && twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "errors")) > 0) {
             // line 449
             echo "        <div class=\"errors\">\n            <h3>\n                <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 451
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-errors\" href=\"#\">\n                    Errors\n                    <span class=\"toggle-icon\"></span>\n                </a>\n            </h3>\n\n            <table id=\"";
             // line 457
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-errors\">\n                <tr>\n                    <th>Message</th>\n                    <th>Origin</th>\n                    <th>Cause</th>\n                </tr>\n                ";
             // line 463
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "data"), "errors"));
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 464
                 echo "                <tr>\n                    <td>";
                 // line 465
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "error"), "message"), "html", null, true);
                 echo "</td>\n                    <td>\n                        ";
                 // line 467
                 if (twig_test_empty($this->getAttribute($this->getContext($context, "error"), "origin"))) {
                     // line 468
                     echo "                            <em>This form.</em>\n                        ";
                 } elseif (!$this->getAttribute($this->getContext($context, "forms_by_hash", true), $this->getAttribute($this->getContext($context, "error"), "origin"), array(), "array", true, true)) {
                     // line 470
                     echo "                            <em>Unknown.</em>\n                        ";
                 } else {
                     // line 472
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "forms_by_hash"), $this->getAttribute($this->getContext($context, "error"), "origin"), array(), "array"), "name"), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 474
                 echo "                    </td>\n                    <td>\n                        ";
                 // line 476
                 if (twig_test_empty($this->getAttribute($this->getContext($context, "error"), "cause"))) {
                     // line 477
                     echo "                            <em>Unknown.</em>\n                        ";
                 } elseif ($this->getAttribute($this->getAttribute($this->getContext($context, "error", true), "cause", array(), "any", false, true), "root", array(), "any", true, true)) {
                     // line 479
                     echo "                            <strong>Constraint Violation</strong><br/>\n                            <pre>";
                     // line 480
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "error"), "cause"), "root"), "html", null, true);
                     if (!twig_test_empty($this->getAttribute($this->getAttribute($this->getContext($context, "error"), "cause"), "path"))) {
                         if (twig_first($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "error"), "cause"), "path")) != "[") {
                             echo ".";
                         }
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "error"), "cause"), "path"), "html", null, true);
                     }
                     echo " = ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "error"), "cause"), "value"), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 482
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "error"), "cause"), "html", null, true);
                     echo "</pre>\n                        ";
                 }
                 // line 484
                 echo "                    </td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 487
             echo "            </table>\n        </div>\n        ";
         }
         // line 490
         echo "\n        ";
         // line 491
         if ($this->getAttribute($this->getContext($context, "data", true), "default_data", array(), "any", true, true)) {
             // line 492
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 493
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-default_data\" href=\"#\">\n                Default Data\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 499
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-default_data\">\n            <table>\n                <tr>\n                    <th width=\"180\">Model Format</th>\n                    <td>\n                        ";
             // line 504
             if ($this->getAttribute($this->getAttribute($this->getContext($context, "data", true), "default_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                 // line 505
                 echo "                            <pre>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "default_data"), "model"), "html", null, true);
                 echo "</pre>\n                        ";
             } else {
                 // line 507
                 echo "                            <em>same as normalized format</em>\n                        ";
             }
             // line 509
             echo "                    </td>\n                </tr>\n                <tr>\n                    <th>Normalized Format</th>\n                    <td><pre>";
             // line 513
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "default_data"), "norm"), "html", null, true);
             echo "</pre></td>\n                </tr>\n                <tr>\n                    <th>View Format</th>\n                    <td>\n                        ";
             // line 518
             if ($this->getAttribute($this->getAttribute($this->getContext($context, "data", true), "default_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                 // line 519
                 echo "                            <pre>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "default_data"), "view"), "html", null, true);
                 echo "</pre>\n                        ";
             } else {
                 // line 521
                 echo "                            <em>same as normalized format</em>\n                        ";
             }
             // line 523
             echo "                    </td>\n                </tr>\n            </table>\n        </div>\n        ";
         }
         // line 528
         echo "\n        ";
         // line 529
         if ($this->getAttribute($this->getContext($context, "data", true), "submitted_data", array(), "any", true, true)) {
             // line 530
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 531
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-submitted_data\" href=\"#\">\n                Submitted Data\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 537
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-submitted_data\">\n        ";
             // line 538
             if ($this->getAttribute($this->getAttribute($this->getContext($context, "data", true), "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) {
                 // line 539
                 echo "            <table>\n                <tr>\n                    <th width=\"180\">View Format</th>\n                    <td>\n                        ";
                 // line 543
                 if ($this->getAttribute($this->getAttribute($this->getContext($context, "data", true), "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                     // line 544
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "submitted_data"), "view"), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 546
                     echo "                            <em>same as normalized format</em>\n                        ";
                 }
                 // line 548
                 echo "                    </td>\n                </tr>\n                <tr>\n                    <th>Normalized Format</th>\n                    <td><pre>";
                 // line 552
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "submitted_data"), "norm"), "html", null, true);
                 echo "</pre></td>\n                </tr>\n                <tr>\n                    <th>Model Format</th>\n                    <td>\n                        ";
                 // line 557
                 if ($this->getAttribute($this->getAttribute($this->getContext($context, "data", true), "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                     // line 558
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "submitted_data"), "model"), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 560
                     echo "                            <em>same as normalized format</em>\n                        ";
                 }
                 // line 562
                 echo "                    </td>\n                </tr>\n            </table>\n        ";
             } else {
                 // line 566
                 echo "            <p><em>This form was not submitted.</em></p>\n        ";
             }
             // line 568
             echo "        </div>\n        ";
         }
         // line 570
         echo "\n        ";
         // line 571
         if ($this->getAttribute($this->getContext($context, "data", true), "passed_options", array(), "any", true, true)) {
             // line 572
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 573
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-passed_options\" href=\"#\">\n                Passed Options\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 579
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-passed_options\">\n            ";
             // line 580
             if (twig_length_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "passed_options"))) {
                 // line 581
                 echo "            <table>\n                <tr>\n                    <th width=\"180\">Option</th>\n                    <th>Passed Value</th>\n                    <th>Resolved Value</th>\n                </tr>\n                ";
                 // line 587
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "data"), "passed_options"));
                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                     // line 588
                     echo "                <tr>\n                    <th>";
                     // line 589
                     echo twig_escape_filter($this->env, $this->getContext($context, "option"), "html", null, true);
                     echo "</th>\n                    <td><pre>";
                     // line 590
                     echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
                     echo "</pre></td>\n                    <td>\n                        ";
                     // line 592
                     if ($this->getAttribute($this->getAttribute($this->getContext($context, "data"), "resolved_options"), $this->getContext($context, "option"), array(), "array") === $this->getContext($context, "value")) {
                         // line 593
                         echo "                            <em>same as passed value</em>\n                        ";
                     } else {
                         // line 595
                         echo "                            <pre>";
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getContext($context, "data"), "resolved_options"), $this->getContext($context, "option"), array(), "array"), "html", null, true);
                         echo "</pre>\n                        ";
                     }
                     // line 597
                     echo "                    </td>\n                </tr>\n                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 600
                 echo "            </table>\n            ";
             } else {
                 // line 602
                 echo "            <p><em>No options where passed when constructing this form.</em></p>\n            ";
             }
             // line 604
             echo "        </div>\n        ";
         }
         // line 606
         echo "\n        ";
         // line 607
         if ($this->getAttribute($this->getContext($context, "data", true), "resolved_options", array(), "any", true, true)) {
             // line 608
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 609
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-resolved_options\" href=\"#\">\n                Resolved Options\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 615
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-resolved_options\" class=\"hidden\">\n            <table>\n                <tr>\n                    <th width=\"180\">Option</th>\n                    <th>Value</th>\n                </tr>\n                ";
             // line 621
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "data"), "resolved_options"));
             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                 // line 622
                 echo "                <tr>\n                    <th>";
                 // line 623
                 echo twig_escape_filter($this->env, $this->getContext($context, "option"), "html", null, true);
                 echo "</th>\n                    <td><pre>";
                 // line 624
                 echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
                 echo "</pre></td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 627
             echo "            </table>\n        </div>\n        ";
         }
         // line 630
         echo "\n        ";
         // line 631
         if ($this->getAttribute($this->getContext($context, "data", true), "view_vars", array(), "any", true, true)) {
             // line 632
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 633
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-view_vars\" href=\"#\">\n                View Variables\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 639
             echo twig_escape_filter($this->env, $this->getAttribute($this->getContext($context, "data"), "id"), "html", null, true);
             echo "-view_vars\" class=\"hidden\">\n            <table>\n                <tr>\n                    <th width=\"180\">Variable</th>\n                    <th>Value</th>\n                </tr>\n                ";
             // line 645
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "data"), "view_vars"));
             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
                 // line 646
                 echo "                <tr>\n                    <th>";
                 // line 647
                 echo twig_escape_filter($this->env, $this->getContext($context, "variable"), "html", null, true);
                 echo "</th>\n                    <td><pre>";
                 // line 648
                 echo twig_escape_filter($this->env, $this->getContext($context, "value"), "html", null, true);
                 echo "</pre></td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 651
             echo "            </table>\n        </div>\n        ";
         }
         // line 654
         echo "    </div>\n\n    ";
         // line 656
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getContext($context, "data"), "children"));
         foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
             // line 657
             echo "        ";
             echo $this->getAttribute($this, "form_tree_details", array(0 => $this->getContext($context, "childName"), 1 => $this->getContext($context, "childData"), 2 => $this->getContext($context, "forms_by_hash")), "method");
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function getrender_table($__logs__ = null, $__show_level__ = false, $__is_deprecation__ = false)
 {
     $context = $this->env->mergeGlobals(array("logs" => $__logs__, "show_level" => $__show_level__, "is_deprecation" => $__is_deprecation__, "varargs" => func_num_args() > 3 ? array_slice(func_get_args(), 3) : array()));
     $blocks = array();
     ob_start();
     try {
         $__internal_894934c57482609cd2f4e9e64f1ea0d6e42ccb3d32879f9ecb5682127a1bdd9c = $this->env->getExtension("native_profiler");
         $__internal_894934c57482609cd2f4e9e64f1ea0d6e42ccb3d32879f9ecb5682127a1bdd9c->enter($__internal_894934c57482609cd2f4e9e64f1ea0d6e42ccb3d32879f9ecb5682127a1bdd9c_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
         // line 133
         echo "    ";
         $context["helper"] = $this;
         // line 134
         echo "    ";
         $context["channel_is_defined"] = $this->getAttribute(twig_first($this->env, isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs")), "channel", array(), "any", true, true);
         // line 135
         echo "\n    <table class=\"logs\">\n        <thead>\n            <tr>\n                <th>";
         // line 139
         echo isset($context["show_level"]) ? $context["show_level"] : $this->getContext($context, "show_level") ? "Level" : "Time";
         echo "</th>\n                ";
         // line 140
         if (isset($context["channel_is_defined"]) ? $context["channel_is_defined"] : $this->getContext($context, "channel_is_defined")) {
             echo "<th>Channel</th>";
         }
         // line 141
         echo "                <th>Message</th>\n            </tr>\n        </thead>\n\n        <tbody>\n            ";
         // line 146
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 147
             echo "                ";
             $context["css_class"] = isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation") ? "" : (twig_in_filter($this->getAttribute($context["log"], "priorityName", array()), array(0 => "CRITICAL", 1 => "ERROR", 2 => "ALERT", 3 => "EMERGENCY")) ? "status-error" : (twig_in_filter($this->getAttribute($context["log"], "priorityName", array()), array(0 => "NOTICE", 1 => "WARNING")) ? "status-warning" : ""));
             // line 151
             echo "                <tr class=\"";
             echo twig_escape_filter($this->env, isset($context["css_class"]) ? $context["css_class"] : $this->getContext($context, "css_class"), "html", null, true);
             echo "\">\n                    <td class=\"font-normal text-small\">\n                        ";
             // line 153
             if (isset($context["show_level"]) ? $context["show_level"] : $this->getContext($context, "show_level")) {
                 // line 154
                 echo "                            <span class=\"colored text-bold nowrap\">";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "priorityName", array()), "html", null, true);
                 echo "</span>\n                        ";
             }
             // line 156
             echo "                        <span class=\"text-muted nowrap newline\">";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, $this->getAttribute($context["log"], "timestamp", array()), "H:i:s"), "html", null, true);
             echo "</span>\n                    </td>\n\n                    ";
             // line 159
             if (isset($context["channel_is_defined"]) ? $context["channel_is_defined"] : $this->getContext($context, "channel_is_defined")) {
                 // line 160
                 echo "                        <td class=\"font-normal text-small text-bold nowrap\">";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["log"], "channel", array()), "html", null, true);
                 echo "</td>\n                    ";
             }
             // line 162
             echo "\n                    <td class=\"font-normal\">";
             // line 163
             echo $context["helper"]->getrender_log_message($this->getAttribute($context["loop"], "index", array()), $context["log"], isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation"));
             echo "</td>\n                </tr>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 166
         echo "        </tbody>\n    </table>\n";
         $__internal_894934c57482609cd2f4e9e64f1ea0d6e42ccb3d32879f9ecb5682127a1bdd9c->leave($__internal_894934c57482609cd2f4e9e64f1ea0d6e42ccb3d32879f9ecb5682127a1bdd9c_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8 = $this->env->getExtension("native_profiler");
     $__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8->enter($__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "DoctrineBundle:Collector:explain.html.twig"));
     // line 1
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")) > 1) {
         // line 2
         echo "    ";
         // line 3
         echo "    <table style=\"margin: 5px 0;\">\n        <thead>\n            <tr>\n                ";
         // line 6
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")));
         foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
             // line 7
             echo "                    <th>";
             echo twig_escape_filter($this->env, $context["label"], "html", null, true);
             echo "</th>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 9
         echo "            </tr>\n        </thead>\n        <tbody>\n            ";
         // line 12
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 13
             echo "            <tr>\n                ";
             // line 14
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["row"]);
             foreach ($context['_seq'] as $context["key"] => $context["item"]) {
                 // line 15
                 echo "                    <td>";
                 echo twig_escape_filter($this->env, twig_replace_filter($context["item"], array("," => ", ")), "html", null, true);
                 echo "</td>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 17
             echo "            </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 19
         echo "        </tbody>\n    </table>\n";
     } else {
         // line 22
         echo "    ";
         // line 23
         echo "    <pre style=\"margin: 5px 0;\">";
         // line 24
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 25
             echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true);
             echo "\n";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 27
         echo "</pre>\n";
     }
     $__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8->leave($__internal_091399f3bbd64d2b3cad8091de389c4fbb06bc591d3e67eb9ae2ac076ddcb9e8_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<div class=\"list-item\">\n\n    <div class=\"list-blog-header\">\n        <span class=\"list-blog-date\">\n            <span>";
     // line 5
     echo twig_date_format_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "date", array()), "d");
     echo "</span>\n            <em>";
     // line 6
     echo twig_date_format_filter($this->env, $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "date", array()), "M");
     echo "</em>\n        </span>\n        ";
     // line 8
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array())) {
         // line 9
         echo "            <h4>\n                ";
         // line 10
         if (!($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "continue_link", array()) === false)) {
             // line 11
             echo "                <a href=\"";
             echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "url", array());
             echo "\"><i class=\"fa fa-angle-double-right\"></i></a>\n                ";
         }
         // line 13
         echo "                <a href=\"";
         echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "link", array());
         echo "\">";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "title", array());
         echo "</a>\n            </h4>\n        ";
     } else {
         // line 16
         echo "            <h4><a href=\"";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "url", array());
         echo "\">";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "title", array());
         echo "</a></h4>\n        ";
     }
     // line 18
     echo "\n        ";
     // line 19
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "taxonomy", array()), "tag", array())) {
         // line 20
         echo "        <span class=\"tags\">\n            ";
         // line 21
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "taxonomy", array()), "tag", array()));
         foreach ($context['_seq'] as $context["_key"] => $context["tag"]) {
             // line 22
             echo "            <a href=\"";
             echo $this->getAttribute(isset($context["blog"]) ? $context["blog"] : null, "url", array());
             echo "/tag";
             echo $this->getAttribute($this->getAttribute(isset($context["config"]) ? $context["config"] : null, "system", array()), "param_sep", array());
             echo $context["tag"];
             echo "\">";
             echo $context["tag"];
             echo "</a>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['tag'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 24
         echo "        </span>\n        ";
     }
     // line 26
     echo "        ";
     if (isset($context["big_header"]) ? $context["big_header"] : null) {
         // line 27
         echo "            ";
         echo $this->getAttribute($this->getAttribute(twig_first($this->env, $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "media", array()), "images", array())), "cropResize", array(0 => 900, 1 => 600), "method"), "html", array());
         echo "\n        ";
     } else {
         // line 29
         echo "            ";
         echo $this->getAttribute($this->getAttribute(twig_first($this->env, $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "media", array()), "images", array())), "cropZoom", array(0 => 900, 1 => 300), "method"), "html", array());
         echo "\n        ";
     }
     // line 31
     echo "\n    </div>\n\n    <div class=\"list-blog-padding\">\n\n    ";
     // line 36
     if ($this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "header", array()), "continue_link", array()) === false) {
         // line 37
         echo "        <p>";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array());
         echo "</p>\n        ";
         // line 38
         if (!(isset($context["truncate"]) ? $context["truncate"] : null)) {
             // line 39
             echo "        ";
             $context["show_prev_next"] = true;
             // line 40
             echo "        ";
         }
         // line 41
         echo "    ";
     } elseif ((isset($context["truncate"]) ? $context["truncate"] : null) && $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "summary", array()) != $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array())) {
         // line 42
         echo "        <p>";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "summary", array());
         echo "</p>\n        <p><a href=\"";
         // line 43
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "url", array());
         echo "\">Continue Reading...</a></p>\n    ";
     } elseif (isset($context["truncate"]) ? $context["truncate"] : null) {
         // line 45
         echo "        ";
         if ($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "summary", array()) != $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array())) {
             // line 46
             echo "            <p>";
             echo $this->env->getExtension('GravTwigExtension')->truncateFilter($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array()), 550);
             echo "</p>\n        ";
         } else {
             // line 48
             echo "            <p>";
             echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array());
             echo "</p>\n        ";
         }
         // line 50
         echo "        <p><a href=\"";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "url", array());
         echo "\">Continue Reading...</a></p>\n    ";
     } else {
         // line 52
         echo "        <p>";
         echo $this->getAttribute(isset($context["page"]) ? $context["page"] : null, "content", array());
         echo "</p>\n        ";
         // line 53
         $context["show_prev_next"] = true;
         // line 54
         echo "    ";
     }
     // line 55
     echo "\n    ";
     // line 56
     if (isset($context["show_prev_next"]) ? $context["show_prev_next"] : null) {
         // line 57
         echo "\n        <p class=\"prev-next\">\n            ";
         // line 59
         if (!$this->getAttribute(isset($context["page"]) ? $context["page"] : null, "isFirst", array())) {
             // line 60
             echo "                <a class=\"button\" href=\"";
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "nextSibling", array()), "url", array());
             echo "\"><i class=\"fa fa-chevron-left\"></i> Next Post</a>\n            ";
         }
         // line 62
         echo "\n            ";
         // line 63
         if (!$this->getAttribute(isset($context["page"]) ? $context["page"] : null, "isLast", array())) {
             // line 64
             echo "                <a class=\"button\" href=\"";
             echo $this->getAttribute($this->getAttribute(isset($context["page"]) ? $context["page"] : null, "prevSibling", array()), "url", array());
             echo "\">Previous Post <i class=\"fa fa-chevron-right\"></i></a>\n            ";
         }
         // line 66
         echo "        </p>\n    ";
     }
     // line 68
     echo "\n    </div>\n</div>\n";
 }
 public function block_form_errors($context, array $blocks = array())
 {
     // line 316
     echo "    ";
     $context["error_count"] = twig_length_filter($this->env, isset($context["errors"]) ? $context["errors"] : null);
     // line 317
     echo "    ";
     if ((isset($context["error_count"]) ? $context["error_count"] : null) >= 1) {
         // line 318
         echo "        <div class=\"error-block\">\n            <span class=\"label label-danger\">";
         // line 319
         echo twig_escape_filter($this->env, $this->env->getExtension('translator')->transchoice("errors", isset($context["error_count"]) ? $context["error_count"] : null, array(), "EasyAdminBundle"), "html", null, true);
         echo "</span>\n            ";
         // line 320
         if ((isset($context["error_count"]) ? $context["error_count"] : null) == 1) {
             // line 321
             echo "                ";
             echo twig_escape_filter($this->env, $this->getAttribute(twig_first($this->env, isset($context["errors"]) ? $context["errors"] : null), "message", array()), "html", null, true);
             echo "\n            ";
         } else {
             // line 323
             echo "                <ul>\n                    ";
             // line 324
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(isset($context["errors"]) ? $context["errors"] : null);
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 325
                 echo "                        <li>";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", array()), "html", null, true);
                 echo "</li>\n                    ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 327
             echo "                </ul>\n            ";
         }
         // line 329
         echo "        </div>\n    ";
     }
 }
 public function block_content($context, array $blocks = array())
 {
     // line 18
     echo "<form action=\"\" method=\"post\">\n    ";
     // line 19
     if ($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "timeUnavailable", array(), "any", true, true)) {
         // line 20
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "timeUnavailable", array()), "html", null, true);
         echo "</span><br>\n    ";
     }
     // line 22
     echo "    ";
     // line 23
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "employee_id", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 24
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 26
     echo "    ";
     if (twig_test_iterable(isset($context["creator"]) ? $context["creator"] : null)) {
         // line 27
         echo "        <select name=\"employee_id\" class=\"input\">\n            ";
         // line 28
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["creator"]) ? $context["creator"] : null);
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["person"]) {
             // line 29
             echo "                ";
             if ($this->getAttribute($context["loop"], "first", array())) {
                 // line 30
                 echo "                    <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "id", array()), "html", null, true);
                 echo "\"";
                 if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "employee_id", array()) == $this->getAttribute($context["person"], "id", array())) {
                     echo " selected";
                 }
                 echo ">Me</option>\n                ";
             } else {
                 // line 32
                 echo "                    <option value=\"";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "id", array()), "html", null, true);
                 echo "\"";
                 if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "employee_id", array()) == $this->getAttribute($context["person"], "id", array())) {
                     echo " selected";
                 }
                 echo ">";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "last_name", array()), "html", null, true);
                 echo ", ";
                 echo twig_escape_filter($this->env, $this->getAttribute($context["person"], "first_name", array()), "html", null, true);
                 if (!twig_test_empty($this->getAttribute($context["person"], "middle_name", array()))) {
                     echo " ";
                     echo twig_escape_filter($this->env, twig_first($this->env, $this->getAttribute($context["person"], "middle_name", array())), "html", null, true);
                     echo ".";
                 }
                 echo "</option>\n                ";
             }
             // line 34
             echo "            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['person'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 35
         echo "        </select><br>\n    ";
     } else {
         // line 37
         echo "        <input type=\"hidden\" name=\"employee_id\" value=\"";
         echo twig_escape_filter($this->env, isset($context["creator"]) ? $context["creator"] : null, "html", null, true);
         echo "\">\n    ";
     }
     // line 39
     echo "    ";
     // line 40
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "date", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 41
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 43
     echo "    <label for=\"datepicker\">Date:</label><br>\n    <input type=\"text\" name=\"date\" id=\"datepicker\" class=\"input\" value=\"";
     // line 44
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "date", array()), "html", null, true);
     echo "\" placeholder=\"Click to pick\"><br>\n    ";
     // line 46
     echo "    <label>Time:</label><br>\n    ";
     // line 48
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "time_start", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 49
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 51
     echo "    <input type=\"text\" name=\"time_start\" class=\"input\" value=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "time_start", array()), "html", null, true);
     echo "\" id=\"timepicker-start\" placeholder=\"Click to pick\">\n    <label for=\"timepicker-start\">start</label><br>\n    ";
     // line 54
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "time_end", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 55
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 57
     echo "    <input type=\"text\" name=\"time_end\" class=\"input\" value=\"";
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "time_end", array()), "html", null, true);
     echo "\" id=\"timepicker-end\" placeholder=\"Click to pick\">\n    <label for=\"timepicker-end\">end</label><br>\n    ";
     // line 60
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "notes", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 61
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 63
     echo "    <label for=\"notes\">Notes:</label><br>\n    <textarea name=\"notes\" class=\"input\" id=\"notes\">";
     // line 64
     echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "notes", array()), "html", null, true);
     echo "</textarea><br>\n    ";
     // line 66
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "recurrence", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 67
         echo "        <span class=\"error\">";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 69
     echo "    <label>Recurrence:</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"0\" checked=\"checked\" id=\"rec_none\">\n    <label for=\"rec_none\" class=\"css-label\">none</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"1\" id=\"rec_weekly\" ";
     // line 72
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrence", array()) == 1) {
         echo "checked=\"checked\"";
     }
     echo ">\n    <label for=\"rec_weekly\" class=\"css-label\">weekly</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"2\" id=\"rec_bi-weekly\" ";
     // line 74
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrence", array()) == 2) {
         echo "checked=\"checked\"";
     }
     echo ">\n    <label for=\"rec_bi-weekly\" class=\"css-label\">bi-weekly</label><br>\n    <input type=\"radio\" class=\"css-checkbox\" name=\"recurrence\" value=\"3\" id=\"rec_monthly\" ";
     // line 76
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "recurrence", array()) == 3) {
         echo "checked=\"checked\"";
     }
     echo ">\n    <label for=\"rec_monthly\" class=\"css-label\">monthly</label><br>\n    ";
     // line 79
     echo "    ";
     $context['_parent'] = (array) $context;
     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["errors"]) ? $context["errors"] : null, "duration", array()));
     foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
         // line 80
         echo "        <span class=\"error\">Error in \"Duration\" field: ";
         echo twig_escape_filter($this->env, $context["error"], "html", null, true);
         echo "</span><br>\n    ";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
     // line 82
     echo "    ";
     if ($this->getAttribute(isset($context["values"]) ? $context["values"] : null, "duration", array())) {
         // line 83
         echo "        <input type=\"hidden\" class=\"input\" id=\"duration_value\" value=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["values"]) ? $context["values"] : null, "duration", array()), "html", null, true);
         echo "\">\n    ";
     }
     // line 85
     echo "    <input type=\"hidden\" name=\"token\" value=\"";
     echo twig_escape_filter($this->env, isset($context["token"]) ? $context["token"] : null, "html", null, true);
     echo "\">\n    ";
     // line 87
     echo "    <input type=\"submit\" class=\"submit\">\n</form>\n";
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("set" => 29, "for" => 44, "if" => 54);
     $filters = array("t" => 30, "length" => 57, "first" => 64);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('set', 'for', 'if'), array('t', 'length', 'first'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 29
     $context["status_heading"] = array("status" => t("Status message"), "error" => t("Error message"), "warning" => t("Warning message"), "info" => t("Informative message"));
     // line 37
     $context["status_classes"] = array("status" => "success", "error" => "danger", "warning" => "warning", "info" => "info");
     // line 44
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["message_list"]) ? $context["message_list"] : null);
     foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
         // line 46
         $context["classes"] = array(0 => "alert", 1 => "alert-" . $this->getAttribute(isset($context["status_classes"]) ? $context["status_classes"] : null, $context["type"], array(), "array"), 2 => "alert-dismissible");
         // line 52
         echo "<div";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "html", null, true));
         echo " role=\"alert\">\n  <button type=\"button\" class=\"close\" data-dismiss=\"alert\" aria-label=\"Close\"><span aria-hidden=\"true\">&times;</span></button>\n  ";
         // line 54
         if ($this->getAttribute(isset($context["status_headings"]) ? $context["status_headings"] : null, $context["type"], array(), "array")) {
             // line 55
             echo "    <h4 class=\"sr-only\">";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["status_headings"]) ? $context["status_headings"] : null, $context["type"], array(), "array"), "html", null, true));
             echo "</h4>\n  ";
         }
         // line 57
         echo "  ";
         if (twig_length_filter($this->env, $context["messages"]) > 1) {
             // line 58
             echo "    <ul class=\"item-list item-list--messages\">\n      ";
             // line 59
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["messages"]);
             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                 // line 60
                 echo "        <li class=\"item item--message\">";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["message"], "html", null, true));
                 echo "</li>\n      ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 62
             echo "    </ul>\n  ";
         } else {
             // line 64
             echo "    ";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_first($this->env, $context["messages"]), "html", null, true));
             echo "\n  ";
         }
         // line 66
         echo "</div>\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $tags = array("for" => 28, "set" => 30, "if" => 37);
     $filters = array("length" => 45, "first" => 52);
     $functions = array();
     try {
         $this->env->getExtension('sandbox')->checkSecurity(array('for', 'set', 'if'), array('length', 'first'), array());
     } catch (Twig_Sandbox_SecurityError $e) {
         $e->setTemplateFile($this->getTemplateName());
         if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
             $e->setTemplateLine($tags[$e->getTagName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
             $e->setTemplateLine($filters[$e->getFilterName()]);
         } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
             $e->setTemplateLine($functions[$e->getFunctionName()]);
         }
         throw $e;
     }
     // line 28
     $context['_parent'] = $context;
     $context['_seq'] = twig_ensure_traversable(isset($context["message_list"]) ? $context["message_list"] : null);
     foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
         // line 29
         echo "  ";
         // line 30
         $context["classes"] = array(0 => "messages", 1 => "messages--" . $context["type"]);
         // line 35
         echo "  <div class=\"";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "addClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "class", array()), "html", null, true));
         echo "\" role=\"contentinfo\" aria-label=\"";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["status_headings"]) ? $context["status_headings"] : null, $context["type"], array(), "array"), "html", null, true));
         echo "\">\n\n    <div class=\"messages__container\"";
         // line 37
         if ($context["type"] == "error") {
             echo " role=\"alert\"";
         }
         echo ">\n\n      ";
         // line 39
         if ($this->getAttribute(isset($context["status_headings"]) ? $context["status_headings"] : null, $context["type"], array(), "array")) {
             // line 40
             echo "        <h2 class=\"visually-hidden\">";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["status_headings"]) ? $context["status_headings"] : null, $context["type"], array(), "array"), "html", null, true));
             echo "</h2>\n      ";
         }
         // line 42
         echo "\n      <span class=\"icon icon-";
         // line 43
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["type"], "html", null, true));
         echo "\" aria-hidden=\"true\"></span>\n\n      ";
         // line 45
         if (twig_length_filter($this->env, $context["messages"]) > 1) {
             // line 46
             echo "        <ul class=\"messages__list\">\n          ";
             // line 47
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["messages"]);
             foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                 // line 48
                 echo "            <li class=\"messages__item\">";
                 echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["message"], "html", null, true));
                 echo "</li>\n          ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 50
             echo "        </ul>\n      ";
         } else {
             // line 52
             echo "        <div class=\"messages__list\">";
             echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_first($this->env, $context["messages"]), "html", null, true));
             echo "</div>\n      ";
         }
         // line 54
         echo "\n    </div>\n\n  </div>\n  ";
         // line 59
         echo "  ";
         echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute(isset($context["attributes"]) ? $context["attributes"] : null, "removeClass", array(0 => isset($context["classes"]) ? $context["classes"] : null), "method"), "html", null, true));
         echo "\n";
     }
     $_parent = $context['_parent'];
     unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
     $context = array_intersect_key($context, $_parent) + $_parent;
 }
 public function block_panel($context, array $blocks = array())
 {
     $__internal_6664b02bc3841ca31ecd770e83d059e222953994e197eb0ce80ca8024533ab5a = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
     $__internal_6664b02bc3841ca31ecd770e83d059e222953994e197eb0ce80ca8024533ab5a->enter($__internal_6664b02bc3841ca31ecd770e83d059e222953994e197eb0ce80ca8024533ab5a_prof = new Twig_Profiler_Profile($this->getTemplateName(), "block", "panel"));
     // line 64
     echo "    <h2>Security Token</h2>\n\n    ";
     // line 66
     if ($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "tokenClass", array())) {
         // line 67
         echo "        <div class=\"metrics\">\n            <div class=\"metric\">\n                <span class=\"value\">";
         // line 69
         echo twig_escape_filter($this->env, $this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "user", array()) == "anon." ? "Anonymous" : $this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "user", array()), "html", null, true);
         echo "</span>\n                <span class=\"label\">Username</span>\n            </div>\n\n            <div class=\"metric\">\n                <span class=\"value\">";
         // line 74
         echo twig_include($this->env, $context, "@WebProfiler/Icon/" . ($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "authenticated", array()) ? "yes" : "no") . ".svg");
         echo "</span>\n                <span class=\"label\">Authenticated</span>\n            </div>\n        </div>\n\n        <table>\n            <thead>\n                <tr>\n                    <th scope=\"col\" class=\"key\">Property</th>\n                    <th scope=\"col\">Value</th>\n                </tr>\n            </thead>\n            <tbody>\n                <tr>\n                    <th>Roles</th>\n                    <td>\n                        ";
         // line 90
         echo twig_escape_filter($this->env, twig_test_empty($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "roles", array())) ? "none" : $this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\YamlExtension')->encode($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "roles", array())), "html", null, true);
         echo "\n\n                        ";
         // line 92
         if (!$this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "authenticated", array()) && twig_test_empty($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "roles", array()))) {
             // line 93
             echo "                            <p class=\"help\">User is not authenticated probably because they have no roles.</p>\n                        ";
         }
         // line 95
         echo "                    </td>\n                </tr>\n\n                ";
         // line 98
         if ($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "supportsRoleHierarchy", array())) {
             // line 99
             echo "                <tr>\n                    <th>Inherited Roles</th>\n                    <td>";
             // line 101
             echo twig_escape_filter($this->env, twig_test_empty($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "inheritedRoles", array())) ? "none" : $this->env->getExtension('Symfony\\Bridge\\Twig\\Extension\\YamlExtension')->encode($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "inheritedRoles", array())), "html", null, true);
             echo "</td>\n                </tr>\n                ";
         }
         // line 104
         echo "\n                ";
         // line 105
         if ($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "tokenClass", array())) {
             // line 106
             echo "                <tr>\n                    <th>Token class</th>\n                    <td>";
             // line 108
             echo twig_escape_filter($this->env, $this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "tokenClass", array()), "html", null, true);
             echo "</td>\n                </tr>\n                ";
         }
         // line 111
         echo "            </tbody>\n        </table>\n    ";
     } elseif ($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "enabled", array())) {
         // line 114
         echo "        <div class=\"empty\">\n            <p>There is no security token.</p>\n        </div>\n    ";
     } else {
         // line 118
         echo "        <div class=\"empty\">\n            <p>The security component is disabled.</p>\n        </div>\n    ";
     }
     // line 122
     echo "\n    ";
     // line 123
     if (!twig_test_empty($this->getAttribute($context["collector"] ?? null, "voters", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["collector"] ?? null, "voters", array()), array()) : array())) {
         // line 124
         echo "        <h2>Security Voters <small>(";
         echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "voters", array())), "html", null, true);
         echo ")</small></h2>\n\n        <div class=\"metrics\">\n            <div class=\"metric\">\n                <span class=\"value\">";
         // line 128
         echo twig_escape_filter($this->env, $this->getAttribute($context["collector"] ?? null, "voterStrategy", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["collector"] ?? null, "voterStrategy", array()), "unknown") : "unknown", "html", null, true);
         echo "</span>\n                <span class=\"label\">Strategy</span>\n            </div>\n        </div>\n\n        <table class=\"voters\">\n            <thead>\n                <tr>\n                    <th>#</th>\n                    <th>Voter class</th>\n                </tr>\n            </thead>\n\n            <tbody>\n                ";
         // line 142
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "voters", array()));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["voter"]) {
             // line 143
             echo "                    <tr>\n                        <td class=\"font-normal text-small text-muted nowrap\">";
             // line 144
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo "</td>\n                        <td class=\"font-normal\">";
             // line 145
             echo twig_escape_filter($this->env, $context["voter"], "html", null, true);
             echo "</td>\n                    </tr>\n                ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['voter'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 148
         echo "            </tbody>\n        </table>\n    ";
     }
     // line 151
     echo "\n    ";
     // line 152
     if (!twig_test_empty($this->getAttribute($context["collector"] ?? null, "accessDecisionLog", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["collector"] ?? null, "accessDecisionLog", array()), array()) : array())) {
         // line 153
         echo "        <h2>Access decision log</h2>\n\n        <table class=\"decision-log\">\n            <col style=\"width: 30px\">\n            <col style=\"width: 120px\">\n            <col style=\"width: 25%\">\n            <col style=\"width: 60%\">\n\n            <thead>\n                <tr>\n                    <th>#</th>\n                    <th>Result</th>\n                    <th>Attributes</th>\n                    <th>Object</th>\n                </tr>\n            </thead>\n\n            <tbody>\n                ";
         // line 171
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["collector"] ?? $this->getContext($context, "collector"), "accessDecisionLog", array()));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["decision"]) {
             // line 172
             echo "                    <tr>\n                        <td class=\"font-normal text-small text-muted nowrap\">";
             // line 173
             echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
             echo "</td>\n                        <td class=\"font-normal\">\n                            ";
             // line 175
             echo $this->getAttribute($context["decision"], "result", array()) ? "<span class=\"label status-success same-width\">GRANTED</span>" : "<span class=\"label status-error same-width\">DENIED</span>";
             // line 178
             echo "\n                        </td>\n                        <td>";
             // line 180
             echo twig_escape_filter($this->env, twig_length_filter($this->env, $this->getAttribute($context["decision"], "attributes", array())) == 1 ? twig_first($this->env, $this->getAttribute($context["decision"], "attributes", array())) : $this->env->getExtension('Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension')->dumpValue($this->getAttribute($context["decision"], "attributes", array())), "html", null, true);
             echo "</td>\n                        <td>";
             // line 181
             echo twig_escape_filter($this->env, $this->env->getExtension('Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension')->dumpValue($this->getAttribute($context["decision"], "object", array())), "html", null, true);
             echo "</td>\n                    </tr>\n                ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['decision'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 184
         echo "            </tbody>\n        </table>\n    ";
     }
     $__internal_6664b02bc3841ca31ecd770e83d059e222953994e197eb0ce80ca8024533ab5a->leave($__internal_6664b02bc3841ca31ecd770e83d059e222953994e197eb0ce80ca8024533ab5a_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     echo "<strong>Explanation:</strong>\n\n";
     // line 3
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")) > 1) {
         // line 4
         echo "    ";
         // line 5
         echo "    <table style=\"margin: 5px 0;\">\n        <thead>\n            <tr>\n                ";
         // line 8
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")));
         foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
             // line 9
             echo "                    <th>";
             echo twig_escape_filter($this->env, $context["label"], "html", null, true);
             echo "</th>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 11
         echo "            </tr>\n        </thead>\n        <tbody>\n            ";
         // line 14
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 15
             echo "            <tr>\n                ";
             // line 16
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($context["row"]);
             foreach ($context['_seq'] as $context["key"] => $context["item"]) {
                 // line 17
                 echo "                    <td>";
                 echo twig_escape_filter($this->env, strtr($context["item"], array("," => ", ")), "html", null, true);
                 echo "</td>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 19
             echo "            </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 21
         echo "        </tbody>\n    </table>\n";
     } else {
         // line 24
         echo "    ";
         // line 25
         echo "    <pre style=\"margin: 5px 0;\">";
         // line 26
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 27
             echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true);
             echo "\n";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 29
         echo "</pre>\n";
     }
 }
Example #17
0
 public function testTwigFirst()
 {
     $twig = new Twig_Environment($this->getMock('Twig_LoaderInterface'));
     $this->assertEquals('a', twig_first($twig, 'abc'));
     $this->assertEquals(1, twig_first($twig, array(1, 2, 3)));
     $this->assertSame('', twig_first($twig, null));
     $this->assertSame('', twig_first($twig, ''));
 }
 public function getform_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "forms_by_hash" => $__forms_by_hash__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_11b2f709c8e569fa72a3f46968113cc4941e80e134f69c34fddd426f7ae6a2aa = $this->env->getExtension("Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension");
         $__internal_11b2f709c8e569fa72a3f46968113cc4941e80e134f69c34fddd426f7ae6a2aa->enter($__internal_11b2f709c8e569fa72a3f46968113cc4941e80e134f69c34fddd426f7ae6a2aa_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "form_tree_details"));
         // line 454
         echo "    ";
         $context["tree"] = $this;
         // line 455
         echo "    <div class=\"tree-details\" ";
         if ($this->getAttribute($context["data"] ?? null, "id", array(), "any", true, true)) {
             echo "id=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-details\"";
         }
         echo ">\n        <h2>\n            ";
         // line 457
         echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter($context["name"] ?? $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true);
         echo "\n            ";
         // line 458
         if ($this->getAttribute($context["data"] ?? null, "type_class", array(), "any", true, true) && $this->getAttribute($context["data"] ?? null, "type", array(), "any", true, true)) {
             // line 459
             echo "            <span class=\"form-type\">[<abbr title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "type_class", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "type", array()), "html", null, true);
             echo "</abbr>]</span>\n            ";
         }
         // line 461
         echo "        </h2>\n\n        ";
         // line 463
         if ($this->getAttribute($context["data"] ?? null, "errors", array(), "any", true, true) && twig_length_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "errors", array())) > 0) {
             // line 464
             echo "        <div class=\"errors\">\n            <h3>\n                <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 466
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\" href=\"#\">\n                    Errors <span class=\"toggle-icon\"></span>\n                </a>\n            </h3>\n\n            <table id=\"";
             // line 471
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\">\n                <thead>\n                    <tr>\n                        <th>Message</th>\n                        <th>Origin</th>\n                        <th>Cause</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 480
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "errors", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 481
                 echo "                <tr>\n                    <td>";
                 // line 482
                 echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", array()), "html", null, true);
                 echo "</td>\n                    <td>\n                        ";
                 // line 484
                 if (twig_test_empty($this->getAttribute($context["error"], "origin", array()))) {
                     // line 485
                     echo "                            <em>This form.</em>\n                        ";
                 } elseif (!$this->getAttribute($context["forms_by_hash"] ?? null, $this->getAttribute($context["error"], "origin", array()), array(), "array", true, true)) {
                     // line 487
                     echo "                            <em>Unknown.</em>\n                        ";
                 } else {
                     // line 489
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["forms_by_hash"] ?? $this->getContext($context, "forms_by_hash"), $this->getAttribute($context["error"], "origin", array()), array(), "array"), "name", array()), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 491
                 echo "                    </td>\n                    <td>\n                        ";
                 // line 493
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["error"], "trace", array()));
                 $context['_iterated'] = false;
                 $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                 if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                     $length = count($context['_seq']);
                     $context['loop']['revindex0'] = $length - 1;
                     $context['loop']['revindex'] = $length;
                     $context['loop']['length'] = $length;
                     $context['loop']['last'] = 1 === $length;
                 }
                 foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
                     // line 494
                     echo "                            ";
                     if (!$this->getAttribute($context["loop"], "first", array())) {
                         // line 495
                         echo "                                <span class=\"newline\">Caused by:</span>\n                            ";
                     }
                     // line 497
                     echo "\n                            ";
                     // line 498
                     if ($this->getAttribute($context["trace"], "root", array(), "any", true, true)) {
                         // line 499
                         echo "                                <strong class=\"newline\">";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "class", array()), "html", null, true);
                         echo "</strong>\n                                <pre>";
                         // line 501
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "root", array()), "html", null, true);
                         // line 502
                         if (!twig_test_empty($this->getAttribute($context["trace"], "path", array()))) {
                             // line 503
                             if (twig_first($this->env, $this->getAttribute($context["trace"], "path", array())) != "[") {
                                 echo ".";
                             }
                             // line 504
                             echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "path", array()), "html", null, true);
                         }
                         // line 505
                         echo " = ";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "value", array()), "html", null, true);
                         // line 506
                         echo "</pre>\n                            ";
                     } elseif ($this->getAttribute($context["trace"], "message", array(), "any", true, true)) {
                         // line 508
                         echo "                                <strong class=\"newline\">";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "class", array()), "html", null, true);
                         echo "</strong>\n                                <pre>";
                         // line 509
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "message", array()), "html", null, true);
                         echo "</pre>\n                            ";
                     } else {
                         // line 511
                         echo "                                <pre>";
                         echo twig_escape_filter($this->env, $context["trace"], "html", null, true);
                         echo "</pre>\n                            ";
                     }
                     // line 513
                     echo "                        ";
                     $context['_iterated'] = true;
                     ++$context['loop']['index0'];
                     ++$context['loop']['index'];
                     $context['loop']['first'] = false;
                     if (isset($context['loop']['length'])) {
                         --$context['loop']['revindex0'];
                         --$context['loop']['revindex'];
                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                     }
                 }
                 if (!$context['_iterated']) {
                     // line 514
                     echo "                            <em>Unknown.</em>\n                        ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 516
                 echo "                    </td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 519
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 523
         echo "\n        ";
         // line 524
         if ($this->getAttribute($context["data"] ?? null, "default_data", array(), "any", true, true)) {
             // line 525
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 526
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\" href=\"#\">\n                Default Data <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 531
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Property</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Model Format</th>\n                        <td>\n                            ";
             // line 543
             if ($this->getAttribute($this->getAttribute($context["data"] ?? null, "default_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                 // line 544
                 echo "                                ";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "default_data", array()), "model", array()), "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 546
                 echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
             }
             // line 548
             echo "                        </td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n                        <td>";
             // line 552
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "default_data", array()), "norm", array()), "html", null, true);
             echo "</td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">View Format</th>\n                        <td>\n                            ";
             // line 557
             if ($this->getAttribute($this->getAttribute($context["data"] ?? null, "default_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                 // line 558
                 echo "                                ";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "default_data", array()), "view", array()), "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 560
                 echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
             }
             // line 562
             echo "                        </td>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 568
         echo "\n        ";
         // line 569
         if ($this->getAttribute($context["data"] ?? null, "submitted_data", array(), "any", true, true)) {
             // line 570
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 571
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\" href=\"#\">\n                Submitted Data <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 576
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\">\n        ";
             // line 577
             if ($this->getAttribute($this->getAttribute($context["data"] ?? null, "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) {
                 // line 578
                 echo "            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Property</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">View Format</th>\n                        <td>\n                            ";
                 // line 589
                 if ($this->getAttribute($this->getAttribute($context["data"] ?? null, "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                     // line 590
                     echo "                                ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "submitted_data", array()), "view", array()), "html", null, true);
                     echo "\n                            ";
                 } else {
                     // line 592
                     echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
                 }
                 // line 594
                 echo "                        </td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n                        <td>";
                 // line 598
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "submitted_data", array()), "norm", array()), "html", null, true);
                 echo "</td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Model Format</th>\n                        <td>\n                            ";
                 // line 603
                 if ($this->getAttribute($this->getAttribute($context["data"] ?? null, "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                     // line 604
                     echo "                                ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "submitted_data", array()), "model", array()), "html", null, true);
                     echo "\n                            ";
                 } else {
                     // line 606
                     echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
                 }
                 // line 608
                 echo "                        </td>\n                    </tr>\n                </tbody>\n            </table>\n        ";
             } else {
                 // line 613
                 echo "            <div class=\"empty\">\n                <p>This form was not submitted.</p>\n            </div>\n        ";
             }
             // line 617
             echo "        </div>\n        ";
         }
         // line 619
         echo "\n        ";
         // line 620
         if ($this->getAttribute($context["data"] ?? null, "passed_options", array(), "any", true, true)) {
             // line 621
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 622
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\" href=\"#\">\n                Passed Options <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 627
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\">\n            ";
             // line 628
             if (twig_length_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "passed_options", array()))) {
                 // line 629
                 echo "            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Option</th>\n                        <th>Passed Value</th>\n                        <th>Resolved Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
                 // line 638
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "passed_options", array()));
                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                     // line 639
                     echo "                <tr>\n                    <th>";
                     // line 640
                     echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                     echo "</th>\n                    <td>";
                     // line 641
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "</td>\n                    <td>\n                        ";
                     // line 643
                     if ($this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array") === $context["value"]) {
                         // line 644
                         echo "                            <em class=\"font-normal text-muted\">same as passed value</em>\n                        ";
                     } else {
                         // line 646
                         echo "                            ";
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array"), "html", null, true);
                         echo "\n                        ";
                     }
                     // line 648
                     echo "                    </td>\n                </tr>\n                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 651
                 echo "                </tbody>\n            </table>\n            ";
             } else {
                 // line 654
                 echo "                <div class=\"empty\">\n                    <p>No options where passed when constructing this form.</p>\n                </div>\n            ";
             }
             // line 658
             echo "        </div>\n        ";
         }
         // line 660
         echo "\n        ";
         // line 661
         if ($this->getAttribute($context["data"] ?? null, "resolved_options", array(), "any", true, true)) {
             // line 662
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 663
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" href=\"#\">\n                Resolved Options <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 668
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" class=\"hidden\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Option</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 677
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "resolved_options", array()));
             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                 // line 678
                 echo "                <tr>\n                    <th scope=\"row\">";
                 // line 679
                 echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                 echo "</th>\n                    <td>";
                 // line 680
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 683
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 687
         echo "\n        ";
         // line 688
         if ($this->getAttribute($context["data"] ?? null, "view_vars", array(), "any", true, true)) {
             // line 689
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 690
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" href=\"#\">\n                View Variables <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 695
             echo twig_escape_filter($this->env, $this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" class=\"hidden\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Variable</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 704
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "view_vars", array()));
             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
                 // line 705
                 echo "                <tr>\n                    <th scope=\"row\">";
                 // line 706
                 echo twig_escape_filter($this->env, $context["variable"], "html", null, true);
                 echo "</th>\n                    <td>";
                 // line 707
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 710
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 714
         echo "    </div>\n\n    ";
         // line 716
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["data"] ?? $this->getContext($context, "data"), "children", array()));
         foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
             // line 717
             echo "        ";
             echo $context["tree"]->getform_tree_details($context["childName"], $context["childData"], $context["forms_by_hash"] ?? $this->getContext($context, "forms_by_hash"));
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         $__internal_11b2f709c8e569fa72a3f46968113cc4941e80e134f69c34fddd426f7ae6a2aa->leave($__internal_11b2f709c8e569fa72a3f46968113cc4941e80e134f69c34fddd426f7ae6a2aa_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     } catch (Throwable $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function getform_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null)
 {
     $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "forms_by_hash" => $__forms_by_hash__, "varargs" => func_num_args() > 3 ? array_slice(func_get_args(), 3) : array()));
     $blocks = array();
     ob_start();
     try {
         // line 445
         echo "    <div class=\"tree-details\" ";
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "id", array(), "any", true, true)) {
             echo " id=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-details\"";
         }
         echo ">\n        <h2>\n            ";
         // line 447
         echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true);
         echo "\n            ";
         // line 448
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "type_class", array(), "any", true, true) && $this->getAttribute(isset($context["data"]) ? $context["data"] : null, "type", array(), "any", true, true)) {
             // line 449
             echo "            <span class=\"form-type\">[<abbr title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type_class", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type", array()), "html", null, true);
             echo "</abbr>]</span>\n            ";
         }
         // line 451
         echo "        </h2>\n\n        ";
         // line 453
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "errors", array(), "any", true, true) && twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array())) > 0) {
             // line 454
             echo "        <div class=\"errors\">\n            <h3>\n                <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 456
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\" href=\"#\">\n                    Errors\n                    <span class=\"toggle-icon\"></span>\n                </a>\n            </h3>\n\n            <table id=\"";
             // line 462
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\">\n                <tr>\n                    <th>Message</th>\n                    <th>Origin</th>\n                    <th>Cause</th>\n                </tr>\n                ";
             // line 468
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 469
                 echo "                <tr>\n                    <td>";
                 // line 470
                 echo twig_escape_filter($this->env, $this->getAttribute($context["error"], "message", array()), "html", null, true);
                 echo "</td>\n                    <td>\n                        ";
                 // line 472
                 if (twig_test_empty($this->getAttribute($context["error"], "origin", array()))) {
                     // line 473
                     echo "                            <em>This form.</em>\n                        ";
                 } elseif (!$this->getAttribute(isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : null, $this->getAttribute($context["error"], "origin", array()), array(), "array", true, true)) {
                     // line 475
                     echo "                            <em>Unknown.</em>\n                        ";
                 } else {
                     // line 477
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"), $this->getAttribute($context["error"], "origin", array()), array(), "array"), "name", array()), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 479
                 echo "                    </td>\n                    <td>\n                        ";
                 // line 481
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["error"], "trace", array()));
                 $context['_iterated'] = false;
                 $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                 if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                     $length = count($context['_seq']);
                     $context['loop']['revindex0'] = $length - 1;
                     $context['loop']['revindex'] = $length;
                     $context['loop']['length'] = $length;
                     $context['loop']['last'] = 1 === $length;
                 }
                 foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
                     // line 482
                     echo "                            ";
                     if (!$this->getAttribute($context["loop"], "first", array())) {
                         // line 483
                         echo "                                <br/>Caused by:<br/><br/>\n                            ";
                     }
                     // line 485
                     echo "                            ";
                     if ($this->getAttribute($context["trace"], "root", array(), "any", true, true)) {
                         // line 486
                         echo "                                <strong>";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "class", array()), "html", null, true);
                         echo "</strong><br/>\n                                <pre>";
                         // line 488
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "root", array()), "html", null, true);
                         // line 489
                         if (!twig_test_empty($this->getAttribute($context["trace"], "path", array()))) {
                             // line 490
                             if (twig_first($this->env, $this->getAttribute($context["trace"], "path", array())) != "[") {
                                 echo ".";
                             }
                             // line 491
                             echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "path", array()), "html", null, true);
                         }
                         // line 492
                         echo " = ";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "value", array()), "html", null, true);
                         // line 493
                         echo "</pre>\n                            ";
                     } elseif ($this->getAttribute($context["trace"], "message", array(), "any", true, true)) {
                         // line 495
                         echo "                                <strong>";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "class", array()), "html", null, true);
                         echo "</strong><br/>\n                                <pre>";
                         // line 496
                         echo twig_escape_filter($this->env, $this->getAttribute($context["trace"], "message", array()), "html", null, true);
                         echo "</pre>\n                            ";
                     } else {
                         // line 498
                         echo "                                <pre>";
                         echo twig_escape_filter($this->env, $context["trace"], "html", null, true);
                         echo "</pre>\n                            ";
                     }
                     // line 500
                     echo "                        ";
                     $context['_iterated'] = true;
                     ++$context['loop']['index0'];
                     ++$context['loop']['index'];
                     $context['loop']['first'] = false;
                     if (isset($context['loop']['length'])) {
                         --$context['loop']['revindex0'];
                         --$context['loop']['revindex'];
                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                     }
                 }
                 if (!$context['_iterated']) {
                     // line 501
                     echo "                            <em>Unknown.</em>\n                        ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 503
                 echo "                    </td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 506
             echo "            </table>\n        </div>\n        ";
         }
         // line 509
         echo "\n        ";
         // line 510
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", true, true)) {
             // line 511
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 512
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\" href=\"#\">\n                Default Data\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 518
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\">\n            <table>\n                <tr>\n                    <th width=\"180\">Model Format</th>\n                    <td>\n                        ";
             // line 523
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                 // line 524
                 echo "                            <pre>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "model", array()), "html", null, true);
                 echo "</pre>\n                        ";
             } else {
                 // line 526
                 echo "                            <em>same as normalized format</em>\n                        ";
             }
             // line 528
             echo "                    </td>\n                </tr>\n                <tr>\n                    <th>Normalized Format</th>\n                    <td><pre>";
             // line 532
             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "norm", array()), "html", null, true);
             echo "</pre></td>\n                </tr>\n                <tr>\n                    <th>View Format</th>\n                    <td>\n                        ";
             // line 537
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                 // line 538
                 echo "                            <pre>";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "view", array()), "html", null, true);
                 echo "</pre>\n                        ";
             } else {
                 // line 540
                 echo "                            <em>same as normalized format</em>\n                        ";
             }
             // line 542
             echo "                    </td>\n                </tr>\n            </table>\n        </div>\n        ";
         }
         // line 547
         echo "\n        ";
         // line 548
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", true, true)) {
             // line 549
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 550
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\" href=\"#\">\n                Submitted Data\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 556
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\">\n        ";
             // line 557
             if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) {
                 // line 558
                 echo "            <table>\n                <tr>\n                    <th width=\"180\">View Format</th>\n                    <td>\n                        ";
                 // line 562
                 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                     // line 563
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "view", array()), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 565
                     echo "                            <em>same as normalized format</em>\n                        ";
                 }
                 // line 567
                 echo "                    </td>\n                </tr>\n                <tr>\n                    <th>Normalized Format</th>\n                    <td><pre>";
                 // line 571
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "norm", array()), "html", null, true);
                 echo "</pre></td>\n                </tr>\n                <tr>\n                    <th>Model Format</th>\n                    <td>\n                        ";
                 // line 576
                 if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                     // line 577
                     echo "                            <pre>";
                     echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "model", array()), "html", null, true);
                     echo "</pre>\n                        ";
                 } else {
                     // line 579
                     echo "                            <em>same as normalized format</em>\n                        ";
                 }
                 // line 581
                 echo "                    </td>\n                </tr>\n            </table>\n        ";
             } else {
                 // line 585
                 echo "            <p><em>This form was not submitted.</em></p>\n        ";
             }
             // line 587
             echo "        </div>\n        ";
         }
         // line 589
         echo "\n        ";
         // line 590
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "passed_options", array(), "any", true, true)) {
             // line 591
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 592
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\" href=\"#\">\n                Passed Options\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 598
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\">\n            ";
             // line 599
             if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()))) {
                 // line 600
                 echo "            <table>\n                <tr>\n                    <th width=\"180\">Option</th>\n                    <th>Passed Value</th>\n                    <th>Resolved Value</th>\n                </tr>\n                ";
                 // line 606
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()));
                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                     // line 607
                     echo "                <tr>\n                    <th>";
                     // line 608
                     echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                     echo "</th>\n                    <td><pre>";
                     // line 609
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "</pre></td>\n                    <td>\n                        ";
                     // line 611
                     if ($this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array") === $context["value"]) {
                         // line 612
                         echo "                            <em>same as passed value</em>\n                        ";
                     } else {
                         // line 614
                         echo "                            <pre>";
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array"), "html", null, true);
                         echo "</pre>\n                        ";
                     }
                     // line 616
                     echo "                    </td>\n                </tr>\n                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 619
                 echo "            </table>\n            ";
             } else {
                 // line 621
                 echo "            <p><em>No options where passed when constructing this form.</em></p>\n            ";
             }
             // line 623
             echo "        </div>\n        ";
         }
         // line 625
         echo "\n        ";
         // line 626
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "resolved_options", array(), "any", true, true)) {
             // line 627
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 628
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" href=\"#\">\n                Resolved Options\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 634
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" class=\"hidden\">\n            <table>\n                <tr>\n                    <th width=\"180\">Option</th>\n                    <th>Value</th>\n                </tr>\n                ";
             // line 640
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()));
             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                 // line 641
                 echo "                <tr>\n                    <th>";
                 // line 642
                 echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                 echo "</th>\n                    <td><pre>";
                 // line 643
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</pre></td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 646
             echo "            </table>\n        </div>\n        ";
         }
         // line 649
         echo "\n        ";
         // line 650
         if ($this->getAttribute(isset($context["data"]) ? $context["data"] : null, "view_vars", array(), "any", true, true)) {
             // line 651
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 652
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" href=\"#\">\n                View Variables\n                <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 658
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" class=\"hidden\">\n            <table>\n                <tr>\n                    <th width=\"180\">Variable</th>\n                    <th>Value</th>\n                </tr>\n                ";
             // line 664
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "view_vars", array()));
             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
                 // line 665
                 echo "                <tr>\n                    <th>";
                 // line 666
                 echo twig_escape_filter($this->env, $context["variable"], "html", null, true);
                 echo "</th>\n                    <td><pre>";
                 // line 667
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</pre></td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 670
             echo "            </table>\n        </div>\n        ";
         }
         // line 673
         echo "    </div>\n\n    ";
         // line 675
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "children", array()));
         foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
             // line 676
             echo "        ";
             echo $this->getAttribute($this, "form_tree_details", array(0 => $context["childName"], 1 => $context["childData"], 2 => isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash")), "method");
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_6e784cdca4df6513a59b41ab8754f5540731d3b4a42c4b2a828a994faa6ad67e = $this->env->getExtension("native_profiler");
     $__internal_6e784cdca4df6513a59b41ab8754f5540731d3b4a42c4b2a828a994faa6ad67e->enter($__internal_6e784cdca4df6513a59b41ab8754f5540731d3b4a42c4b2a828a994faa6ad67e_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "@Doctrine/Collector/explain.html.twig"));
     // line 1
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")) > 1) {
         // line 2
         echo "    ";
         // line 3
         echo "    <table style=\"margin: 5px 0;\">\n        <thead>\n            <tr>\n                ";
         // line 6
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")));
         foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
             // line 7
             echo "                    <th>";
             echo twig_escape_filter($this->env, $context["label"], "html", null, true);
             echo "</th>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 9
         echo "            </tr>\n        </thead>\n        <tbody>\n            ";
         // line 12
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 13
             echo "            <tr>\n                ";
             // line 14
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable($context["row"]);
             foreach ($context['_seq'] as $context["key"] => $context["item"]) {
                 // line 15
                 echo "                    <td>";
                 echo twig_escape_filter($this->env, twig_replace_filter($context["item"], array("," => ", ")), "html", null, true);
                 echo "</td>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 17
             echo "            </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 19
         echo "        </tbody>\n    </table>\n";
     } else {
         // line 22
         echo "    ";
         // line 23
         echo "    <pre style=\"margin: 5px 0;\">";
         // line 24
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 25
             echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true);
             echo "\n";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 27
         echo "</pre>\n";
     }
     $__internal_6e784cdca4df6513a59b41ab8754f5540731d3b4a42c4b2a828a994faa6ad67e->leave($__internal_6e784cdca4df6513a59b41ab8754f5540731d3b4a42c4b2a828a994faa6ad67e_prof);
 }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 1
     ob_start();
     // line 2
     $context["tooltipIndex"] = (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) . "_tooltip";
     // line 3
     if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => isset($context["tooltipIndex"]) ? $context["tooltipIndex"] : $this->getContext($context, "tooltipIndex")), "method")) {
         echo "<span class=\"cell-tooltip\" data-tooltip=\"";
         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => isset($context["tooltipIndex"]) ? $context["tooltipIndex"] : $this->getContext($context, "tooltipIndex")), "method"), "html", null, true);
         echo "\">";
     }
     // line 4
     if (!$this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getIdSubDataTable", array(), "method") && (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label" && $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method")) {
         // line 5
         echo "    <a target=\"_blank\" href='";
         if (!twig_in_filter(twig_slice($this->env, $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method"), 0, 4), array(0 => "http", 1 => "ftp:"))) {
             echo "http://";
         }
         echo call_user_func_array($this->env->getFilter('rawSafeDecoded')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method")));
         echo "'>\n    ";
         // line 6
         if (!$this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "logo"), "method")) {
             // line 7
             echo "        <img class=\"link\" width=\"10\" height=\"9\" src=\"plugins/Morpheus/images/link.gif\"/>\n    ";
         }
     }
     // line 10
     if ((isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label") {
         // line 11
         echo "    ";
         $context["piwik"] = $this->env->loadTemplate("macros.twig");
         // line 12
         echo "\n    <span class='label";
         // line 13
         if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "is_aggregate"), "method")) {
             echo " highlighted";
         }
         echo "'\n    ";
         // line 14
         if (array_key_exists("properties", $context) && !twig_test_empty($this->getAttribute(isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties"), "tooltip_metadata_name"))) {
             echo "title=\"";
             echo twig_escape_filter($this->env, $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => $this->getAttribute(isset($context["properties"]) ? $context["properties"] : $this->getContext($context, "properties"), "tooltip_metadata_name")), "method"), "html", null, true);
             echo "\"";
         }
         echo ">\n        ";
         // line 15
         echo $context["piwik"]->getlogoHtml($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(), "method"), $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => "label"), "method"));
         echo "\n        ";
         // line 16
         if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_prefix"), "method")) {
             echo "<span class='label-prefix'>";
             echo $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_prefix"), "method");
             echo "&nbsp;</span>";
         }
         // line 17
         if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_suffix"), "method")) {
             echo "<span class='label-suffix'>";
             echo $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "html_label_suffix"), "method");
             echo "</span>";
         }
     }
     // line 18
     echo "<span class=\"value\">";
     if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method")) {
         echo $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method");
     } else {
         echo "-";
     }
     echo "</span>\n";
     // line 19
     if ((isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label") {
         echo "</span>";
     }
     // line 20
     if (!$this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getIdSubDataTable", array(), "method") && (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) == "label" && $this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => "url"), "method")) {
         // line 21
         echo "    </a>\n";
     }
     // line 23
     if ($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getMetadata", array(0 => isset($context["tooltipIndex"]) ? $context["tooltipIndex"] : $this->getContext($context, "tooltipIndex")), "method")) {
         echo "</span>";
     }
     // line 24
     echo "\n";
     // line 25
     $context["totals"] = $this->getAttribute(isset($context["dataTable"]) ? $context["dataTable"] : $this->getContext($context, "dataTable"), "getMetadata", array(0 => "totals"), "method");
     // line 26
     if (twig_in_filter(isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), twig_get_array_keys_filter(isset($context["totals"]) ? $context["totals"] : $this->getContext($context, "totals")))) {
         // line 27
         $context["labelColumn"] = twig_first($this->env, isset($context["columns_to_display"]) ? $context["columns_to_display"] : $this->getContext($context, "columns_to_display"));
         // line 28
         echo "    ";
         $context["reportTotal"] = $this->getAttribute(isset($context["totals"]) ? $context["totals"] : $this->getContext($context, "totals"), isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), array(), "array");
         // line 29
         echo "    ";
         if (array_key_exists("siteSummary", $context) && !twig_test_empty(isset($context["siteSummary"]) ? $context["siteSummary"] : $this->getContext($context, "siteSummary")) && $this->getAttribute(isset($context["siteSummary"]) ? $context["siteSummary"] : $this->getContext($context, "siteSummary"), "getFirstRow")) {
             // line 30
             echo "        ";
             $context["siteTotal"] = $this->getAttribute($this->getAttribute(isset($context["siteSummary"]) ? $context["siteSummary"] : $this->getContext($context, "siteSummary"), "getFirstRow"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method");
             // line 31
             echo "    ";
         } else {
             // line 32
             echo "        ";
             $context["siteTotal"] = 0;
             // line 33
             echo "    ";
         }
         // line 34
         echo "    ";
         $context["rowPercentage"] = call_user_func_array($this->env->getFilter('percentage')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method"), isset($context["reportTotal"]) ? $context["reportTotal"] : $this->getContext($context, "reportTotal"), 1));
         // line 35
         echo "    ";
         $context["metricTitle"] = $this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), array(), "array", true, true) ? _twig_default_filter($this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"), array(), "array"), isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")) : (isset($context["column"]) ? $context["column"] : $this->getContext($context, "column"));
         // line 36
         echo "    ";
         $context["reportLabel"] = call_user_func_array($this->env->getFilter('truncate')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn")), "method"), 40));
         // line 37
         echo "\n    ";
         // line 38
         $context["reportRatioTooltip"] = call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_ReportRatioTooltip", isset($context["reportLabel"]) ? $context["reportLabel"] : $this->getContext($context, "reportLabel"), twig_escape_filter($this->env, isset($context["rowPercentage"]) ? $context["rowPercentage"] : $this->getContext($context, "rowPercentage"), "html_attr"), twig_escape_filter($this->env, isset($context["reportTotal"]) ? $context["reportTotal"] : $this->getContext($context, "reportTotal"), "html_attr"), twig_escape_filter($this->env, isset($context["metricTitle"]) ? $context["metricTitle"] : $this->getContext($context, "metricTitle"), "html_attr"), twig_escape_filter($this->env, $this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn"), array(), "array", true, true) ? _twig_default_filter($this->getAttribute(isset($context["translations"]) ? $context["translations"] : null, isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn"), array(), "array"), isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn")) : (isset($context["labelColumn"]) ? $context["labelColumn"] : $this->getContext($context, "labelColumn")), "html_attr")));
         // line 39
         echo "\n    ";
         // line 40
         if ((isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal")) && (isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal")) > (isset($context["reportTotal"]) ? $context["reportTotal"] : $this->getContext($context, "reportTotal"))) {
             // line 41
             echo "        ";
             $context["totalPercentage"] = call_user_func_array($this->env->getFilter('percentage')->getCallable(), array($this->getAttribute(isset($context["row"]) ? $context["row"] : $this->getContext($context, "row"), "getColumn", array(0 => isset($context["column"]) ? $context["column"] : $this->getContext($context, "column")), "method"), isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal"), 1));
             // line 42
             echo "        ";
             $context["totalRatioTooltip"] = call_user_func_array($this->env->getFilter('translate')->getCallable(), array("General_TotalRatioTooltip", isset($context["totalPercentage"]) ? $context["totalPercentage"] : $this->getContext($context, "totalPercentage"), isset($context["siteTotal"]) ? $context["siteTotal"] : $this->getContext($context, "siteTotal"), isset($context["metricTitle"]) ? $context["metricTitle"] : $this->getContext($context, "metricTitle")));
             // line 43
             echo "    ";
         } else {
             // line 44
             echo "        ";
             $context["totalRatioTooltip"] = "";
             // line 45
             echo "    ";
         }
         // line 46
         echo "\n    <span class=\"ratio\" title=\"";
         // line 47
         echo isset($context["reportRatioTooltip"]) ? $context["reportRatioTooltip"] : $this->getContext($context, "reportRatioTooltip");
         echo " ";
         echo twig_escape_filter($this->env, isset($context["totalRatioTooltip"]) ? $context["totalRatioTooltip"] : $this->getContext($context, "totalRatioTooltip"), "html_attr");
         echo "\">&nbsp;";
         echo twig_escape_filter($this->env, isset($context["rowPercentage"]) ? $context["rowPercentage"] : $this->getContext($context, "rowPercentage"), "html", null, true);
         echo "</span>";
     }
     echo trim(preg_replace('/>\\s+</', '><', ob_get_clean()));
 }
    protected function doDisplay(array $context, array $blocks = array())
    {
        // line 28
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["message_list"]) ? $context["message_list"] : null));
        foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
            // line 29
            echo "  ";
            // line 30
            $context["classes"] = array(0 => "messages", 1 => ("messages--" .             // line 32
$context["type"]));
            // line 35
            echo "  <div class=\"";
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute($this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "addClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "class", array()), "html", null, true);
            echo "\" role=\"contentinfo\" aria-label=\"";
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array"), "html", null, true);
            echo "\">

    <div class=\"messages__container\"";
            // line 37
            if (($context["type"] == "error")) {
                echo " role=\"alert\"";
            }
            echo ">

      ";
            // line 39
            if ($this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array")) {
                // line 40
                echo "        <h2 class=\"visually-hidden\">";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array"), "html", null, true);
                echo "</h2>
      ";
            }
            // line 42
            echo "
      <span class=\"icon icon-";
            // line 43
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["type"], "html", null, true);
            echo "\" aria-hidden=\"true\"></span>

      ";
            // line 45
            if ((twig_length_filter($this->env, $context["messages"]) > 1)) {
                // line 46
                echo "        <ul class=\"messages__list\">
          ";
                // line 47
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["messages"]);
                foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                    // line 48
                    echo "            <li class=\"messages__item\">";
                    echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["message"], "html", null, true);
                    echo "</li>
          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 50
                echo "        </ul>
      ";
            } else {
                // line 52
                echo "        <div class=\"messages__list\">";
                echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_first($this->env, $context["messages"]), "html", null, true);
                echo "</div>
      ";
            }
            // line 54
            echo "
    </div>

  </div>
  ";
            // line 59
            echo "  ";
            echo $this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "removeClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "html", null, true);
            echo "
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }
 protected function doDisplay(array $context, array $blocks = array())
 {
     // line 11
     if (!$this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "hasassociationadmin", array())) {
         // line 12
         echo "    ";
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["value"]) ? $context["value"] : null);
         foreach ($context['_seq'] as $context["_key"] => $context["element"]) {
             // line 13
             echo "        ";
             echo twig_escape_filter($this->env, $this->env->getExtension('sonata_admin')->renderRelationElement($context["element"], $this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array())), "html", null, true);
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['element'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
     } else {
         // line 16
         echo "\n    <div id=\"field_container_";
         // line 17
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "\" class=\"field-container\">\n        <span id=\"field_widget_";
         // line 18
         echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
         echo "\" >\n            ";
         // line 19
         if ($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "edit", array()) == "inline") {
             // line 20
             echo "                ";
             if ($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "inline", array()) == "table") {
                 // line 21
                 echo "                    ";
                 if (twig_length_filter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "children", array())) > 0) {
                     // line 22
                     echo "                        <table class=\"table table-bordered\">\n                            <thead>\n                                <tr>\n                                    ";
                     // line 25
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute(twig_first($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "children", array())), "children", array()));
                     foreach ($context['_seq'] as $context["field_name"] => $context["nested_field"]) {
                         // line 26
                         echo "                                        ";
                         if ($context["field_name"] == "_delete") {
                             // line 27
                             echo "                                            <th>";
                             echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans("action_delete", array(), "SonataAdminBundle"), "html", null, true);
                             echo "</th>\n                                        ";
                         } else {
                             // line 29
                             echo "                                            <th ";
                             echo $this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "required", array(), "array") ? "class=\"required\"" : "";
                             if ($this->getAttribute($this->getAttribute($this->getAttribute($context["nested_field"], "vars", array(), "any", false, true), "attr", array(), "array", false, true), "hidden", array(), "array", true, true) && $this->getAttribute($this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "attr", array(), "array"), "hidden", array(), "array")) {
                                 echo " style=\"display:none;\"";
                             }
                             echo ">\n                                                ";
                             // line 30
                             echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "sonata_admin", array(), "array"), "admin", array()), "trans", array(0 => $this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "label", array())), "method"), "html", null, true);
                             echo "\n                                            </th>\n                                        ";
                         }
                         // line 33
                         echo "                                    ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['field_name'], $context['nested_field'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 34
                     echo "                                </tr>\n                            </thead>\n                            <tbody class=\"sonata-ba-tbody\">\n                                ";
                     // line 37
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "children", array()));
                     foreach ($context['_seq'] as $context["nested_group_field_name"] => $context["nested_group_field"]) {
                         // line 38
                         echo "                                    <tr>\n                                        ";
                         // line 39
                         $context['_parent'] = (array) $context;
                         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["nested_group_field"], "children", array()));
                         foreach ($context['_seq'] as $context["field_name"] => $context["nested_field"]) {
                             // line 40
                             echo "                                            <td class=\"sonata-ba-td-";
                             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                             echo "-";
                             echo twig_escape_filter($this->env, $context["field_name"], "html", null, true);
                             echo " control-group";
                             if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "errors", array())) > 0) {
                                 echo " error";
                             }
                             echo "\"";
                             if ($this->getAttribute($this->getAttribute($this->getAttribute($context["nested_field"], "vars", array(), "any", false, true), "attr", array(), "array", false, true), "hidden", array(), "array", true, true) && $this->getAttribute($this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "attr", array(), "array"), "hidden", array(), "array")) {
                                 echo " style=\"display:none;\"";
                             }
                             echo ">\n                                                ";
                             // line 41
                             if ($this->getAttribute($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array(), "any", false, true), "associationadmin", array(), "any", false, true), "formfielddescriptions", array(), "any", false, true), $context["field_name"], array(), "array", true, true)) {
                                 // line 42
                                 echo "                                                    ";
                                 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["nested_field"], 'widget');
                                 echo "\n\n                                                    ";
                                 // line 44
                                 $context["dummy"] = $this->getAttribute($context["nested_group_field"], "setrendered", array());
                                 // line 45
                                 echo "                                                ";
                             } else {
                                 // line 46
                                 echo "                                                    ";
                                 if ($context["field_name"] == "_delete") {
                                     // line 47
                                     echo "                                                        ";
                                     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["nested_field"], 'widget', array("label_render" => false));
                                     echo "\n                                                    ";
                                 } else {
                                     // line 49
                                     echo "                                                        ";
                                     echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["nested_field"], 'widget');
                                     echo "\n                                                    ";
                                 }
                                 // line 51
                                 echo "                                                ";
                             }
                             // line 52
                             echo "                                                ";
                             if (twig_length_filter($this->env, $this->getAttribute($this->getAttribute($context["nested_field"], "vars", array()), "errors", array())) > 0) {
                                 // line 53
                                 echo "                                                    <div class=\"help-inline sonata-ba-field-error-messages\">\n                                                        ";
                                 // line 54
                                 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($context["nested_field"], 'errors');
                                 echo "\n                                                    </div>\n                                                ";
                             }
                             // line 57
                             echo "                                            </td>\n                                        ";
                         }
                         $_parent = $context['_parent'];
                         unset($context['_seq'], $context['_iterated'], $context['field_name'], $context['nested_field'], $context['_parent'], $context['loop']);
                         $context = array_intersect_key($context, $_parent) + $_parent;
                         // line 59
                         echo "                                    </tr>\n                                ";
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['nested_group_field_name'], $context['nested_group_field'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 61
                     echo "                            </tbody>\n                        </table>\n                    ";
                 }
                 // line 64
                 echo "                ";
             } elseif (twig_length_filter($this->env, $this->getAttribute(isset($context["form"]) ? $context["form"] : null, "children", array())) > 0) {
                 // line 65
                 echo "                    ";
                 $context["associationAdmin"] = $this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array());
                 // line 66
                 echo "\n                    <div>\n                        ";
                 // line 68
                 $context['_parent'] = (array) $context;
                 $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["form"]) ? $context["form"] : null, "children", array()));
                 $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                 if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                     $length = count($context['_seq']);
                     $context['loop']['revindex0'] = $length - 1;
                     $context['loop']['revindex'] = $length;
                     $context['loop']['length'] = $length;
                     $context['loop']['last'] = 1 === $length;
                 }
                 foreach ($context['_seq'] as $context["_key"] => $context["nested_group_field"]) {
                     // line 69
                     echo "                            <ul class=\"nav nav-tabs\">\n                                ";
                     // line 70
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["associationAdmin"]) ? $context["associationAdmin"] : null, "formgroups", array()));
                     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                         $length = count($context['_seq']);
                         $context['loop']['revindex0'] = $length - 1;
                         $context['loop']['revindex'] = $length;
                         $context['loop']['length'] = $length;
                         $context['loop']['last'] = 1 === $length;
                     }
                     foreach ($context['_seq'] as $context["name"] => $context["form_group"]) {
                         // line 71
                         echo "                                    <li class=\"";
                         if ($this->getAttribute($context["loop"], "first", array())) {
                             echo "active";
                         }
                         echo "\">\n                                        <a href=\"#";
                         // line 72
                         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["associationAdmin"]) ? $context["associationAdmin"] : null, "uniqid", array()), "html", null, true);
                         echo "_";
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                         echo "_";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                         echo "\" data-toggle=\"tab\">\n                                            <i class=\"icon-exclamation-sign has-errors hide\"></i>\n                                            ";
                         // line 74
                         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["associationAdmin"]) ? $context["associationAdmin"] : null, "trans", array(0 => $context["name"], 1 => array(), 2 => $this->getAttribute($context["form_group"], "translation_domain", array())), "method"), "html", null, true);
                         echo "\n                                        </a>\n                                    </li>\n                                ";
                         ++$context['loop']['index0'];
                         ++$context['loop']['index'];
                         $context['loop']['first'] = false;
                         if (isset($context['loop']['length'])) {
                             --$context['loop']['revindex0'];
                             --$context['loop']['revindex'];
                             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                         }
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['name'], $context['form_group'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 78
                     echo "                            </ul>\n\n                            <div class=\"tab-content\">\n                                ";
                     // line 81
                     $context['_parent'] = (array) $context;
                     $context['_seq'] = twig_ensure_traversable($this->getAttribute(isset($context["associationAdmin"]) ? $context["associationAdmin"] : null, "formgroups", array()));
                     $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                     if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                         $length = count($context['_seq']);
                         $context['loop']['revindex0'] = $length - 1;
                         $context['loop']['revindex'] = $length;
                         $context['loop']['length'] = $length;
                         $context['loop']['last'] = 1 === $length;
                     }
                     foreach ($context['_seq'] as $context["name"] => $context["form_group"]) {
                         // line 82
                         echo "                                    <div class=\"tab-pane ";
                         if ($this->getAttribute($context["loop"], "first", array())) {
                             echo "active";
                         }
                         echo "\" id=\"";
                         echo twig_escape_filter($this->env, $this->getAttribute(isset($context["associationAdmin"]) ? $context["associationAdmin"] : null, "uniqid", array()), "html", null, true);
                         echo "_";
                         echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute($context["loop"], "parent", array()), "loop", array()), "index", array()), "html", null, true);
                         echo "_";
                         echo twig_escape_filter($this->env, $this->getAttribute($context["loop"], "index", array()), "html", null, true);
                         echo "\">\n                                        <fieldset>\n                                            <div class=\"sonata-ba-collapsed-fields\">\n                                                ";
                         // line 85
                         $context['_parent'] = (array) $context;
                         $context['_seq'] = twig_ensure_traversable($this->getAttribute($context["form_group"], "fields", array()));
                         foreach ($context['_seq'] as $context["_key"] => $context["field_name"]) {
                             // line 86
                             echo "                                                    ";
                             $context["nested_field"] = $this->getAttribute($this->getAttribute($context["nested_group_field"], "children", array()), $context["field_name"], array(), "array");
                             // line 87
                             echo "                                                    ";
                             if ($this->getAttribute($this->getAttribute(isset($context["associationAdmin"]) ? $context["associationAdmin"] : null, "formfielddescriptions", array(), "any", false, true), $context["field_name"], array(), "array", true, true)) {
                                 // line 88
                                 echo "                                                        ";
                                 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["nested_field"]) ? $context["nested_field"] : null, 'row', array("inline" => "natural", "edit" => "inline"));
                                 // line 91
                                 echo "\n                                                        ";
                                 // line 92
                                 $context["dummy"] = $this->getAttribute($context["nested_group_field"], "setrendered", array());
                                 // line 93
                                 echo "                                                    ";
                             } else {
                                 // line 94
                                 echo "                                                        ";
                                 echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["nested_field"]) ? $context["nested_field"] : null, 'row');
                                 echo "\n                                                    ";
                             }
                             // line 96
                             echo "                                                ";
                         }
                         $_parent = $context['_parent'];
                         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['field_name'], $context['_parent'], $context['loop']);
                         $context = array_intersect_key($context, $_parent) + $_parent;
                         // line 97
                         echo "                                            </div>\n                                        </fieldset>\n                                    </div>\n                                ";
                         ++$context['loop']['index0'];
                         ++$context['loop']['index'];
                         $context['loop']['first'] = false;
                         if (isset($context['loop']['length'])) {
                             --$context['loop']['revindex0'];
                             --$context['loop']['revindex'];
                             $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                         }
                     }
                     $_parent = $context['_parent'];
                     unset($context['_seq'], $context['_iterated'], $context['name'], $context['form_group'], $context['_parent'], $context['loop']);
                     $context = array_intersect_key($context, $_parent) + $_parent;
                     // line 101
                     echo "                            </div>\n\n                            ";
                     // line 103
                     if ($this->getAttribute($context["nested_group_field"], "_delete", array(), "array", true, true)) {
                         // line 104
                         echo "                                ";
                         echo $this->env->getExtension('form')->renderer->searchAndRenderBlock($this->getAttribute($context["nested_group_field"], "_delete", array(), "array"), 'row');
                         echo "\n                            ";
                     }
                     // line 106
                     echo "                        ";
                     ++$context['loop']['index0'];
                     ++$context['loop']['index'];
                     $context['loop']['first'] = false;
                     if (isset($context['loop']['length'])) {
                         --$context['loop']['revindex0'];
                         --$context['loop']['revindex'];
                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                     }
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['nested_group_field'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 107
                 echo "                    </div>\n                ";
             }
             // line 109
             echo "            ";
         } else {
             // line 110
             echo "                ";
             echo $this->env->getExtension('form')->renderer->searchAndRenderBlock(isset($context["form"]) ? $context["form"] : null, 'widget');
             echo "\n            ";
         }
         // line 112
         echo "\n        </span>\n\n        ";
         // line 115
         if ($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "edit", array()) == "inline") {
             // line 116
             echo "\n            ";
             // line 117
             if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array()), "hasroute", array(0 => "create"), "method") && $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array()), "isGranted", array(0 => "CREATE"), "method") && (isset($context["btn_add"]) ? $context["btn_add"] : null)) {
                 // line 118
                 echo "                <span id=\"field_actions_";
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "\" >\n                    <a\n                        href=\"";
                 // line 120
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array()), "generateUrl", array(0 => "create", 1 => $this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "getOption", array(0 => "link_parameters", 1 => array()), "method")), "method"), "html", null, true);
                 echo "\"\n                        onclick=\"return start_field_retrieve_";
                 // line 121
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "(this);\"\n                        class=\"btn btn-success btn-sm btn-outline sonata-ba-action\"\n                        title=\"";
                 // line 123
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["btn_add"]) ? $context["btn_add"] : null, array(), isset($context["btn_catalogue"]) ? $context["btn_catalogue"] : null), "html", null, true);
                 echo "\"\n                        >\n                        <i class=\"fa fa-plus-circle\"></i>\n                        ";
                 // line 126
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["btn_add"]) ? $context["btn_add"] : null, array(), isset($context["btn_catalogue"]) ? $context["btn_catalogue"] : null), "html", null, true);
                 echo "\n                    </a>\n                </span>\n            ";
             }
             // line 130
             echo "\n            ";
             // line 132
             echo "            ";
             if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array(), "any", false, true), "options", array(), "any", false, true), "sortable", array(), "any", true, true)) {
                 // line 133
                 echo "                <script type=\"text/javascript\">\n                    jQuery('div#field_container_";
                 // line 134
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo " tbody.sonata-ba-tbody').sortable({\n                        axis: 'y',\n                        opacity: 0.6,\n                        items: '> tr',\n                        stop: apply_position_value_";
                 // line 138
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "\n                    });\n\n                    function apply_position_value_";
                 // line 141
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "() {\n                        // update the input value position\n                        jQuery('div#field_container_";
                 // line 143
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo " tbody.sonata-ba-tbody td.sonata-ba-td-";
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "options", array()), "sortable", array()), "html", null, true);
                 echo "').each(function(index, element) {\n                            // remove the sortable handler and put it back\n                            jQuery('span.sonata-ba-sortable-handler', element).remove();\n                            jQuery(element).append('<span class=\"sonata-ba-sortable-handler ui-icon ui-icon-grip-solid-horizontal\"></span>');\n                            jQuery('input', element).hide();\n                        });\n\n                        jQuery('div#field_container_";
                 // line 150
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo " tbody.sonata-ba-tbody td.sonata-ba-td-";
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "-";
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "options", array()), "sortable", array()), "html", null, true);
                 echo " input').each(function(index, value) {\n                            jQuery(value).val(index + 1);\n                        });\n                    }\n\n                    // refresh the sortable option when a new element is added\n                    jQuery('#sonata-ba-field-container-";
                 // line 156
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "').bind('sonata.add_element', function() {\n                        apply_position_value_";
                 // line 157
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "();\n                        jQuery('div#field_container_";
                 // line 158
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo " tbody.sonata-ba-tbody').sortable('refresh');\n                    });\n\n                    apply_position_value_";
                 // line 161
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "();\n\n                </script>\n            ";
             }
             // line 165
             echo "\n            ";
             // line 167
             echo "            ";
             $this->loadTemplate("SonataDoctrineORMAdminBundle:CRUD:edit_orm_one_association_script.html.twig", "SonataDoctrineORMAdminBundle:CRUD:edit_orm_one_to_many.html.twig", 167)->display($context);
             // line 168
             echo "\n        ";
         } else {
             // line 170
             echo "            <span id=\"field_actions_";
             echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
             echo "\" >\n                ";
             // line 171
             if ($this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array()), "hasroute", array(0 => "create"), "method") && $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array()), "isGranted", array(0 => "CREATE"), "method") && (isset($context["btn_add"]) ? $context["btn_add"] : null)) {
                 // line 172
                 echo "                    <a\n                        href=\"";
                 // line 173
                 echo twig_escape_filter($this->env, $this->getAttribute($this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "associationadmin", array()), "generateUrl", array(0 => "create", 1 => $this->getAttribute($this->getAttribute(isset($context["sonata_admin"]) ? $context["sonata_admin"] : null, "field_description", array()), "getOption", array(0 => "link_parameters", 1 => array()), "method")), "method"), "html", null, true);
                 echo "\"\n                        onclick=\"return start_field_dialog_form_add_";
                 // line 174
                 echo twig_escape_filter($this->env, isset($context["id"]) ? $context["id"] : null, "html", null, true);
                 echo "(this);\"\n                        class=\"btn btn-success btn-sm btn-outline sonata-ba-action\"\n                        title=\"";
                 // line 176
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["btn_add"]) ? $context["btn_add"] : null, array(), isset($context["btn_catalogue"]) ? $context["btn_catalogue"] : null), "html", null, true);
                 echo "\"\n                        >\n                        <i class=\"fa fa-plus-circle\"></i>\n                        ";
                 // line 179
                 echo twig_escape_filter($this->env, $this->env->getExtension('translator')->trans(isset($context["btn_add"]) ? $context["btn_add"] : null, array(), isset($context["btn_catalogue"]) ? $context["btn_catalogue"] : null), "html", null, true);
                 echo "\n                    </a>\n                ";
             }
             // line 182
             echo "            </span>\n\n            ";
             // line 184
             $this->loadTemplate("SonataDoctrineORMAdminBundle:CRUD:edit_modal.html.twig", "SonataDoctrineORMAdminBundle:CRUD:edit_orm_one_to_many.html.twig", 184)->display($context);
             // line 185
             echo "\n            ";
             // line 186
             $this->loadTemplate("SonataDoctrineORMAdminBundle:CRUD:edit_orm_many_association_script.html.twig", "SonataDoctrineORMAdminBundle:CRUD:edit_orm_one_to_many.html.twig", 186)->display($context);
             // line 187
             echo "        ";
         }
         // line 188
         echo "    </div>\n";
     }
 }
Example #24
0
 public function testTwigFirst()
 {
     $twig = new Apishka_Templater_Environment($this->createMock('Apishka_Templater_LoaderInterface'));
     $this->assertEquals('a', twig_first($twig, 'abc'));
     $this->assertEquals(1, twig_first($twig, array(1, 2, 3)));
     $this->assertSame('', twig_first($twig, null));
     $this->assertSame('', twig_first($twig, ''));
 }
 public function getrender_table($__listeners__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("listeners" => $__listeners__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_a168839227312b159c323ec6189e9b39104c1224edfcfe1e022600d82f498310 = $this->env->getExtension("native_profiler");
         $__internal_a168839227312b159c323ec6189e9b39104c1224edfcfe1e022600d82f498310->enter($__internal_a168839227312b159c323ec6189e9b39104c1224edfcfe1e022600d82f498310_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
         // line 53
         echo "    <table>\n        <thead>\n            <tr>\n                <th class=\"text-right\">Priority</th>\n                <th>Listener</th>\n            </tr>\n        </thead>\n\n        ";
         // line 61
         $context["previous_event"] = $this->getAttribute(twig_first($this->env, isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners")), "event", array());
         // line 62
         echo "        ";
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["listeners"]) ? $context["listeners"] : $this->getContext($context, "listeners"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["listener"]) {
             // line 63
             echo "            ";
             if ($this->getAttribute($context["loop"], "first", array()) || $this->getAttribute($context["listener"], "event", array()) != (isset($context["previous_event"]) ? $context["previous_event"] : $this->getContext($context, "previous_event"))) {
                 // line 64
                 echo "                ";
                 if (!$this->getAttribute($context["loop"], "first", array())) {
                     // line 65
                     echo "                    </tbody>\n                ";
                 }
                 // line 67
                 echo "\n                <tbody>\n                    <tr>\n                        <th colspan=\"2\" class=\"colored font-normal\">";
                 // line 70
                 echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "event", array()), "html", null, true);
                 echo "</th>\n                    </tr>\n\n                ";
                 // line 73
                 $context["previous_event"] = $this->getAttribute($context["listener"], "event", array());
                 // line 74
                 echo "            ";
             }
             // line 75
             echo "\n            <tr>\n                <td class=\"text-right\">";
             // line 77
             echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "priority", array(), "any", true, true) ? _twig_default_filter($this->getAttribute($context["listener"], "priority", array()), "-") : "-", "html", null, true);
             echo "</td>\n                <td class=\"font-normal\">\n                    ";
             // line 79
             if ($this->getAttribute($context["listener"], "type", array()) == "Closure") {
                 // line 80
                 echo "\n                        Closure\n                        <span class=\"text-muted text-small\">(there is no class or file information)</span>\n\n                    ";
             } elseif ($this->getAttribute($context["listener"], "type", array()) == "Function") {
                 // line 85
                 echo "\n                        ";
                 // line 86
                 $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($context["listener"], "file", array()), $this->getAttribute($context["listener"], "line", array()));
                 // line 87
                 echo "                        ";
                 if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
                     // line 88
                     echo "                            <a href=\"";
                     echo twig_escape_filter($this->env, isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"), "html", null, true);
                     echo "\">";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "function", array()), "html", null, true);
                     echo "()</a>\n                            <span class=\"text-muted text-small\">(";
                     // line 89
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "file", array()), "html", null, true);
                     echo ")</span>\n                        ";
                 } else {
                     // line 91
                     echo "                            ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "function", array()), "html", null, true);
                     echo "()\n                            <span class=\"text-muted newline text-small\">";
                     // line 92
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "file", array()), "html", null, true);
                     echo " (line ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "line", array()), "html", null, true);
                     echo ")</span>\n                        ";
                 }
                 // line 94
                 echo "\n                    ";
             } elseif ($this->getAttribute($context["listener"], "type", array()) == "Method") {
                 // line 96
                 echo "\n                        ";
                 // line 97
                 $context["link"] = $this->env->getExtension('code')->getFileLink($this->getAttribute($context["listener"], "file", array()), $this->getAttribute($context["listener"], "line", array()));
                 // line 98
                 echo "                        ";
                 $context["class_namespace"] = twig_join_filter(twig_split_filter($this->env, $this->getAttribute($context["listener"], "class", array()), "\\", -1), "\\");
                 // line 99
                 echo "\n                        ";
                 // line 100
                 if (isset($context["link"]) ? $context["link"] : $this->getContext($context, "link")) {
                     // line 101
                     echo "                            <a href=\"";
                     echo twig_escape_filter($this->env, isset($context["link"]) ? $context["link"] : $this->getContext($context, "link"), "html", null, true);
                     echo "\"><strong>";
                     echo twig_escape_filter($this->env, strip_tags($this->env->getExtension('code')->abbrClass($this->getAttribute($context["listener"], "class", array()))), "html", null, true);
                     echo "</strong>::";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "method", array()), "html", null, true);
                     echo "()</a>\n                            <span class=\"text-muted text-small\">(";
                     // line 102
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "class", array()), "html", null, true);
                     echo ")</span>\n                        ";
                 } else {
                     // line 104
                     echo "                            <span>";
                     echo twig_escape_filter($this->env, isset($context["class_namespace"]) ? $context["class_namespace"] : $this->getContext($context, "class_namespace"), "html", null, true);
                     echo "\\</span><strong>";
                     echo twig_escape_filter($this->env, strip_tags($this->env->getExtension('code')->abbrClass($this->getAttribute($context["listener"], "class", array()))), "html", null, true);
                     echo "</strong>::";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "method", array()), "html", null, true);
                     echo "()\n                            <span class=\"text-muted newline text-small\">";
                     // line 105
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "file", array()), "html", null, true);
                     echo " (line ";
                     echo twig_escape_filter($this->env, $this->getAttribute($context["listener"], "line", array()), "html", null, true);
                     echo ")</span>\n                        ";
                 }
                 // line 107
                 echo "\n                    ";
             }
             // line 109
             echo "                </td>\n            </tr>\n\n            ";
             // line 112
             if ($this->getAttribute($context["loop"], "last", array())) {
                 // line 113
                 echo "                </tbody>\n            ";
             }
             // line 115
             echo "        ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['listener'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 116
         echo "    </table>\n";
         $__internal_a168839227312b159c323ec6189e9b39104c1224edfcfe1e022600d82f498310->leave($__internal_a168839227312b159c323ec6189e9b39104c1224edfcfe1e022600d82f498310_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
    protected function doDisplay(array $context, array $blocks = array())
    {
        $tags = array("for" => 26, "if" => 28);
        $filters = array("without" => 27, "length" => 34, "first" => 41);
        $functions = array();

        try {
            $this->env->getExtension('sandbox')->checkSecurity(
                array('for', 'if'),
                array('without', 'length', 'first'),
                array()
            );
        } catch (Twig_Sandbox_SecurityError $e) {
            $e->setTemplateFile($this->getTemplateName());

            if ($e instanceof Twig_Sandbox_SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
                $e->setTemplateLine($tags[$e->getTagName()]);
            } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
                $e->setTemplateLine($filters[$e->getFilterName()]);
            } elseif ($e instanceof Twig_Sandbox_SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
                $e->setTemplateLine($functions[$e->getFunctionName()]);
            }

            throw $e;
        }

        // line 26
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["message_list"]) ? $context["message_list"] : null));
        foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
            // line 27
            echo "  <div role=\"contentinfo\" aria-label=\"";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array"), "html", null, true));
            echo "\"";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without((isset($context["attributes"]) ? $context["attributes"] : null), "role", "aria-label"), "html", null, true));
            echo ">
    ";
            // line 28
            if (($context["type"] == "error")) {
                // line 29
                echo "      <div role=\"alert\">
    ";
            }
            // line 31
            echo "      ";
            if ($this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array")) {
                // line 32
                echo "        <h2 class=\"visually-hidden\">";
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array"), "html", null, true));
                echo "</h2>
      ";
            }
            // line 34
            echo "      ";
            if ((twig_length_filter($this->env, $context["messages"]) > 1)) {
                // line 35
                echo "        <ul>
          ";
                // line 36
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["messages"]);
                foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                    // line 37
                    echo "            <li>";
                    echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["message"], "html", null, true));
                    echo "</li>
          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 39
                echo "        </ul>
      ";
            } else {
                // line 41
                echo "        ";
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_first($this->env, $context["messages"]), "html", null, true));
                echo "
      ";
            }
            // line 43
            echo "    ";
            if (($context["type"] == "error")) {
                // line 44
                echo "      </div>
    ";
            }
            // line 46
            echo "  </div>
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }
    public function block_messages($context, array $blocks = array())
    {
        // line 26
        $context['_parent'] = $context;
        $context['_seq'] = twig_ensure_traversable((isset($context["message_list"]) ? $context["message_list"] : null));
        foreach ($context['_seq'] as $context["type"] => $context["messages"]) {
            // line 27
            echo "  ";
            // line 28
            $context["classes"] = array(0 => "messages", 1 => ("messages--" .             // line 30
$context["type"]));
            // line 33
            echo "  <div role=\"contentinfo\" aria-label=\"";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array"), "html", null, true));
            echo "\"";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_without($this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "addClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "role", "aria-label"), "html", null, true));
            echo ">
    ";
            // line 34
            if (($context["type"] == "error")) {
                // line 35
                echo "      <div role=\"alert\">
    ";
            }
            // line 37
            echo "      ";
            if ($this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array")) {
                // line 38
                echo "        <h2 class=\"visually-hidden\">";
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["status_headings"]) ? $context["status_headings"] : null), $context["type"], array(), "array"), "html", null, true));
                echo "</h2>
      ";
            }
            // line 40
            echo "      ";
            if ((twig_length_filter($this->env, $context["messages"]) > 1)) {
                // line 41
                echo "        <ul class=\"messages__list\">
          ";
                // line 42
                $context['_parent'] = $context;
                $context['_seq'] = twig_ensure_traversable($context["messages"]);
                foreach ($context['_seq'] as $context["_key"] => $context["message"]) {
                    // line 43
                    echo "            <li class=\"messages__item\">";
                    echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $context["message"], "html", null, true));
                    echo "</li>
          ";
                }
                $_parent = $context['_parent'];
                unset($context['_seq'], $context['_iterated'], $context['_key'], $context['message'], $context['_parent'], $context['loop']);
                $context = array_intersect_key($context, $_parent) + $_parent;
                // line 45
                echo "        </ul>
      ";
            } else {
                // line 47
                echo "        ";
                echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, twig_first($this->env, $context["messages"]), "html", null, true));
                echo "
      ";
            }
            // line 49
            echo "    ";
            if (($context["type"] == "error")) {
                // line 50
                echo "      </div>
    ";
            }
            // line 52
            echo "  </div>
  ";
            // line 54
            echo "  ";
            echo $this->env->getExtension('sandbox')->ensureToStringAllowed($this->env->getExtension('drupal_core')->escapeFilter($this->env, $this->getAttribute((isset($context["attributes"]) ? $context["attributes"] : null), "removeClass", array(0 => (isset($context["classes"]) ? $context["classes"] : null)), "method"), "html", null, true));
            echo "
";
        }
        $_parent = $context['_parent'];
        unset($context['_seq'], $context['_iterated'], $context['type'], $context['messages'], $context['_parent'], $context['loop']);
        $context = array_intersect_key($context, $_parent) + $_parent;
    }
 protected function doDisplay(array $context, array $blocks = array())
 {
     $__internal_28cd99dfd762e9b2a5ac1f52a7d569e09757f2e69b551a1684e4b6e2f9270fc7 = $this->env->getExtension("native_profiler");
     $__internal_28cd99dfd762e9b2a5ac1f52a7d569e09757f2e69b551a1684e4b6e2f9270fc7->enter($__internal_28cd99dfd762e9b2a5ac1f52a7d569e09757f2e69b551a1684e4b6e2f9270fc7_prof = new Twig_Profiler_Profile($this->getTemplateName(), "template", "DoctrineBundle:Collector:explain.html.twig"));
     // line 1
     echo "<strong>Explanation:</strong>\n\n";
     // line 3
     if (twig_length_filter($this->env, $this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")) > 1) {
         // line 4
         echo "    ";
         // line 5
         echo "    <table style=\"margin: 5px 0;\">\n        <thead>\n            <tr>\n                ";
         // line 8
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(twig_get_array_keys_filter($this->getAttribute(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), 0, array(), "array")));
         foreach ($context['_seq'] as $context["_key"] => $context["label"]) {
             // line 9
             echo "                    <th>";
             echo twig_escape_filter($this->env, $context["label"], "html", null, true);
             echo "</th>\n                ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['label'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 11
         echo "            </tr>\n        </thead>\n        <tbody>\n            ";
         // line 14
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 15
             echo "            <tr>\n                ";
             // line 16
             $context['_parent'] = (array) $context;
             $context['_seq'] = twig_ensure_traversable($context["row"]);
             foreach ($context['_seq'] as $context["key"] => $context["item"]) {
                 // line 17
                 echo "                    <td>";
                 echo twig_escape_filter($this->env, strtr($context["item"], array("," => ", ")), "html", null, true);
                 echo "</td>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['key'], $context['item'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 19
             echo "            </tr>\n            ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 21
         echo "        </tbody>\n    </table>\n";
     } else {
         // line 24
         echo "    ";
         // line 25
         echo "    <pre style=\"margin: 5px 0;\">";
         // line 26
         $context['_parent'] = (array) $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"));
         foreach ($context['_seq'] as $context["_key"] => $context["row"]) {
             // line 27
             echo twig_escape_filter($this->env, twig_first($this->env, $context["row"]), "html", null, true);
             echo "\n";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['row'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 29
         echo "</pre>\n";
     }
     $__internal_28cd99dfd762e9b2a5ac1f52a7d569e09757f2e69b551a1684e4b6e2f9270fc7->leave($__internal_28cd99dfd762e9b2a5ac1f52a7d569e09757f2e69b551a1684e4b6e2f9270fc7_prof);
 }
 public function getform_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("name" => $__name__, "data" => $__data__, "forms_by_hash" => $__forms_by_hash__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269 = $this->env->getExtension("native_profiler");
         $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269->enter($__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "form_tree_details"));
         // line 458
         echo "    ";
         $context["tree"] = $this;
         // line 459
         echo "    <div class=\"tree-details\" ";
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "id", array(), "any", true, true)) {
             echo "id=\"";
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-details\"";
         }
         echo ">\n        <h2>\n            ";
         // line 461
         echo twig_escape_filter($this->env, array_key_exists("name", $context) ? _twig_default_filter(isset($context["name"]) ? $context["name"] : $this->getContext($context, "name"), "(no name)") : "(no name)", "html", null, true);
         echo "\n            ";
         // line 462
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "type_class", array(), "any", true, true) && twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "type", array(), "any", true, true)) {
             // line 463
             echo "            <span class=\"form-type\">[<abbr title=\"";
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type_class", array()), "html", null, true);
             echo "\">";
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "type", array()), "html", null, true);
             echo "</abbr>]</span>\n            ";
         }
         // line 465
         echo "        </h2>\n\n        ";
         // line 467
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "errors", array(), "any", true, true) && twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array())) > 0) {
             // line 468
             echo "        <div class=\"errors\">\n            <h3>\n                <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 470
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\" href=\"#\">\n                    Errors <span class=\"toggle-icon\"></span>\n                </a>\n            </h3>\n\n            <table id=\"";
             // line 475
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-errors\">\n                <thead>\n                    <tr>\n                        <th>Message</th>\n                        <th>Origin</th>\n                        <th>Cause</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 484
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "errors", array()));
             foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
                 // line 485
                 echo "                <tr>\n                    <td>";
                 // line 486
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["error"], "message", array()), "html", null, true);
                 echo "</td>\n                    <td>\n                        ";
                 // line 488
                 if (twig_test_empty(twig_template_get_attributes($this, $context["error"], "origin", array()))) {
                     // line 489
                     echo "                            <em>This form.</em>\n                        ";
                 } elseif (!twig_template_get_attributes($this, isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : null, twig_template_get_attributes($this, $context["error"], "origin", array()), array(), "array", true, true)) {
                     // line 491
                     echo "                            <em>Unknown.</em>\n                        ";
                 } else {
                     // line 493
                     echo "                            ";
                     echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"), twig_template_get_attributes($this, $context["error"], "origin", array()), array(), "array"), "name", array()), "html", null, true);
                     echo "\n                        ";
                 }
                 // line 495
                 echo "                    </td>\n                    <td>\n                        ";
                 // line 497
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, $context["error"], "trace", array()));
                 $context['_iterated'] = false;
                 $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
                 if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
                     $length = count($context['_seq']);
                     $context['loop']['revindex0'] = $length - 1;
                     $context['loop']['revindex'] = $length;
                     $context['loop']['length'] = $length;
                     $context['loop']['last'] = 1 === $length;
                 }
                 foreach ($context['_seq'] as $context["_key"] => $context["trace"]) {
                     // line 498
                     echo "                            ";
                     if (!twig_template_get_attributes($this, $context["loop"], "first", array())) {
                         // line 499
                         echo "                                <span class=\"newline\">Caused by:</span>\n                            ";
                     }
                     // line 501
                     echo "\n                            ";
                     // line 502
                     if (twig_template_get_attributes($this, $context["trace"], "root", array(), "any", true, true)) {
                         // line 503
                         echo "                                <strong class=\"newline\">";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "class", array()), "html", null, true);
                         echo "</strong>\n                                <pre>";
                         // line 505
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "root", array()), "html", null, true);
                         // line 506
                         if (!twig_test_empty(twig_template_get_attributes($this, $context["trace"], "path", array()))) {
                             // line 507
                             if (twig_first($this->env, twig_template_get_attributes($this, $context["trace"], "path", array())) != "[") {
                                 echo ".";
                             }
                             // line 508
                             echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "path", array()), "html", null, true);
                         }
                         // line 509
                         echo " = ";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "value", array()), "html", null, true);
                         // line 510
                         echo "</pre>\n                            ";
                     } elseif (twig_template_get_attributes($this, $context["trace"], "message", array(), "any", true, true)) {
                         // line 512
                         echo "                                <strong class=\"newline\">";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "class", array()), "html", null, true);
                         echo "</strong>\n                                <pre>";
                         // line 513
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["trace"], "message", array()), "html", null, true);
                         echo "</pre>\n                            ";
                     } else {
                         // line 515
                         echo "                                <pre>";
                         echo twig_escape_filter($this->env, $context["trace"], "html", null, true);
                         echo "</pre>\n                            ";
                     }
                     // line 517
                     echo "                        ";
                     $context['_iterated'] = true;
                     ++$context['loop']['index0'];
                     ++$context['loop']['index'];
                     $context['loop']['first'] = false;
                     if (isset($context['loop']['length'])) {
                         --$context['loop']['revindex0'];
                         --$context['loop']['revindex'];
                         $context['loop']['last'] = 0 === $context['loop']['revindex0'];
                     }
                 }
                 if (!$context['_iterated']) {
                     // line 518
                     echo "                            <em>Unknown.</em>\n                        ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['_key'], $context['trace'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 520
                 echo "                    </td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 523
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 527
         echo "\n        ";
         // line 528
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", true, true)) {
             // line 529
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 530
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\" href=\"#\">\n                Default Data <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 535
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-default_data\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Property</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Model Format</th>\n                        <td>\n                            ";
             // line 547
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                 // line 548
                 echo "                                ";
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "model", array()), "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 550
                 echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
             }
             // line 552
             echo "                        </td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n                        <td>";
             // line 556
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "norm", array()), "html", null, true);
             echo "</td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">View Format</th>\n                        <td>\n                            ";
             // line 561
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "default_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                 // line 562
                 echo "                                ";
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "default_data", array()), "view", array()), "html", null, true);
                 echo "\n                            ";
             } else {
                 // line 564
                 echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
             }
             // line 566
             echo "                        </td>\n                    </tr>\n                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 572
         echo "\n        ";
         // line 573
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", true, true)) {
             // line 574
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 575
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\" href=\"#\">\n                Submitted Data <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 580
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-submitted_data\">\n        ";
             // line 581
             if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "norm", array(), "any", true, true)) {
                 // line 582
                 echo "            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Property</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">View Format</th>\n                        <td>\n                            ";
                 // line 593
                 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "view", array(), "any", true, true)) {
                     // line 594
                     echo "                                ";
                     echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "view", array()), "html", null, true);
                     echo "\n                            ";
                 } else {
                     // line 596
                     echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
                 }
                 // line 598
                 echo "                        </td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Normalized Format</th>\n                        <td>";
                 // line 602
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "norm", array()), "html", null, true);
                 echo "</td>\n                    </tr>\n                    <tr>\n                        <th class=\"font-normal\" scope=\"row\">Model Format</th>\n                        <td>\n                            ";
                 // line 607
                 if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "submitted_data", array(), "any", false, true), "model", array(), "any", true, true)) {
                     // line 608
                     echo "                                ";
                     echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "submitted_data", array()), "model", array()), "html", null, true);
                     echo "\n                            ";
                 } else {
                     // line 610
                     echo "                                <em class=\"font-normal text-muted\">same as normalized format</em>\n                            ";
                 }
                 // line 612
                 echo "                        </td>\n                    </tr>\n                </tbody>\n            </table>\n        ";
             } else {
                 // line 617
                 echo "            <div class=\"empty\">\n                <p>This form was not submitted.</p>\n            </div>\n        ";
             }
             // line 621
             echo "        </div>\n        ";
         }
         // line 623
         echo "\n        ";
         // line 624
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "passed_options", array(), "any", true, true)) {
             // line 625
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 626
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\" href=\"#\">\n                Passed Options <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 631
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-passed_options\">\n            ";
             // line 632
             if (twig_length_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()))) {
                 // line 633
                 echo "            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Option</th>\n                        <th>Passed Value</th>\n                        <th>Resolved Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
                 // line 642
                 $context['_parent'] = $context;
                 $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "passed_options", array()));
                 foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                     // line 643
                     echo "                <tr>\n                    <th>";
                     // line 644
                     echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                     echo "</th>\n                    <td>";
                     // line 645
                     echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                     echo "</td>\n                    <td>\n                        ";
                     // line 647
                     if (twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array") === $context["value"]) {
                         // line 648
                         echo "                            <em class=\"font-normal text-muted\">same as passed value</em>\n                        ";
                     } else {
                         // line 650
                         echo "                            ";
                         echo twig_escape_filter($this->env, twig_template_get_attributes($this, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()), $context["option"], array(), "array"), "html", null, true);
                         echo "\n                        ";
                     }
                     // line 652
                     echo "                    </td>\n                </tr>\n                ";
                 }
                 $_parent = $context['_parent'];
                 unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
                 $context = array_intersect_key($context, $_parent) + $_parent;
                 // line 655
                 echo "                </tbody>\n            </table>\n            ";
             } else {
                 // line 658
                 echo "                <div class=\"empty\">\n                    <p>No options where passed when constructing this form.</p>\n                </div>\n            ";
             }
             // line 662
             echo "        </div>\n        ";
         }
         // line 664
         echo "\n        ";
         // line 665
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "resolved_options", array(), "any", true, true)) {
             // line 666
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 667
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" href=\"#\">\n                Resolved Options <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 672
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-resolved_options\" class=\"hidden\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Option</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 681
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "resolved_options", array()));
             foreach ($context['_seq'] as $context["option"] => $context["value"]) {
                 // line 682
                 echo "                <tr>\n                    <th scope=\"row\">";
                 // line 683
                 echo twig_escape_filter($this->env, $context["option"], "html", null, true);
                 echo "</th>\n                    <td>";
                 // line 684
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 687
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 691
         echo "\n        ";
         // line 692
         if (twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : null, "view_vars", array(), "any", true, true)) {
             // line 693
             echo "        <h3>\n            <a class=\"toggle-button\" data-toggle-target-id=\"";
             // line 694
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" href=\"#\">\n                View Variables <span class=\"toggle-icon\"></span>\n            </a>\n        </h3>\n\n        <div id=\"";
             // line 699
             echo twig_escape_filter($this->env, twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "id", array()), "html", null, true);
             echo "-view_vars\" class=\"hidden\">\n            <table>\n                <thead>\n                    <tr>\n                        <th width=\"180\">Variable</th>\n                        <th>Value</th>\n                    </tr>\n                </thead>\n                <tbody>\n                ";
             // line 708
             $context['_parent'] = $context;
             $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "view_vars", array()));
             foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
                 // line 709
                 echo "                <tr>\n                    <th scope=\"row\">";
                 // line 710
                 echo twig_escape_filter($this->env, $context["variable"], "html", null, true);
                 echo "</th>\n                    <td>";
                 // line 711
                 echo twig_escape_filter($this->env, $context["value"], "html", null, true);
                 echo "</td>\n                </tr>\n                ";
             }
             $_parent = $context['_parent'];
             unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
             $context = array_intersect_key($context, $_parent) + $_parent;
             // line 714
             echo "                </tbody>\n            </table>\n        </div>\n        ";
         }
         // line 718
         echo "    </div>\n\n    ";
         // line 720
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(twig_template_get_attributes($this, isset($context["data"]) ? $context["data"] : $this->getContext($context, "data"), "children", array()));
         foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
             // line 721
             echo "        ";
             echo $context["tree"]->getform_tree_details($context["childName"], $context["childData"], isset($context["forms_by_hash"]) ? $context["forms_by_hash"] : $this->getContext($context, "forms_by_hash"));
             echo "\n    ";
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         $__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269->leave($__internal_962eb7e0cbc57e56d2e21d81a2c40cbb8359edbfaa8fa47da4274a12a7bff269_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }
 public function getrender_table($__logs__ = null, $__show_level__ = false, $__is_deprecation__ = false, ...$__varargs__)
 {
     $context = $this->env->mergeGlobals(array("logs" => $__logs__, "show_level" => $__show_level__, "is_deprecation" => $__is_deprecation__, "varargs" => $__varargs__));
     $blocks = array();
     ob_start();
     try {
         $__internal_aed3f11f18315380d7c971ed6a75596cc0f09acd5bce9f61861b6117a4d9ae48 = $this->env->getExtension("native_profiler");
         $__internal_aed3f11f18315380d7c971ed6a75596cc0f09acd5bce9f61861b6117a4d9ae48->enter($__internal_aed3f11f18315380d7c971ed6a75596cc0f09acd5bce9f61861b6117a4d9ae48_prof = new Twig_Profiler_Profile($this->getTemplateName(), "macro", "render_table"));
         // line 116
         echo "    ";
         $context["helper"] = $this;
         // line 117
         echo "    ";
         $context["channel_is_defined"] = twig_template_get_attributes($this, twig_first($this->env, isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs")), "channel", array(), "any", true, true);
         // line 118
         echo "\n    <table class=\"logs\">\n        <thead>\n            <tr>\n                <th>";
         // line 122
         echo isset($context["show_level"]) ? $context["show_level"] : $this->getContext($context, "show_level") ? "Level" : "Time";
         echo "</th>\n                ";
         // line 123
         if (isset($context["channel_is_defined"]) ? $context["channel_is_defined"] : $this->getContext($context, "channel_is_defined")) {
             echo "<th>Channel</th>";
         }
         // line 124
         echo "                <th>Message</th>\n            </tr>\n        </thead>\n\n        <tbody>\n            ";
         // line 129
         $context['_parent'] = $context;
         $context['_seq'] = twig_ensure_traversable(isset($context["logs"]) ? $context["logs"] : $this->getContext($context, "logs"));
         $context['loop'] = array('parent' => $context['_parent'], 'index0' => 0, 'index' => 1, 'first' => true);
         if (is_array($context['_seq']) || is_object($context['_seq']) && $context['_seq'] instanceof Countable) {
             $length = count($context['_seq']);
             $context['loop']['revindex0'] = $length - 1;
             $context['loop']['revindex'] = $length;
             $context['loop']['length'] = $length;
             $context['loop']['last'] = 1 === $length;
         }
         foreach ($context['_seq'] as $context["_key"] => $context["log"]) {
             // line 130
             echo "                ";
             $context["css_class"] = isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation") ? "" : (twig_in_filter(twig_template_get_attributes($this, $context["log"], "priorityName", array()), array(0 => "CRITICAL", 1 => "ERROR", 2 => "ALERT", 3 => "EMERGENCY")) ? "status-error" : (twig_in_filter(twig_template_get_attributes($this, $context["log"], "priorityName", array()), array(0 => "NOTICE", 1 => "WARNING")) ? "status-warning" : ""));
             // line 134
             echo "                <tr class=\"";
             echo twig_escape_filter($this->env, isset($context["css_class"]) ? $context["css_class"] : $this->getContext($context, "css_class"), "html", null, true);
             echo "\">\n                    <td class=\"font-normal text-small\">\n                        ";
             // line 136
             if (isset($context["show_level"]) ? $context["show_level"] : $this->getContext($context, "show_level")) {
                 // line 137
                 echo "                            <span class=\"colored text-bold nowrap\">";
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["log"], "priorityName", array()), "html", null, true);
                 echo "</span>\n                        ";
             }
             // line 139
             echo "                        <span class=\"text-muted nowrap newline\">";
             echo twig_escape_filter($this->env, twig_date_format_filter($this->env, twig_template_get_attributes($this, $context["log"], "timestamp", array()), "H:i:s"), "html", null, true);
             echo "</span>\n                    </td>\n\n                    ";
             // line 142
             if (isset($context["channel_is_defined"]) ? $context["channel_is_defined"] : $this->getContext($context, "channel_is_defined")) {
                 // line 143
                 echo "                        <td class=\"font-normal text-small text-bold nowrap\">";
                 echo twig_escape_filter($this->env, twig_template_get_attributes($this, $context["log"], "channel", array()), "html", null, true);
                 echo "</td>\n                    ";
             }
             // line 145
             echo "\n                    <td class=\"font-normal\">";
             // line 146
             echo $context["helper"]->getrender_log_message(twig_template_get_attributes($this, $context["loop"], "index", array()), $context["log"], isset($context["is_deprecation"]) ? $context["is_deprecation"] : $this->getContext($context, "is_deprecation"));
             echo "</td>\n                </tr>\n            ";
             ++$context['loop']['index0'];
             ++$context['loop']['index'];
             $context['loop']['first'] = false;
             if (isset($context['loop']['length'])) {
                 --$context['loop']['revindex0'];
                 --$context['loop']['revindex'];
                 $context['loop']['last'] = 0 === $context['loop']['revindex0'];
             }
         }
         $_parent = $context['_parent'];
         unset($context['_seq'], $context['_iterated'], $context['_key'], $context['log'], $context['_parent'], $context['loop']);
         $context = array_intersect_key($context, $_parent) + $_parent;
         // line 149
         echo "        </tbody>\n    </table>\n";
         $__internal_aed3f11f18315380d7c971ed6a75596cc0f09acd5bce9f61861b6117a4d9ae48->leave($__internal_aed3f11f18315380d7c971ed6a75596cc0f09acd5bce9f61861b6117a4d9ae48_prof);
     } catch (Exception $e) {
         ob_end_clean();
         throw $e;
     }
     return '' === ($tmp = ob_get_clean()) ? '' : new Twig_Markup($tmp, $this->env->getCharset());
 }