var/cache/dev/twig/1a/1a9df3c375f9bf0f61c45ff521cda2c0.php line 55

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. /* @WebProfiler/Collector/form.html.twig */
  15. class __TwigTemplate_51b78136c254d16ab98ef54fded81693 extends Template
  16. {
  17. private $source;
  18. private $macros = [];
  19. public function __construct(Environment $env)
  20. {
  21. parent::__construct($env);
  22. $this->source = $this->getSourceContext();
  23. $this->blocks = [
  24. 'toolbar' => [$this, 'block_toolbar'],
  25. 'menu' => [$this, 'block_menu'],
  26. 'head' => [$this, 'block_head'],
  27. 'panel' => [$this, 'block_panel'],
  28. ];
  29. }
  30. protected function doGetParent(array $context)
  31. {
  32. // line 1
  33. return "@WebProfiler/Profiler/layout.html.twig";
  34. }
  35. protected function doDisplay(array $context, array $blocks = [])
  36. {
  37. $macros = $this->macros;
  38. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/form.html.twig"));
  40. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@WebProfiler/Collector/form.html.twig"));
  42. // line 3
  43. $macros["__internal_parse_1"] = $this->macros["__internal_parse_1"] = $this;
  44. // line 1
  45. $this->parent = $this->loadTemplate("@WebProfiler/Profiler/layout.html.twig", "@WebProfiler/Collector/form.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 5
  51. public function block_toolbar($context, array $blocks = [])
  52. {
  53. $macros = $this->macros;
  54. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  56. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "toolbar"));
  58. // line 6
  59. yield " ";
  60. if (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "data", [], "any", false, false, false, 6), "nb_errors", [], "any", false, false, false, 6) > 0) || Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 6, $this->source); })()), "data", [], "any", false, false, false, 6), "forms", [], "any", false, false, false, 6)))) {
  61. // line 7
  62. yield " ";
  63. $context["status_color"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 7, $this->source); })()), "data", [], "any", false, false, false, 7), "nb_errors", [], "any", false, false, false, 7)) ? ("red") : (""));
  64. // line 8
  65. yield " ";
  66. $context["icon"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  67. // line 9
  68. yield " ";
  69. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/form.svg");
  70. yield "
  71. <span class=\"sf-toolbar-value\">
  72. ";
  73. // line 11
  74. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 11, $this->source); })()), "data", [], "any", false, false, false, 11), "nb_errors", [], "any", false, false, false, 11)) ?: (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 11, $this->source); })()), "data", [], "any", false, false, false, 11), "forms", [], "any", false, false, false, 11)))), "html", null, true);
  75. yield "
  76. </span>
  77. ";
  78. return; yield '';
  79. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  80. // line 14
  81. yield "
  82. ";
  83. // line 15
  84. $context["text"] = ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  85. // line 16
  86. yield " <div class=\"sf-toolbar-info-piece\">
  87. <b>Number of forms</b>
  88. <span class=\"sf-toolbar-status\">";
  89. // line 18
  90. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 18, $this->source); })()), "data", [], "any", false, false, false, 18), "forms", [], "any", false, false, false, 18)), "html", null, true);
  91. yield "</span>
  92. </div>
  93. <div class=\"sf-toolbar-info-piece\">
  94. <b>Number of errors</b>
  95. <span class=\"sf-toolbar-status sf-toolbar-status-";
  96. // line 22
  97. yield (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 22, $this->source); })()), "data", [], "any", false, false, false, 22), "nb_errors", [], "any", false, false, false, 22) > 0)) ? ("red") : (""));
  98. yield "\">";
  99. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 22, $this->source); })()), "data", [], "any", false, false, false, 22), "nb_errors", [], "any", false, false, false, 22), "html", null, true);
  100. yield "</span>
  101. </div>
  102. ";
  103. return; yield '';
  104. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  105. // line 25
  106. yield "
  107. ";
  108. // line 26
  109. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Profiler/toolbar_item.html.twig", ["link" => (isset($context["profiler_url"]) || array_key_exists("profiler_url", $context) ? $context["profiler_url"] : (function () { throw new RuntimeError('Variable "profiler_url" does not exist.', 26, $this->source); })()), "status" => (isset($context["status_color"]) || array_key_exists("status_color", $context) ? $context["status_color"] : (function () { throw new RuntimeError('Variable "status_color" does not exist.', 26, $this->source); })())]);
  110. yield "
  111. ";
  112. }
  113. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  114. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  115. return; yield '';
  116. }
  117. // line 30
  118. public function block_menu($context, array $blocks = [])
  119. {
  120. $macros = $this->macros;
  121. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  122. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  123. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  124. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "menu"));
  125. // line 31
  126. yield " <span class=\"label label-status-";
  127. yield ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 31, $this->source); })()), "data", [], "any", false, false, false, 31), "nb_errors", [], "any", false, false, false, 31)) ? ("error") : (""));
  128. yield " ";
  129. yield ((Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 31, $this->source); })()), "data", [], "any", false, false, false, 31), "forms", [], "any", false, false, false, 31))) ? ("disabled") : (""));
  130. yield "\">
  131. <span class=\"icon\">";
  132. // line 32
  133. yield Twig\Extension\CoreExtension::include($this->env, $context, "@WebProfiler/Icon/form.svg");
  134. yield "</span>
  135. <strong>Forms</strong>
  136. ";
  137. // line 34
  138. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 34, $this->source); })()), "data", [], "any", false, false, false, 34), "nb_errors", [], "any", false, false, false, 34) > 0)) {
  139. // line 35
  140. yield " <span class=\"count\">
  141. <span>";
  142. // line 36
  143. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 36, $this->source); })()), "data", [], "any", false, false, false, 36), "nb_errors", [], "any", false, false, false, 36), "html", null, true);
  144. yield "</span>
  145. </span>
  146. ";
  147. }
  148. // line 39
  149. yield " </span>
  150. ";
  151. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  152. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  153. return; yield '';
  154. }
  155. // line 42
  156. public function block_head($context, array $blocks = [])
  157. {
  158. $macros = $this->macros;
  159. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  160. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  161. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  162. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "head"));
  163. // line 43
  164. yield " ";
  165. yield from $this->yieldParentBlock("head", $context, $blocks);
  166. yield "
  167. <style>
  168. #tree-menu {
  169. float: left;
  170. padding-right: 10px;
  171. width: 230px;
  172. }
  173. #tree-menu ul {
  174. list-style: none;
  175. margin: 0;
  176. padding-left: 0;
  177. }
  178. #tree-menu li {
  179. margin: 0;
  180. padding: 0;
  181. width: 100%;
  182. }
  183. #tree-menu .empty {
  184. border: 0;
  185. padding: 0;
  186. }
  187. #tree-details-container {
  188. border-left: 1px solid #DDD;
  189. margin-left: 250px;
  190. padding-left: 20px;
  191. }
  192. .tree-details {
  193. padding-bottom: 40px;
  194. }
  195. .tree-details h3 {
  196. font-size: 18px;
  197. position: relative;
  198. }
  199. .toggle-icon {
  200. display: inline-block;
  201. background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDgwx4LcKwAAAABVQTFRFAAAA////////////////ZmZm////bvjBwAAAAAV0Uk5TABZwsuCVEUjgAAAAAWJLR0QF+G/pxwAAAE1JREFUGNNjSHMSYGBgUEljSGYAAzMGBwiDhUEBwmBiEIAwGBmwgTQgQGWgA7h2uIFwK+CWwp1BpHvYEqDuATEYkBlY3IOmBq6dCPcAAIT5Eg2IksjQAAAAAElFTkSuQmCC\") no-repeat top left #5eb5e0;
  202. }
  203. .closed .toggle-icon, .closed.toggle-icon {
  204. background-position: bottom left;
  205. }
  206. .toggle-icon.empty {
  207. background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAZgBmAGYHukptAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDhIf6CA40AAAAFRJREFUOMvtk7ENACEMA61vfx767MROWfO+AdGBHlNyTZrYUZRYDBII4NWE1pNdpFarfgLUbpDaBEgBYRiEVjsvDLa1l6O4Z3wkFWN+OfLKdpisOH/TlICzukmUJwAAAABJRU5ErkJggg==\");
  208. }
  209. .tree .tree-inner {
  210. cursor: pointer;
  211. padding: 5px 7px 5px 22px;
  212. position: relative;
  213. overflow: hidden;
  214. text-overflow: ellipsis;
  215. }
  216. .tree .toggle-button {
  217. /* provide a bigger clickable area than just 10x10px */
  218. width: 16px;
  219. height: 16px;
  220. margin-left: -18px;
  221. }
  222. .tree .toggle-icon {
  223. width: 10px;
  224. height: 10px;
  225. /* position the icon in the center of the clickable area */
  226. margin-left: 3px;
  227. margin-top: 3px;
  228. background-size: 10px 20px;
  229. background-color: #AAA;
  230. }
  231. .tree .toggle-icon.empty {
  232. width: 10px;
  233. height: 10px;
  234. position: absolute;
  235. top: 50%;
  236. margin-top: -5px;
  237. margin-left: -15px;
  238. background-size: 10px 10px;
  239. }
  240. .tree ul ul .tree-inner {
  241. padding-left: 37px;
  242. }
  243. .tree ul ul ul .tree-inner {
  244. padding-left: 52px;
  245. }
  246. .tree ul ul ul ul .tree-inner {
  247. padding-left: 67px;
  248. }
  249. .tree ul ul ul ul ul .tree-inner {
  250. padding-left: 82px;
  251. }
  252. .tree .tree-inner:hover {
  253. background: #dfdfdf;
  254. }
  255. .tree .tree-inner:hover span:not(.has-error) {
  256. color: var(--base-0);
  257. }
  258. .tree .tree-inner.active, .tree .tree-inner.active:hover {
  259. background: var(--tree-active-background);
  260. font-weight: bold;
  261. }
  262. .tree .tree-inner.active .toggle-icon, .tree .tree-inner:hover .toggle-icon, .tree .tree-inner.active:hover .toggle-icon {
  263. background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDhEYXWn+sAAAABhQTFRFAAAA39/f39/f39/f39/fZmZm39/f////gc3YPwAAAAV0Uk5TAAtAc6ZeVyCYAAAAAWJLR0QF+G/pxwAAAE1JREFUGNNjSHMSYGBgUEljSGYAAzMGBwiDhUEBwmBiEIAwGBmwgXIgQGWgA7h2uIFwK+CWwp1BpHvYC6DuATEYkBlY3IOmBq6dCPcAADqLE4MnBi/fAAAAAElFTkSuQmCC\");
  264. background-color: #999;
  265. }
  266. .tree .tree-inner.active .toggle-icon.empty, .tree .tree-inner:hover .toggle-icon.empty, .tree .tree-inner.active:hover .toggle-icon.empty {
  267. background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDhoucSey4gAAABVQTFRFAAAA39/f39/f39/f39/fZmZm39/fD5Dx2AAAAAV0Uk5TAAtAc6ZeVyCYAAAAAWJLR0QF+G/pxwAAADJJREFUCNdjSHMSYGBgUEljSGYAAzMGBwiDhUEBwmBiEIAwGBnIA3DtcAPhVsAthTkDAFOfBKW9C1iqAAAAAElFTkSuQmCC\");
  268. }
  269. .tree-details .toggle-icon {
  270. width: 16px;
  271. height: 16px;
  272. /* vertically center the button */
  273. position: absolute;
  274. top: 50%;
  275. margin-top: -9px;
  276. margin-left: 6px;
  277. }
  278. .badge-error {
  279. float: right;
  280. background: var(--background-error);
  281. color: #FFF;
  282. padding: 1px 4px;
  283. font-size: 10px;
  284. font-weight: bold;
  285. vertical-align: middle;
  286. }
  287. .has-error {
  288. color: var(--color-error);
  289. }
  290. .errors h3 {
  291. color: var(--color-error);
  292. }
  293. .errors th {
  294. background: var(--background-error);
  295. color: #FFF;
  296. }
  297. .errors .toggle-icon {
  298. background-color: var(--background-error);
  299. }
  300. h3 a, h3 a:hover, h3 a:focus {
  301. color: inherit;
  302. text-decoration: inherit;
  303. }
  304. h2 + h3.form-data-type {
  305. margin-top: 0;
  306. }
  307. h3.form-data-type + h3 {
  308. margin-top: 1em;
  309. }
  310. .theme-dark .toggle-icon {
  311. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAVUExURUdwTH+Ag0lNUZiYmGRmbP///zU5P2n9VV4AAAAFdFJOUwCv+yror0g1sQAAAE1JREFUGNNjSFM0YGBgEEpjSGEAAzcGBQiDiUEAwmBkMIAwmBmwgVAgQGWgA7h2uIFwK+CWwp1BpHtYA6DuATEYkBlY3IOmBq6dCPcAAKMtEEs3tfChAAAAAElFTkSuQmCC');
  312. }
  313. .theme-dark .toggle-icon.empty {
  314. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAASUExURUdwTDI3OzQ5PS4uLjU3PzU5P4keoyIAAAAFdFJOUwBApgtzrnKGEwAAADJJREFUCNdjCFU0YGBgEAplCGEAA1cGBQiDiUEAwmBkMIAwmBnIA3DtcAPhVsAthTkDACsZBBmrTTSxAAAAAElFTkSuQmCC');
  315. }
  316. .theme-dark .tree .tree-inner.active .toggle-icon, .theme-dark .tree .tree-inner:hover .toggle-icon, .theme-dark .tree .tree-inner.active:hover .toggle-icon {
  317. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAAD1BMVEVHcEx/gIOYmJiZmZn///+IJ2wIAAAAA3RSTlMAryoIUq0uAAAAUElEQVQY02NgYFQ2NjYWYGBgMAYDBgZmCMOAQRjCMGRQhjCMoEqAipAYLkCAykBXA9cONxBuBdxShDOIc4+JM9Q9IIYxMgOLe9DUwLUT4R4AznguG0qfEa0AAAAASUVORK5CYII=');
  318. background-color: transparent;
  319. }
  320. .theme-dark .tree .tree-inner.active .toggle-icon.empty, .theme-dark .tree .tree-inner:hover .toggle-icon.empty, .theme-dark .tree .tree-inner.active:hover .toggle-icon.empty {
  321. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEVHcEwyNzuqqqrd9nIgAAAAAnRSTlMAQABPjKgAAAArSURBVAjXY2BctcqBgWvVqgUMWqtWrWDIWrVqJcMqICCGACsGawMbADIKANflJYEoGMqtAAAAAElFTkSuQmCC');
  322. background-color: transparent;
  323. }
  324. </style>
  325. ";
  326. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  327. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  328. return; yield '';
  329. }
  330. // line 207
  331. public function block_panel($context, array $blocks = [])
  332. {
  333. $macros = $this->macros;
  334. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  335. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  336. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  337. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "panel"));
  338. // line 208
  339. yield " <h2>Forms</h2>
  340. ";
  341. // line 210
  342. if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 210, $this->source); })()), "data", [], "any", false, false, false, 210), "forms", [], "any", false, false, false, 210))) {
  343. // line 211
  344. yield " <div id=\"tree-menu\" class=\"tree\">
  345. <ul>
  346. ";
  347. // line 213
  348. $context['_parent'] = $context;
  349. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 213, $this->source); })()), "data", [], "any", false, false, false, 213), "forms", [], "any", false, false, false, 213));
  350. foreach ($context['_seq'] as $context["formName"] => $context["formData"]) {
  351. // line 214
  352. yield " ";
  353. yield CoreExtension::callMacro($macros["__internal_parse_1"], "macro_form_tree_entry", [$context["formName"], $context["formData"], true], 214, $context, $this->getSourceContext());
  354. yield "
  355. ";
  356. }
  357. $_parent = $context['_parent'];
  358. unset($context['_seq'], $context['_iterated'], $context['formName'], $context['formData'], $context['_parent'], $context['loop']);
  359. $context = array_intersect_key($context, $_parent) + $_parent;
  360. // line 216
  361. yield " </ul>
  362. </div>
  363. <div id=\"tree-details-container\">
  364. ";
  365. // line 220
  366. $context['_parent'] = $context;
  367. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 220, $this->source); })()), "data", [], "any", false, false, false, 220), "forms", [], "any", false, false, false, 220));
  368. $context['loop'] = [
  369. 'parent' => $context['_parent'],
  370. 'index0' => 0,
  371. 'index' => 1,
  372. 'first' => true,
  373. ];
  374. if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
  375. $length = count($context['_seq']);
  376. $context['loop']['revindex0'] = $length - 1;
  377. $context['loop']['revindex'] = $length;
  378. $context['loop']['length'] = $length;
  379. $context['loop']['last'] = 1 === $length;
  380. }
  381. foreach ($context['_seq'] as $context["formName"] => $context["formData"]) {
  382. // line 221
  383. yield " ";
  384. yield CoreExtension::callMacro($macros["__internal_parse_1"], "macro_form_tree_details", [$context["formName"], $context["formData"], CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["collector"]) || array_key_exists("collector", $context) ? $context["collector"] : (function () { throw new RuntimeError('Variable "collector" does not exist.', 221, $this->source); })()), "data", [], "any", false, false, false, 221), "forms_by_hash", [], "any", false, false, false, 221), CoreExtension::getAttribute($this->env, $this->source, $context["loop"], "first", [], "any", false, false, false, 221)], 221, $context, $this->getSourceContext());
  385. yield "
  386. ";
  387. ++$context['loop']['index0'];
  388. ++$context['loop']['index'];
  389. $context['loop']['first'] = false;
  390. if (isset($context['loop']['length'])) {
  391. --$context['loop']['revindex0'];
  392. --$context['loop']['revindex'];
  393. $context['loop']['last'] = 0 === $context['loop']['revindex0'];
  394. }
  395. }
  396. $_parent = $context['_parent'];
  397. unset($context['_seq'], $context['_iterated'], $context['formName'], $context['formData'], $context['_parent'], $context['loop']);
  398. $context = array_intersect_key($context, $_parent) + $_parent;
  399. // line 223
  400. yield " </div>
  401. ";
  402. } else {
  403. // line 225
  404. yield " <div class=\"empty\">
  405. <p>No forms were submitted for this request.</p>
  406. </div>
  407. ";
  408. }
  409. // line 229
  410. yield "
  411. <script>
  412. function Toggler(storage) {
  413. \"use strict\";
  414. var STORAGE_KEY = 'sf_toggle_data',
  415. states = {},
  416. isCollapsed = function (button) {
  417. return Sfjs.hasClass(button, 'closed');
  418. },
  419. isExpanded = function (button) {
  420. return !isCollapsed(button);
  421. },
  422. expand = function (button) {
  423. var targetId = button.dataset.toggleTargetId,
  424. target = document.getElementById(targetId);
  425. if (!target) {
  426. throw \"Toggle target \" + targetId + \" does not exist\";
  427. }
  428. if (isCollapsed(button)) {
  429. Sfjs.removeClass(button, 'closed');
  430. Sfjs.removeClass(target, 'hidden');
  431. states[targetId] = 1;
  432. storage.setItem(STORAGE_KEY, states);
  433. }
  434. },
  435. collapse = function (button) {
  436. var targetId = button.dataset.toggleTargetId,
  437. target = document.getElementById(targetId);
  438. if (!target) {
  439. throw \"Toggle target \" + targetId + \" does not exist\";
  440. }
  441. if (isExpanded(button)) {
  442. Sfjs.addClass(button, 'closed');
  443. Sfjs.addClass(target, 'hidden');
  444. states[targetId] = 0;
  445. storage.setItem(STORAGE_KEY, states);
  446. }
  447. },
  448. toggle = function (button) {
  449. if (Sfjs.hasClass(button, 'closed')) {
  450. expand(button);
  451. } else {
  452. collapse(button);
  453. }
  454. },
  455. initButtons = function (buttons) {
  456. states = storage.getItem(STORAGE_KEY, {});
  457. // must be an object, not an array or anything else
  458. // `typeof` returns \"object\" also for arrays, so the following
  459. // check must be done
  460. // see http://stackoverflow.com/questions/4775722/check-if-object-is-array
  461. if ('[object Object]' !== Object.prototype.toString.call(states)) {
  462. states = {};
  463. }
  464. for (var i = 0, l = buttons.length; i < l; ++i) {
  465. var targetId = buttons[i].dataset.toggleTargetId,
  466. target = document.getElementById(targetId);
  467. if (!target) {
  468. throw \"Toggle target \" + targetId + \" does not exist\";
  469. }
  470. // correct the initial state of the button
  471. if (Sfjs.hasClass(target, 'hidden')) {
  472. Sfjs.addClass(buttons[i], 'closed');
  473. }
  474. // attach listener for expanding/collapsing the target
  475. clickHandler(buttons[i], toggle);
  476. if (states.hasOwnProperty(targetId)) {
  477. // open or collapse based on stored data
  478. if (0 === states[targetId]) {
  479. collapse(buttons[i]);
  480. } else {
  481. expand(buttons[i]);
  482. }
  483. }
  484. }
  485. };
  486. return {
  487. initButtons: initButtons,
  488. toggle: toggle,
  489. isExpanded: isExpanded,
  490. isCollapsed: isCollapsed,
  491. expand: expand,
  492. collapse: collapse
  493. };
  494. }
  495. function JsonStorage(storage) {
  496. var setItem = function (key, data) {
  497. storage.setItem(key, JSON.stringify(data));
  498. },
  499. getItem = function (key, defaultValue) {
  500. var data = storage.getItem(key);
  501. if (null !== data) {
  502. try {
  503. return JSON.parse(data);
  504. } catch(e) {
  505. }
  506. }
  507. return defaultValue;
  508. };
  509. return {
  510. setItem: setItem,
  511. getItem: getItem
  512. };
  513. }
  514. function TabView() {
  515. \"use strict\";
  516. var activeTab = null,
  517. activeTarget = null,
  518. select = function (tab) {
  519. var targetId = tab.dataset.tabTargetId,
  520. target = document.getElementById(targetId);
  521. if (!target) {
  522. throw \"Tab target \" + targetId + \" does not exist\";
  523. }
  524. if (activeTab) {
  525. Sfjs.removeClass(activeTab, 'active');
  526. }
  527. if (activeTarget) {
  528. Sfjs.addClass(activeTarget, 'hidden');
  529. }
  530. Sfjs.addClass(tab, 'active');
  531. Sfjs.removeClass(target, 'hidden');
  532. activeTab = tab;
  533. activeTarget = target;
  534. },
  535. initTabs = function (tabs) {
  536. for (var i = 0, l = tabs.length; i < l; ++i) {
  537. var targetId = tabs[i].dataset.tabTargetId,
  538. target = document.getElementById(targetId);
  539. if (!target) {
  540. throw \"Tab target \" + targetId + \" does not exist\";
  541. }
  542. clickHandler(tabs[i], select);
  543. Sfjs.addClass(target, 'hidden');
  544. }
  545. if (tabs.length > 0) {
  546. select(tabs[0]);
  547. }
  548. };
  549. return {
  550. initTabs: initTabs,
  551. select: select
  552. };
  553. }
  554. var tabTarget = new TabView(),
  555. toggler = new Toggler(new JsonStorage(sessionStorage)),
  556. clickHandler = function (element, callback) {
  557. Sfjs.addEventListener(element, 'click', function (e) {
  558. if (!e) {
  559. e = window.event;
  560. }
  561. callback(this);
  562. if (e.preventDefault) {
  563. e.preventDefault();
  564. } else {
  565. e.returnValue = false;
  566. }
  567. e.stopPropagation();
  568. return false;
  569. });
  570. };
  571. tabTarget.initTabs(document.querySelectorAll('.tree .tree-inner'));
  572. toggler.initButtons(document.querySelectorAll('a.toggle-button'));
  573. </script>
  574. ";
  575. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  576. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  577. return; yield '';
  578. }
  579. // line 449
  580. public function macro_form_tree_entry($__name__ = null, $__data__ = null, $__is_root__ = null, ...$__varargs__)
  581. {
  582. $macros = $this->macros;
  583. $context = $this->env->mergeGlobals([
  584. "name" => $__name__,
  585. "data" => $__data__,
  586. "is_root" => $__is_root__,
  587. "varargs" => $__varargs__,
  588. ]);
  589. $blocks = [];
  590. return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  591. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  592. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "form_tree_entry"));
  593. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  594. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "form_tree_entry"));
  595. // line 450
  596. yield " ";
  597. $macros["tree"] = $this;
  598. // line 451
  599. yield " ";
  600. $context["has_error"] = (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "errors", [], "any", true, true, false, 451) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 451, $this->source); })()), "errors", [], "any", false, false, false, 451)) > 0));
  601. // line 452
  602. yield " <li>
  603. <div class=\"tree-inner\" data-tab-target-id=\"";
  604. // line 453
  605. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 453, $this->source); })()), "id", [], "any", false, false, false, 453), "html", null, true);
  606. yield "-details\" title=\"";
  607. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("name", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 453, $this->source); })()), "(no name)")) : ("(no name)")), "html", null, true);
  608. yield "\">
  609. ";
  610. // line 454
  611. if ((isset($context["has_error"]) || array_key_exists("has_error", $context) ? $context["has_error"] : (function () { throw new RuntimeError('Variable "has_error" does not exist.', 454, $this->source); })())) {
  612. // line 455
  613. yield " <div class=\"badge-error\">";
  614. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 455, $this->source); })()), "errors", [], "any", false, false, false, 455)), "html", null, true);
  615. yield "</div>
  616. ";
  617. }
  618. // line 457
  619. yield "
  620. ";
  621. // line 458
  622. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 458, $this->source); })()), "children", [], "any", false, false, false, 458))) {
  623. // line 459
  624. yield " <a class=\"toggle-button\" data-toggle-target-id=\"";
  625. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 459, $this->source); })()), "id", [], "any", false, false, false, 459), "html", null, true);
  626. yield "-children\" href=\"#\"><span class=\"toggle-icon\"></span></a>
  627. ";
  628. } else {
  629. // line 461
  630. yield " <div class=\"toggle-icon empty\"></div>
  631. ";
  632. }
  633. // line 463
  634. yield "
  635. <span ";
  636. // line 464
  637. if (((isset($context["has_error"]) || array_key_exists("has_error", $context) ? $context["has_error"] : (function () { throw new RuntimeError('Variable "has_error" does not exist.', 464, $this->source); })()) || ((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "has_children_error", [], "any", true, true, false, 464)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "has_children_error", [], "any", false, false, false, 464), false)) : (false)))) {
  638. yield "class=\"has-error\"";
  639. }
  640. yield ">
  641. ";
  642. // line 465
  643. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("name", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 465, $this->source); })()), "(no name)")) : ("(no name)")), "html", null, true);
  644. yield "
  645. </span>
  646. </div>
  647. ";
  648. // line 469
  649. if ( !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 469, $this->source); })()), "children", [], "any", false, false, false, 469))) {
  650. // line 470
  651. yield " <ul id=\"";
  652. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 470, $this->source); })()), "id", [], "any", false, false, false, 470), "html", null, true);
  653. yield "-children\" ";
  654. if (( !(isset($context["is_root"]) || array_key_exists("is_root", $context) ? $context["is_root"] : (function () { throw new RuntimeError('Variable "is_root" does not exist.', 470, $this->source); })()) && !((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "has_children_error", [], "any", true, true, false, 470)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "has_children_error", [], "any", false, false, false, 470), false)) : (false)))) {
  655. yield "class=\"hidden\"";
  656. }
  657. yield ">
  658. ";
  659. // line 471
  660. $context['_parent'] = $context;
  661. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 471, $this->source); })()), "children", [], "any", false, false, false, 471));
  662. foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
  663. // line 472
  664. yield " ";
  665. yield CoreExtension::callMacro($macros["tree"], "macro_form_tree_entry", [$context["childName"], $context["childData"], false], 472, $context, $this->getSourceContext());
  666. yield "
  667. ";
  668. }
  669. $_parent = $context['_parent'];
  670. unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
  671. $context = array_intersect_key($context, $_parent) + $_parent;
  672. // line 474
  673. yield " </ul>
  674. ";
  675. }
  676. // line 476
  677. yield " </li>
  678. ";
  679. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  680. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  681. return; yield '';
  682. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  683. }
  684. // line 479
  685. public function macro_form_tree_details($__name__ = null, $__data__ = null, $__forms_by_hash__ = null, $__show__ = null, ...$__varargs__)
  686. {
  687. $macros = $this->macros;
  688. $context = $this->env->mergeGlobals([
  689. "name" => $__name__,
  690. "data" => $__data__,
  691. "forms_by_hash" => $__forms_by_hash__,
  692. "show" => $__show__,
  693. "varargs" => $__varargs__,
  694. ]);
  695. $blocks = [];
  696. return ('' === $tmp = \Twig\Extension\CoreExtension::captureOutput((function () use (&$context, $macros, $blocks) {
  697. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  698. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "form_tree_details"));
  699. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  700. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "macro", "form_tree_details"));
  701. // line 480
  702. yield " ";
  703. $macros["tree"] = $this;
  704. // line 481
  705. yield " <div class=\"tree-details";
  706. if ( !((array_key_exists("show", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["show"]) || array_key_exists("show", $context) ? $context["show"] : (function () { throw new RuntimeError('Variable "show" does not exist.', 481, $this->source); })()), false)) : (false))) {
  707. yield " hidden";
  708. }
  709. yield "\" ";
  710. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "id", [], "any", true, true, false, 481)) {
  711. yield "id=\"";
  712. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 481, $this->source); })()), "id", [], "any", false, false, false, 481), "html", null, true);
  713. yield "-details\"";
  714. }
  715. yield ">
  716. <h2>";
  717. // line 482
  718. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(((array_key_exists("name", $context)) ? (Twig\Extension\CoreExtension::default((isset($context["name"]) || array_key_exists("name", $context) ? $context["name"] : (function () { throw new RuntimeError('Variable "name" does not exist.', 482, $this->source); })()), "(no name)")) : ("(no name)")), "html", null, true);
  719. yield "</h2>
  720. ";
  721. // line 483
  722. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "type_class", [], "any", true, true, false, 483)) {
  723. // line 484
  724. yield " <h3 class=\"dump-inline form-data-type\">";
  725. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 484, $this->source); })()), "type_class", [], "any", false, false, false, 484));
  726. yield "</h3>
  727. ";
  728. }
  729. // line 486
  730. yield "
  731. ";
  732. // line 487
  733. if ((CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "errors", [], "any", true, true, false, 487) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 487, $this->source); })()), "errors", [], "any", false, false, false, 487)) > 0))) {
  734. // line 488
  735. yield " <div class=\"errors\">
  736. <h3>
  737. <a class=\"toggle-button\" data-toggle-target-id=\"";
  738. // line 490
  739. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 490, $this->source); })()), "id", [], "any", false, false, false, 490), "html", null, true);
  740. yield "-errors\" href=\"#\">
  741. Errors <span class=\"toggle-icon\"></span>
  742. </a>
  743. </h3>
  744. <table id=\"";
  745. // line 495
  746. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 495, $this->source); })()), "id", [], "any", false, false, false, 495), "html", null, true);
  747. yield "-errors\">
  748. <thead>
  749. <tr>
  750. <th>Message</th>
  751. <th>Origin</th>
  752. <th>Cause</th>
  753. </tr>
  754. </thead>
  755. <tbody>
  756. ";
  757. // line 504
  758. $context['_parent'] = $context;
  759. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 504, $this->source); })()), "errors", [], "any", false, false, false, 504));
  760. foreach ($context['_seq'] as $context["_key"] => $context["error"]) {
  761. // line 505
  762. yield " <tr>
  763. <td>";
  764. // line 506
  765. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "message", [], "any", false, false, false, 506), "html", null, true);
  766. yield "</td>
  767. <td>
  768. ";
  769. // line 508
  770. if (Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "origin", [], "any", false, false, false, 508))) {
  771. // line 509
  772. yield " <em>This form.</em>
  773. ";
  774. } elseif ( !CoreExtension::getAttribute($this->env, $this->source, // line 510
  775. ($context["forms_by_hash"] ?? null), CoreExtension::getAttribute($this->env, $this->source, $context["error"], "origin", [], "any", false, false, false, 510), [], "array", true, true, false, 510)) {
  776. // line 511
  777. yield " <em>Unknown.</em>
  778. ";
  779. } else {
  780. // line 513
  781. yield " ";
  782. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["forms_by_hash"]) || array_key_exists("forms_by_hash", $context) ? $context["forms_by_hash"] : (function () { throw new RuntimeError('Variable "forms_by_hash" does not exist.', 513, $this->source); })()), CoreExtension::getAttribute($this->env, $this->source, $context["error"], "origin", [], "any", false, false, false, 513), [], "array", false, false, false, 513), "name", [], "any", false, false, false, 513), "html", null, true);
  783. yield "
  784. ";
  785. }
  786. // line 515
  787. yield " </td>
  788. <td>
  789. ";
  790. // line 517
  791. if (CoreExtension::getAttribute($this->env, $this->source, $context["error"], "trace", [], "any", false, false, false, 517)) {
  792. // line 518
  793. yield " <span class=\"newline\">Caused by:</span>
  794. ";
  795. // line 519
  796. $context['_parent'] = $context;
  797. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, $context["error"], "trace", [], "any", false, false, false, 519));
  798. foreach ($context['_seq'] as $context["_key"] => $context["stacked"]) {
  799. // line 520
  800. yield " ";
  801. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["stacked"]);
  802. yield "
  803. ";
  804. }
  805. $_parent = $context['_parent'];
  806. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['stacked'], $context['_parent'], $context['loop']);
  807. $context = array_intersect_key($context, $_parent) + $_parent;
  808. // line 522
  809. yield " ";
  810. } else {
  811. // line 523
  812. yield " <em>Unknown.</em>
  813. ";
  814. }
  815. // line 525
  816. yield " </td>
  817. </tr>
  818. ";
  819. }
  820. $_parent = $context['_parent'];
  821. unset($context['_seq'], $context['_iterated'], $context['_key'], $context['error'], $context['_parent'], $context['loop']);
  822. $context = array_intersect_key($context, $_parent) + $_parent;
  823. // line 528
  824. yield " </tbody>
  825. </table>
  826. </div>
  827. ";
  828. }
  829. // line 532
  830. yield "
  831. ";
  832. // line 533
  833. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "default_data", [], "any", true, true, false, 533)) {
  834. // line 534
  835. yield " <h3>
  836. <a class=\"toggle-button\" data-toggle-target-id=\"";
  837. // line 535
  838. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 535, $this->source); })()), "id", [], "any", false, false, false, 535), "html", null, true);
  839. yield "-default_data\" href=\"#\">
  840. Default Data <span class=\"toggle-icon\"></span>
  841. </a>
  842. </h3>
  843. <div id=\"";
  844. // line 540
  845. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 540, $this->source); })()), "id", [], "any", false, false, false, 540), "html", null, true);
  846. yield "-default_data\">
  847. <table>
  848. <thead>
  849. <tr>
  850. <th width=\"180\">Property</th>
  851. <th>Value</th>
  852. </tr>
  853. </thead>
  854. <tbody>
  855. <tr>
  856. <th class=\"font-normal\" scope=\"row\">Model Format</th>
  857. <td>
  858. ";
  859. // line 552
  860. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "default_data", [], "any", false, true, false, 552), "model", [], "any", true, true, false, 552)) {
  861. // line 553
  862. yield " ";
  863. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 553, $this->source); })()), "default_data", [], "any", false, false, false, 553), "seek", ["model"], "method", false, false, false, 553));
  864. yield "
  865. ";
  866. } else {
  867. // line 555
  868. yield " <em class=\"font-normal text-muted\">same as normalized format</em>
  869. ";
  870. }
  871. // line 557
  872. yield " </td>
  873. </tr>
  874. <tr>
  875. <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  876. <td>";
  877. // line 561
  878. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 561, $this->source); })()), "default_data", [], "any", false, false, false, 561), "seek", ["norm"], "method", false, false, false, 561));
  879. yield "</td>
  880. </tr>
  881. <tr>
  882. <th class=\"font-normal\" scope=\"row\">View Format</th>
  883. <td>
  884. ";
  885. // line 566
  886. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "default_data", [], "any", false, true, false, 566), "view", [], "any", true, true, false, 566)) {
  887. // line 567
  888. yield " ";
  889. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 567, $this->source); })()), "default_data", [], "any", false, false, false, 567), "seek", ["view"], "method", false, false, false, 567));
  890. yield "
  891. ";
  892. } else {
  893. // line 569
  894. yield " <em class=\"font-normal text-muted\">same as normalized format</em>
  895. ";
  896. }
  897. // line 571
  898. yield " </td>
  899. </tr>
  900. </tbody>
  901. </table>
  902. </div>
  903. ";
  904. }
  905. // line 577
  906. yield "
  907. ";
  908. // line 578
  909. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "submitted_data", [], "any", true, true, false, 578)) {
  910. // line 579
  911. yield " <h3>
  912. <a class=\"toggle-button\" data-toggle-target-id=\"";
  913. // line 580
  914. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 580, $this->source); })()), "id", [], "any", false, false, false, 580), "html", null, true);
  915. yield "-submitted_data\" href=\"#\">
  916. Submitted Data <span class=\"toggle-icon\"></span>
  917. </a>
  918. </h3>
  919. <div id=\"";
  920. // line 585
  921. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 585, $this->source); })()), "id", [], "any", false, false, false, 585), "html", null, true);
  922. yield "-submitted_data\">
  923. ";
  924. // line 586
  925. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "submitted_data", [], "any", false, true, false, 586), "norm", [], "any", true, true, false, 586)) {
  926. // line 587
  927. yield " <table>
  928. <thead>
  929. <tr>
  930. <th width=\"180\">Property</th>
  931. <th>Value</th>
  932. </tr>
  933. </thead>
  934. <tbody>
  935. <tr>
  936. <th class=\"font-normal\" scope=\"row\">View Format</th>
  937. <td>
  938. ";
  939. // line 598
  940. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "submitted_data", [], "any", false, true, false, 598), "view", [], "any", true, true, false, 598)) {
  941. // line 599
  942. yield " ";
  943. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 599, $this->source); })()), "submitted_data", [], "any", false, false, false, 599), "seek", ["view"], "method", false, false, false, 599));
  944. yield "
  945. ";
  946. } else {
  947. // line 601
  948. yield " <em class=\"font-normal text-muted\">same as normalized format</em>
  949. ";
  950. }
  951. // line 603
  952. yield " </td>
  953. </tr>
  954. <tr>
  955. <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  956. <td>";
  957. // line 607
  958. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 607, $this->source); })()), "submitted_data", [], "any", false, false, false, 607), "seek", ["norm"], "method", false, false, false, 607));
  959. yield "</td>
  960. </tr>
  961. <tr>
  962. <th class=\"font-normal\" scope=\"row\">Model Format</th>
  963. <td>
  964. ";
  965. // line 612
  966. if (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "submitted_data", [], "any", false, true, false, 612), "model", [], "any", true, true, false, 612)) {
  967. // line 613
  968. yield " ";
  969. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 613, $this->source); })()), "submitted_data", [], "any", false, false, false, 613), "seek", ["model"], "method", false, false, false, 613));
  970. yield "
  971. ";
  972. } else {
  973. // line 615
  974. yield " <em class=\"font-normal text-muted\">same as normalized format</em>
  975. ";
  976. }
  977. // line 617
  978. yield " </td>
  979. </tr>
  980. </tbody>
  981. </table>
  982. ";
  983. } else {
  984. // line 622
  985. yield " <div class=\"empty\">
  986. <p>This form was not submitted.</p>
  987. </div>
  988. ";
  989. }
  990. // line 626
  991. yield " </div>
  992. ";
  993. }
  994. // line 628
  995. yield "
  996. ";
  997. // line 629
  998. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "passed_options", [], "any", true, true, false, 629)) {
  999. // line 630
  1000. yield " <h3>
  1001. <a class=\"toggle-button\" data-toggle-target-id=\"";
  1002. // line 631
  1003. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 631, $this->source); })()), "id", [], "any", false, false, false, 631), "html", null, true);
  1004. yield "-passed_options\" href=\"#\">
  1005. Passed Options <span class=\"toggle-icon\"></span>
  1006. </a>
  1007. </h3>
  1008. <div id=\"";
  1009. // line 636
  1010. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 636, $this->source); })()), "id", [], "any", false, false, false, 636), "html", null, true);
  1011. yield "-passed_options\">
  1012. ";
  1013. // line 637
  1014. if (Twig\Extension\CoreExtension::length($this->env->getCharset(), CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 637, $this->source); })()), "passed_options", [], "any", false, false, false, 637))) {
  1015. // line 638
  1016. yield " <table>
  1017. <thead>
  1018. <tr>
  1019. <th width=\"180\">Option</th>
  1020. <th>Passed Value</th>
  1021. <th>Resolved Value</th>
  1022. </tr>
  1023. </thead>
  1024. <tbody>
  1025. ";
  1026. // line 647
  1027. $context['_parent'] = $context;
  1028. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 647, $this->source); })()), "passed_options", [], "any", false, false, false, 647));
  1029. foreach ($context['_seq'] as $context["option"] => $context["value"]) {
  1030. // line 648
  1031. yield " <tr>
  1032. <th>";
  1033. // line 649
  1034. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["option"], "html", null, true);
  1035. yield "</th>
  1036. <td>";
  1037. // line 650
  1038. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["value"]);
  1039. yield "</td>
  1040. <td>
  1041. ";
  1042. // line 653
  1043. yield " ";
  1044. $context["option_value"] = ((CoreExtension::getAttribute($this->env, $this->source, $context["value"], "value", [], "any", true, true, false, 653)) ? (CoreExtension::getAttribute($this->env, $this->source, $context["value"], "value", [], "any", false, false, false, 653)) : ($context["value"]));
  1045. // line 654
  1046. yield " ";
  1047. $context["resolved_option_value"] = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "resolved_options", [], "any", false, true, false, 654), $context["option"], [], "array", false, true, false, 654), "value", [], "any", true, true, false, 654)) ? (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 655
  1048. (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 655, $this->source); })()), "resolved_options", [], "any", false, false, false, 655), $context["option"], [], "array", false, false, false, 655), "value", [], "any", false, false, false, 655)) : (CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, // line 656
  1049. (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 656, $this->source); })()), "resolved_options", [], "any", false, false, false, 656), $context["option"], [], "array", false, false, false, 656)));
  1050. // line 657
  1051. yield " ";
  1052. if (((isset($context["resolved_option_value"]) || array_key_exists("resolved_option_value", $context) ? $context["resolved_option_value"] : (function () { throw new RuntimeError('Variable "resolved_option_value" does not exist.', 657, $this->source); })()) == (isset($context["option_value"]) || array_key_exists("option_value", $context) ? $context["option_value"] : (function () { throw new RuntimeError('Variable "option_value" does not exist.', 657, $this->source); })()))) {
  1053. // line 658
  1054. yield " <em class=\"font-normal text-muted\">same as passed value</em>
  1055. ";
  1056. } else {
  1057. // line 660
  1058. yield " ";
  1059. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 660, $this->source); })()), "resolved_options", [], "any", false, false, false, 660), "seek", [$context["option"]], "method", false, false, false, 660));
  1060. yield "
  1061. ";
  1062. }
  1063. // line 662
  1064. yield " </td>
  1065. </tr>
  1066. ";
  1067. }
  1068. $_parent = $context['_parent'];
  1069. unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
  1070. $context = array_intersect_key($context, $_parent) + $_parent;
  1071. // line 665
  1072. yield " </tbody>
  1073. </table>
  1074. ";
  1075. } else {
  1076. // line 668
  1077. yield " <div class=\"empty\">
  1078. <p>No options were passed when constructing this form.</p>
  1079. </div>
  1080. ";
  1081. }
  1082. // line 672
  1083. yield " </div>
  1084. ";
  1085. }
  1086. // line 674
  1087. yield "
  1088. ";
  1089. // line 675
  1090. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "resolved_options", [], "any", true, true, false, 675)) {
  1091. // line 676
  1092. yield " <h3>
  1093. <a class=\"toggle-button\" data-toggle-target-id=\"";
  1094. // line 677
  1095. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 677, $this->source); })()), "id", [], "any", false, false, false, 677), "html", null, true);
  1096. yield "-resolved_options\" href=\"#\">
  1097. Resolved Options <span class=\"toggle-icon\"></span>
  1098. </a>
  1099. </h3>
  1100. <div id=\"";
  1101. // line 682
  1102. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 682, $this->source); })()), "id", [], "any", false, false, false, 682), "html", null, true);
  1103. yield "-resolved_options\" class=\"hidden\">
  1104. <table>
  1105. <thead>
  1106. <tr>
  1107. <th width=\"180\">Option</th>
  1108. <th>Value</th>
  1109. </tr>
  1110. </thead>
  1111. <tbody>
  1112. ";
  1113. // line 691
  1114. $context['_parent'] = $context;
  1115. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 691, $this->source); })()), "resolved_options", [], "any", false, false, false, 691));
  1116. foreach ($context['_seq'] as $context["option"] => $context["value"]) {
  1117. // line 692
  1118. yield " <tr>
  1119. <th scope=\"row\">";
  1120. // line 693
  1121. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["option"], "html", null, true);
  1122. yield "</th>
  1123. <td>";
  1124. // line 694
  1125. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["value"]);
  1126. yield "</td>
  1127. </tr>
  1128. ";
  1129. }
  1130. $_parent = $context['_parent'];
  1131. unset($context['_seq'], $context['_iterated'], $context['option'], $context['value'], $context['_parent'], $context['loop']);
  1132. $context = array_intersect_key($context, $_parent) + $_parent;
  1133. // line 697
  1134. yield " </tbody>
  1135. </table>
  1136. </div>
  1137. ";
  1138. }
  1139. // line 701
  1140. yield "
  1141. ";
  1142. // line 702
  1143. if (CoreExtension::getAttribute($this->env, $this->source, ($context["data"] ?? null), "view_vars", [], "any", true, true, false, 702)) {
  1144. // line 703
  1145. yield " <h3>
  1146. <a class=\"toggle-button\" data-toggle-target-id=\"";
  1147. // line 704
  1148. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 704, $this->source); })()), "id", [], "any", false, false, false, 704), "html", null, true);
  1149. yield "-view_vars\" href=\"#\">
  1150. View Variables <span class=\"toggle-icon\"></span>
  1151. </a>
  1152. </h3>
  1153. <div id=\"";
  1154. // line 709
  1155. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 709, $this->source); })()), "id", [], "any", false, false, false, 709), "html", null, true);
  1156. yield "-view_vars\" class=\"hidden\">
  1157. <table>
  1158. <thead>
  1159. <tr>
  1160. <th width=\"180\">Variable</th>
  1161. <th>Value</th>
  1162. </tr>
  1163. </thead>
  1164. <tbody>
  1165. ";
  1166. // line 718
  1167. $context['_parent'] = $context;
  1168. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 718, $this->source); })()), "view_vars", [], "any", false, false, false, 718));
  1169. foreach ($context['_seq'] as $context["variable"] => $context["value"]) {
  1170. // line 719
  1171. yield " <tr>
  1172. <th scope=\"row\">";
  1173. // line 720
  1174. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["variable"], "html", null, true);
  1175. yield "</th>
  1176. <td>";
  1177. // line 721
  1178. yield $this->extensions['Symfony\Bundle\WebProfilerBundle\Twig\WebProfilerExtension']->dumpData($this->env, $context["value"]);
  1179. yield "</td>
  1180. </tr>
  1181. ";
  1182. }
  1183. $_parent = $context['_parent'];
  1184. unset($context['_seq'], $context['_iterated'], $context['variable'], $context['value'], $context['_parent'], $context['loop']);
  1185. $context = array_intersect_key($context, $_parent) + $_parent;
  1186. // line 724
  1187. yield " </tbody>
  1188. </table>
  1189. </div>
  1190. ";
  1191. }
  1192. // line 728
  1193. yield " </div>
  1194. ";
  1195. // line 730
  1196. $context['_parent'] = $context;
  1197. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["data"]) || array_key_exists("data", $context) ? $context["data"] : (function () { throw new RuntimeError('Variable "data" does not exist.', 730, $this->source); })()), "children", [], "any", false, false, false, 730));
  1198. foreach ($context['_seq'] as $context["childName"] => $context["childData"]) {
  1199. // line 731
  1200. yield " ";
  1201. yield CoreExtension::callMacro($macros["tree"], "macro_form_tree_details", [$context["childName"], $context["childData"], (isset($context["forms_by_hash"]) || array_key_exists("forms_by_hash", $context) ? $context["forms_by_hash"] : (function () { throw new RuntimeError('Variable "forms_by_hash" does not exist.', 731, $this->source); })())], 731, $context, $this->getSourceContext());
  1202. yield "
  1203. ";
  1204. }
  1205. $_parent = $context['_parent'];
  1206. unset($context['_seq'], $context['_iterated'], $context['childName'], $context['childData'], $context['_parent'], $context['loop']);
  1207. $context = array_intersect_key($context, $_parent) + $_parent;
  1208. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  1209. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  1210. return; yield '';
  1211. })())) ? '' : new Markup($tmp, $this->env->getCharset());
  1212. }
  1213. /**
  1214. * @codeCoverageIgnore
  1215. */
  1216. public function getTemplateName()
  1217. {
  1218. return "@WebProfiler/Collector/form.html.twig";
  1219. }
  1220. /**
  1221. * @codeCoverageIgnore
  1222. */
  1223. public function isTraitable()
  1224. {
  1225. return false;
  1226. }
  1227. /**
  1228. * @codeCoverageIgnore
  1229. */
  1230. public function getDebugInfo()
  1231. {
  1232. return array ( 1322 => 731, 1318 => 730, 1314 => 728, 1308 => 724, 1299 => 721, 1295 => 720, 1292 => 719, 1288 => 718, 1276 => 709, 1268 => 704, 1265 => 703, 1263 => 702, 1260 => 701, 1254 => 697, 1245 => 694, 1241 => 693, 1238 => 692, 1234 => 691, 1222 => 682, 1214 => 677, 1211 => 676, 1209 => 675, 1206 => 674, 1202 => 672, 1196 => 668, 1191 => 665, 1183 => 662, 1177 => 660, 1173 => 658, 1170 => 657, 1168 => 656, 1167 => 655, 1165 => 654, 1162 => 653, 1157 => 650, 1153 => 649, 1150 => 648, 1146 => 647, 1135 => 638, 1133 => 637, 1129 => 636, 1121 => 631, 1118 => 630, 1116 => 629, 1113 => 628, 1109 => 626, 1103 => 622, 1096 => 617, 1092 => 615, 1086 => 613, 1084 => 612, 1076 => 607, 1070 => 603, 1066 => 601, 1060 => 599, 1058 => 598, 1045 => 587, 1043 => 586, 1039 => 585, 1031 => 580, 1028 => 579, 1026 => 578, 1023 => 577, 1015 => 571, 1011 => 569, 1005 => 567, 1003 => 566, 995 => 561, 989 => 557, 985 => 555, 979 => 553, 977 => 552, 962 => 540, 954 => 535, 951 => 534, 949 => 533, 946 => 532, 940 => 528, 932 => 525, 928 => 523, 925 => 522, 916 => 520, 912 => 519, 909 => 518, 907 => 517, 903 => 515, 897 => 513, 893 => 511, 891 => 510, 888 => 509, 886 => 508, 881 => 506, 878 => 505, 874 => 504, 862 => 495, 854 => 490, 850 => 488, 848 => 487, 845 => 486, 839 => 484, 837 => 483, 833 => 482, 820 => 481, 817 => 480, 796 => 479, 783 => 476, 779 => 474, 770 => 472, 766 => 471, 757 => 470, 755 => 469, 748 => 465, 742 => 464, 739 => 463, 735 => 461, 729 => 459, 727 => 458, 724 => 457, 718 => 455, 716 => 454, 710 => 453, 707 => 452, 704 => 451, 701 => 450, 681 => 449, 452 => 229, 446 => 225, 442 => 223, 425 => 221, 408 => 220, 402 => 216, 393 => 214, 389 => 213, 385 => 211, 383 => 210, 379 => 208, 369 => 207, 194 => 43, 184 => 42, 172 => 39, 166 => 36, 163 => 35, 161 => 34, 156 => 32, 149 => 31, 139 => 30, 125 => 26, 122 => 25, 113 => 22, 106 => 18, 102 => 16, 100 => 15, 97 => 14, 90 => 11, 84 => 9, 81 => 8, 78 => 7, 75 => 6, 65 => 5, 54 => 1, 52 => 3, 39 => 1,);
  1233. }
  1234. public function getSourceContext()
  1235. {
  1236. return new Source("{% extends '@WebProfiler/Profiler/layout.html.twig' %}
  1237. {% from _self import form_tree_entry, form_tree_details %}
  1238. {% block toolbar %}
  1239. {% if collector.data.nb_errors > 0 or collector.data.forms|length %}
  1240. {% set status_color = collector.data.nb_errors ? 'red' %}
  1241. {% set icon %}
  1242. {{ include('@WebProfiler/Icon/form.svg') }}
  1243. <span class=\"sf-toolbar-value\">
  1244. {{ collector.data.nb_errors ?: collector.data.forms|length }}
  1245. </span>
  1246. {% endset %}
  1247. {% set text %}
  1248. <div class=\"sf-toolbar-info-piece\">
  1249. <b>Number of forms</b>
  1250. <span class=\"sf-toolbar-status\">{{ collector.data.forms|length }}</span>
  1251. </div>
  1252. <div class=\"sf-toolbar-info-piece\">
  1253. <b>Number of errors</b>
  1254. <span class=\"sf-toolbar-status sf-toolbar-status-{{ collector.data.nb_errors > 0 ? 'red' }}\">{{ collector.data.nb_errors }}</span>
  1255. </div>
  1256. {% endset %}
  1257. {{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
  1258. {% endif %}
  1259. {% endblock %}
  1260. {% block menu %}
  1261. <span class=\"label label-status-{{ collector.data.nb_errors ? 'error' }} {{ collector.data.forms is empty ? 'disabled' }}\">
  1262. <span class=\"icon\">{{ include('@WebProfiler/Icon/form.svg') }}</span>
  1263. <strong>Forms</strong>
  1264. {% if collector.data.nb_errors > 0 %}
  1265. <span class=\"count\">
  1266. <span>{{ collector.data.nb_errors }}</span>
  1267. </span>
  1268. {% endif %}
  1269. </span>
  1270. {% endblock %}
  1271. {% block head %}
  1272. {{ parent() }}
  1273. <style>
  1274. #tree-menu {
  1275. float: left;
  1276. padding-right: 10px;
  1277. width: 230px;
  1278. }
  1279. #tree-menu ul {
  1280. list-style: none;
  1281. margin: 0;
  1282. padding-left: 0;
  1283. }
  1284. #tree-menu li {
  1285. margin: 0;
  1286. padding: 0;
  1287. width: 100%;
  1288. }
  1289. #tree-menu .empty {
  1290. border: 0;
  1291. padding: 0;
  1292. }
  1293. #tree-details-container {
  1294. border-left: 1px solid #DDD;
  1295. margin-left: 250px;
  1296. padding-left: 20px;
  1297. }
  1298. .tree-details {
  1299. padding-bottom: 40px;
  1300. }
  1301. .tree-details h3 {
  1302. font-size: 18px;
  1303. position: relative;
  1304. }
  1305. .toggle-icon {
  1306. display: inline-block;
  1307. background: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDgwx4LcKwAAAABVQTFRFAAAA////////////////ZmZm////bvjBwAAAAAV0Uk5TABZwsuCVEUjgAAAAAWJLR0QF+G/pxwAAAE1JREFUGNNjSHMSYGBgUEljSGYAAzMGBwiDhUEBwmBiEIAwGBmwgTQgQGWgA7h2uIFwK+CWwp1BpHvYEqDuATEYkBlY3IOmBq6dCPcAAIT5Eg2IksjQAAAAAElFTkSuQmCC\") no-repeat top left #5eb5e0;
  1308. }
  1309. .closed .toggle-icon, .closed.toggle-icon {
  1310. background-position: bottom left;
  1311. }
  1312. .toggle-icon.empty {
  1313. background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAABmJLR0QAZgBmAGYHukptAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDhIf6CA40AAAAFRJREFUOMvtk7ENACEMA61vfx767MROWfO+AdGBHlNyTZrYUZRYDBII4NWE1pNdpFarfgLUbpDaBEgBYRiEVjsvDLa1l6O4Z3wkFWN+OfLKdpisOH/TlICzukmUJwAAAABJRU5ErkJggg==\");
  1314. }
  1315. .tree .tree-inner {
  1316. cursor: pointer;
  1317. padding: 5px 7px 5px 22px;
  1318. position: relative;
  1319. overflow: hidden;
  1320. text-overflow: ellipsis;
  1321. }
  1322. .tree .toggle-button {
  1323. /* provide a bigger clickable area than just 10x10px */
  1324. width: 16px;
  1325. height: 16px;
  1326. margin-left: -18px;
  1327. }
  1328. .tree .toggle-icon {
  1329. width: 10px;
  1330. height: 10px;
  1331. /* position the icon in the center of the clickable area */
  1332. margin-left: 3px;
  1333. margin-top: 3px;
  1334. background-size: 10px 20px;
  1335. background-color: #AAA;
  1336. }
  1337. .tree .toggle-icon.empty {
  1338. width: 10px;
  1339. height: 10px;
  1340. position: absolute;
  1341. top: 50%;
  1342. margin-top: -5px;
  1343. margin-left: -15px;
  1344. background-size: 10px 10px;
  1345. }
  1346. .tree ul ul .tree-inner {
  1347. padding-left: 37px;
  1348. }
  1349. .tree ul ul ul .tree-inner {
  1350. padding-left: 52px;
  1351. }
  1352. .tree ul ul ul ul .tree-inner {
  1353. padding-left: 67px;
  1354. }
  1355. .tree ul ul ul ul ul .tree-inner {
  1356. padding-left: 82px;
  1357. }
  1358. .tree .tree-inner:hover {
  1359. background: #dfdfdf;
  1360. }
  1361. .tree .tree-inner:hover span:not(.has-error) {
  1362. color: var(--base-0);
  1363. }
  1364. .tree .tree-inner.active, .tree .tree-inner.active:hover {
  1365. background: var(--tree-active-background);
  1366. font-weight: bold;
  1367. }
  1368. .tree .tree-inner.active .toggle-icon, .tree .tree-inner:hover .toggle-icon, .tree .tree-inner.active:hover .toggle-icon {
  1369. background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDhEYXWn+sAAAABhQTFRFAAAA39/f39/f39/f39/fZmZm39/f////gc3YPwAAAAV0Uk5TAAtAc6ZeVyCYAAAAAWJLR0QF+G/pxwAAAE1JREFUGNNjSHMSYGBgUEljSGYAAzMGBwiDhUEBwmBiEIAwGBmwgXIgQGWgA7h2uIFwK+CWwp1BpHvYC6DuATEYkBlY3IOmBq6dCPcAADqLE4MnBi/fAAAAAElFTkSuQmCC\");
  1370. background-color: #999;
  1371. }
  1372. .tree .tree-inner.active .toggle-icon.empty, .tree .tree-inner:hover .toggle-icon.empty, .tree .tree-inner.active:hover .toggle-icon.empty {
  1373. background-image: url(\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAACXBIWXMAAAsTAAALEwEAmpwYAAAAB3RJTUUH3QweDhoucSey4gAAABVQTFRFAAAA39/f39/f39/f39/fZmZm39/fD5Dx2AAAAAV0Uk5TAAtAc6ZeVyCYAAAAAWJLR0QF+G/pxwAAADJJREFUCNdjSHMSYGBgUEljSGYAAzMGBwiDhUEBwmBiEIAwGBnIA3DtcAPhVsAthTkDAFOfBKW9C1iqAAAAAElFTkSuQmCC\");
  1374. }
  1375. .tree-details .toggle-icon {
  1376. width: 16px;
  1377. height: 16px;
  1378. /* vertically center the button */
  1379. position: absolute;
  1380. top: 50%;
  1381. margin-top: -9px;
  1382. margin-left: 6px;
  1383. }
  1384. .badge-error {
  1385. float: right;
  1386. background: var(--background-error);
  1387. color: #FFF;
  1388. padding: 1px 4px;
  1389. font-size: 10px;
  1390. font-weight: bold;
  1391. vertical-align: middle;
  1392. }
  1393. .has-error {
  1394. color: var(--color-error);
  1395. }
  1396. .errors h3 {
  1397. color: var(--color-error);
  1398. }
  1399. .errors th {
  1400. background: var(--background-error);
  1401. color: #FFF;
  1402. }
  1403. .errors .toggle-icon {
  1404. background-color: var(--background-error);
  1405. }
  1406. h3 a, h3 a:hover, h3 a:focus {
  1407. color: inherit;
  1408. text-decoration: inherit;
  1409. }
  1410. h2 + h3.form-data-type {
  1411. margin-top: 0;
  1412. }
  1413. h3.form-data-type + h3 {
  1414. margin-top: 1em;
  1415. }
  1416. .theme-dark .toggle-icon {
  1417. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAAVUExURUdwTH+Ag0lNUZiYmGRmbP///zU5P2n9VV4AAAAFdFJOUwCv+yror0g1sQAAAE1JREFUGNNjSFM0YGBgEEpjSGEAAzcGBQiDiUEAwmBkMIAwmBmwgVAgQGWgA7h2uIFwK+CWwp1BpHtYA6DuATEYkBlY3IOmBq6dCPcAAKMtEEs3tfChAAAAAElFTkSuQmCC');
  1418. }
  1419. .theme-dark .toggle-icon.empty {
  1420. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAABGdBTUEAALGPC/xhBQAAAAFzUkdCAK7OHOkAAAASUExURUdwTDI3OzQ5PS4uLjU3PzU5P4keoyIAAAAFdFJOUwBApgtzrnKGEwAAADJJREFUCNdjCFU0YGBgEAplCGEAA1cGBQiDiUEAwmBkMIAwmBnIA3DtcAPhVsAthTkDACsZBBmrTTSxAAAAAElFTkSuQmCC');
  1421. }
  1422. .theme-dark .tree .tree-inner.active .toggle-icon, .theme-dark .tree .tree-inner:hover .toggle-icon, .theme-dark .tree .tree-inner.active:hover .toggle-icon {
  1423. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAgBAMAAADpp+X/AAAAD1BMVEVHcEx/gIOYmJiZmZn///+IJ2wIAAAAA3RSTlMAryoIUq0uAAAAUElEQVQY02NgYFQ2NjYWYGBgMAYDBgZmCMOAQRjCMGRQhjCMoEqAipAYLkCAykBXA9cONxBuBdxShDOIc4+JM9Q9IIYxMgOLe9DUwLUT4R4AznguG0qfEa0AAAAASUVORK5CYII=');
  1424. background-color: transparent;
  1425. }
  1426. .theme-dark .tree .tree-inner.active .toggle-icon.empty, .theme-dark .tree .tree-inner:hover .toggle-icon.empty, .theme-dark .tree .tree-inner.active:hover .toggle-icon.empty {
  1427. background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQAgMAAABinRfyAAAACVBMVEVHcEwyNzuqqqrd9nIgAAAAAnRSTlMAQABPjKgAAAArSURBVAjXY2BctcqBgWvVqgUMWqtWrWDIWrVqJcMqICCGACsGawMbADIKANflJYEoGMqtAAAAAElFTkSuQmCC');
  1428. background-color: transparent;
  1429. }
  1430. </style>
  1431. {% endblock %}
  1432. {% block panel %}
  1433. <h2>Forms</h2>
  1434. {% if collector.data.forms|length %}
  1435. <div id=\"tree-menu\" class=\"tree\">
  1436. <ul>
  1437. {% for formName, formData in collector.data.forms %}
  1438. {{ form_tree_entry(formName, formData, true) }}
  1439. {% endfor %}
  1440. </ul>
  1441. </div>
  1442. <div id=\"tree-details-container\">
  1443. {% for formName, formData in collector.data.forms %}
  1444. {{ form_tree_details(formName, formData, collector.data.forms_by_hash, loop.first) }}
  1445. {% endfor %}
  1446. </div>
  1447. {% else %}
  1448. <div class=\"empty\">
  1449. <p>No forms were submitted for this request.</p>
  1450. </div>
  1451. {% endif %}
  1452. <script>
  1453. function Toggler(storage) {
  1454. \"use strict\";
  1455. var STORAGE_KEY = 'sf_toggle_data',
  1456. states = {},
  1457. isCollapsed = function (button) {
  1458. return Sfjs.hasClass(button, 'closed');
  1459. },
  1460. isExpanded = function (button) {
  1461. return !isCollapsed(button);
  1462. },
  1463. expand = function (button) {
  1464. var targetId = button.dataset.toggleTargetId,
  1465. target = document.getElementById(targetId);
  1466. if (!target) {
  1467. throw \"Toggle target \" + targetId + \" does not exist\";
  1468. }
  1469. if (isCollapsed(button)) {
  1470. Sfjs.removeClass(button, 'closed');
  1471. Sfjs.removeClass(target, 'hidden');
  1472. states[targetId] = 1;
  1473. storage.setItem(STORAGE_KEY, states);
  1474. }
  1475. },
  1476. collapse = function (button) {
  1477. var targetId = button.dataset.toggleTargetId,
  1478. target = document.getElementById(targetId);
  1479. if (!target) {
  1480. throw \"Toggle target \" + targetId + \" does not exist\";
  1481. }
  1482. if (isExpanded(button)) {
  1483. Sfjs.addClass(button, 'closed');
  1484. Sfjs.addClass(target, 'hidden');
  1485. states[targetId] = 0;
  1486. storage.setItem(STORAGE_KEY, states);
  1487. }
  1488. },
  1489. toggle = function (button) {
  1490. if (Sfjs.hasClass(button, 'closed')) {
  1491. expand(button);
  1492. } else {
  1493. collapse(button);
  1494. }
  1495. },
  1496. initButtons = function (buttons) {
  1497. states = storage.getItem(STORAGE_KEY, {});
  1498. // must be an object, not an array or anything else
  1499. // `typeof` returns \"object\" also for arrays, so the following
  1500. // check must be done
  1501. // see http://stackoverflow.com/questions/4775722/check-if-object-is-array
  1502. if ('[object Object]' !== Object.prototype.toString.call(states)) {
  1503. states = {};
  1504. }
  1505. for (var i = 0, l = buttons.length; i < l; ++i) {
  1506. var targetId = buttons[i].dataset.toggleTargetId,
  1507. target = document.getElementById(targetId);
  1508. if (!target) {
  1509. throw \"Toggle target \" + targetId + \" does not exist\";
  1510. }
  1511. // correct the initial state of the button
  1512. if (Sfjs.hasClass(target, 'hidden')) {
  1513. Sfjs.addClass(buttons[i], 'closed');
  1514. }
  1515. // attach listener for expanding/collapsing the target
  1516. clickHandler(buttons[i], toggle);
  1517. if (states.hasOwnProperty(targetId)) {
  1518. // open or collapse based on stored data
  1519. if (0 === states[targetId]) {
  1520. collapse(buttons[i]);
  1521. } else {
  1522. expand(buttons[i]);
  1523. }
  1524. }
  1525. }
  1526. };
  1527. return {
  1528. initButtons: initButtons,
  1529. toggle: toggle,
  1530. isExpanded: isExpanded,
  1531. isCollapsed: isCollapsed,
  1532. expand: expand,
  1533. collapse: collapse
  1534. };
  1535. }
  1536. function JsonStorage(storage) {
  1537. var setItem = function (key, data) {
  1538. storage.setItem(key, JSON.stringify(data));
  1539. },
  1540. getItem = function (key, defaultValue) {
  1541. var data = storage.getItem(key);
  1542. if (null !== data) {
  1543. try {
  1544. return JSON.parse(data);
  1545. } catch(e) {
  1546. }
  1547. }
  1548. return defaultValue;
  1549. };
  1550. return {
  1551. setItem: setItem,
  1552. getItem: getItem
  1553. };
  1554. }
  1555. function TabView() {
  1556. \"use strict\";
  1557. var activeTab = null,
  1558. activeTarget = null,
  1559. select = function (tab) {
  1560. var targetId = tab.dataset.tabTargetId,
  1561. target = document.getElementById(targetId);
  1562. if (!target) {
  1563. throw \"Tab target \" + targetId + \" does not exist\";
  1564. }
  1565. if (activeTab) {
  1566. Sfjs.removeClass(activeTab, 'active');
  1567. }
  1568. if (activeTarget) {
  1569. Sfjs.addClass(activeTarget, 'hidden');
  1570. }
  1571. Sfjs.addClass(tab, 'active');
  1572. Sfjs.removeClass(target, 'hidden');
  1573. activeTab = tab;
  1574. activeTarget = target;
  1575. },
  1576. initTabs = function (tabs) {
  1577. for (var i = 0, l = tabs.length; i < l; ++i) {
  1578. var targetId = tabs[i].dataset.tabTargetId,
  1579. target = document.getElementById(targetId);
  1580. if (!target) {
  1581. throw \"Tab target \" + targetId + \" does not exist\";
  1582. }
  1583. clickHandler(tabs[i], select);
  1584. Sfjs.addClass(target, 'hidden');
  1585. }
  1586. if (tabs.length > 0) {
  1587. select(tabs[0]);
  1588. }
  1589. };
  1590. return {
  1591. initTabs: initTabs,
  1592. select: select
  1593. };
  1594. }
  1595. var tabTarget = new TabView(),
  1596. toggler = new Toggler(new JsonStorage(sessionStorage)),
  1597. clickHandler = function (element, callback) {
  1598. Sfjs.addEventListener(element, 'click', function (e) {
  1599. if (!e) {
  1600. e = window.event;
  1601. }
  1602. callback(this);
  1603. if (e.preventDefault) {
  1604. e.preventDefault();
  1605. } else {
  1606. e.returnValue = false;
  1607. }
  1608. e.stopPropagation();
  1609. return false;
  1610. });
  1611. };
  1612. tabTarget.initTabs(document.querySelectorAll('.tree .tree-inner'));
  1613. toggler.initButtons(document.querySelectorAll('a.toggle-button'));
  1614. </script>
  1615. {% endblock %}
  1616. {% macro form_tree_entry(name, data, is_root) %}
  1617. {% import _self as tree %}
  1618. {% set has_error = data.errors is defined and data.errors|length > 0 %}
  1619. <li>
  1620. <div class=\"tree-inner\" data-tab-target-id=\"{{ data.id }}-details\" title=\"{{ name|default('(no name)') }}\">
  1621. {% if has_error %}
  1622. <div class=\"badge-error\">{{ data.errors|length }}</div>
  1623. {% endif %}
  1624. {% if data.children is not empty %}
  1625. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-children\" href=\"#\"><span class=\"toggle-icon\"></span></a>
  1626. {% else %}
  1627. <div class=\"toggle-icon empty\"></div>
  1628. {% endif %}
  1629. <span {% if has_error or data.has_children_error|default(false) %}class=\"has-error\"{% endif %}>
  1630. {{ name|default('(no name)') }}
  1631. </span>
  1632. </div>
  1633. {% if data.children is not empty %}
  1634. <ul id=\"{{ data.id }}-children\" {% if not is_root and not data.has_children_error|default(false) %}class=\"hidden\"{% endif %}>
  1635. {% for childName, childData in data.children %}
  1636. {{ tree.form_tree_entry(childName, childData, false) }}
  1637. {% endfor %}
  1638. </ul>
  1639. {% endif %}
  1640. </li>
  1641. {% endmacro %}
  1642. {% macro form_tree_details(name, data, forms_by_hash, show) %}
  1643. {% import _self as tree %}
  1644. <div class=\"tree-details{% if not show|default(false) %} hidden{% endif %}\" {% if data.id is defined %}id=\"{{ data.id }}-details\"{% endif %}>
  1645. <h2>{{ name|default('(no name)') }}</h2>
  1646. {% if data.type_class is defined %}
  1647. <h3 class=\"dump-inline form-data-type\">{{ profiler_dump(data.type_class) }}</h3>
  1648. {% endif %}
  1649. {% if data.errors is defined and data.errors|length > 0 %}
  1650. <div class=\"errors\">
  1651. <h3>
  1652. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-errors\" href=\"#\">
  1653. Errors <span class=\"toggle-icon\"></span>
  1654. </a>
  1655. </h3>
  1656. <table id=\"{{ data.id }}-errors\">
  1657. <thead>
  1658. <tr>
  1659. <th>Message</th>
  1660. <th>Origin</th>
  1661. <th>Cause</th>
  1662. </tr>
  1663. </thead>
  1664. <tbody>
  1665. {% for error in data.errors %}
  1666. <tr>
  1667. <td>{{ error.message }}</td>
  1668. <td>
  1669. {% if error.origin is empty %}
  1670. <em>This form.</em>
  1671. {% elseif forms_by_hash[error.origin] is not defined %}
  1672. <em>Unknown.</em>
  1673. {% else %}
  1674. {{ forms_by_hash[error.origin].name }}
  1675. {% endif %}
  1676. </td>
  1677. <td>
  1678. {% if error.trace %}
  1679. <span class=\"newline\">Caused by:</span>
  1680. {% for stacked in error.trace %}
  1681. {{ profiler_dump(stacked) }}
  1682. {% endfor %}
  1683. {% else %}
  1684. <em>Unknown.</em>
  1685. {% endif %}
  1686. </td>
  1687. </tr>
  1688. {% endfor %}
  1689. </tbody>
  1690. </table>
  1691. </div>
  1692. {% endif %}
  1693. {% if data.default_data is defined %}
  1694. <h3>
  1695. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-default_data\" href=\"#\">
  1696. Default Data <span class=\"toggle-icon\"></span>
  1697. </a>
  1698. </h3>
  1699. <div id=\"{{ data.id }}-default_data\">
  1700. <table>
  1701. <thead>
  1702. <tr>
  1703. <th width=\"180\">Property</th>
  1704. <th>Value</th>
  1705. </tr>
  1706. </thead>
  1707. <tbody>
  1708. <tr>
  1709. <th class=\"font-normal\" scope=\"row\">Model Format</th>
  1710. <td>
  1711. {% if data.default_data.model is defined %}
  1712. {{ profiler_dump(data.default_data.seek('model')) }}
  1713. {% else %}
  1714. <em class=\"font-normal text-muted\">same as normalized format</em>
  1715. {% endif %}
  1716. </td>
  1717. </tr>
  1718. <tr>
  1719. <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  1720. <td>{{ profiler_dump(data.default_data.seek('norm')) }}</td>
  1721. </tr>
  1722. <tr>
  1723. <th class=\"font-normal\" scope=\"row\">View Format</th>
  1724. <td>
  1725. {% if data.default_data.view is defined %}
  1726. {{ profiler_dump(data.default_data.seek('view')) }}
  1727. {% else %}
  1728. <em class=\"font-normal text-muted\">same as normalized format</em>
  1729. {% endif %}
  1730. </td>
  1731. </tr>
  1732. </tbody>
  1733. </table>
  1734. </div>
  1735. {% endif %}
  1736. {% if data.submitted_data is defined %}
  1737. <h3>
  1738. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-submitted_data\" href=\"#\">
  1739. Submitted Data <span class=\"toggle-icon\"></span>
  1740. </a>
  1741. </h3>
  1742. <div id=\"{{ data.id }}-submitted_data\">
  1743. {% if data.submitted_data.norm is defined %}
  1744. <table>
  1745. <thead>
  1746. <tr>
  1747. <th width=\"180\">Property</th>
  1748. <th>Value</th>
  1749. </tr>
  1750. </thead>
  1751. <tbody>
  1752. <tr>
  1753. <th class=\"font-normal\" scope=\"row\">View Format</th>
  1754. <td>
  1755. {% if data.submitted_data.view is defined %}
  1756. {{ profiler_dump(data.submitted_data.seek('view')) }}
  1757. {% else %}
  1758. <em class=\"font-normal text-muted\">same as normalized format</em>
  1759. {% endif %}
  1760. </td>
  1761. </tr>
  1762. <tr>
  1763. <th class=\"font-normal\" scope=\"row\">Normalized Format</th>
  1764. <td>{{ profiler_dump(data.submitted_data.seek('norm')) }}</td>
  1765. </tr>
  1766. <tr>
  1767. <th class=\"font-normal\" scope=\"row\">Model Format</th>
  1768. <td>
  1769. {% if data.submitted_data.model is defined %}
  1770. {{ profiler_dump(data.submitted_data.seek('model')) }}
  1771. {% else %}
  1772. <em class=\"font-normal text-muted\">same as normalized format</em>
  1773. {% endif %}
  1774. </td>
  1775. </tr>
  1776. </tbody>
  1777. </table>
  1778. {% else %}
  1779. <div class=\"empty\">
  1780. <p>This form was not submitted.</p>
  1781. </div>
  1782. {% endif %}
  1783. </div>
  1784. {% endif %}
  1785. {% if data.passed_options is defined %}
  1786. <h3>
  1787. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-passed_options\" href=\"#\">
  1788. Passed Options <span class=\"toggle-icon\"></span>
  1789. </a>
  1790. </h3>
  1791. <div id=\"{{ data.id }}-passed_options\">
  1792. {% if data.passed_options|length %}
  1793. <table>
  1794. <thead>
  1795. <tr>
  1796. <th width=\"180\">Option</th>
  1797. <th>Passed Value</th>
  1798. <th>Resolved Value</th>
  1799. </tr>
  1800. </thead>
  1801. <tbody>
  1802. {% for option, value in data.passed_options %}
  1803. <tr>
  1804. <th>{{ option }}</th>
  1805. <td>{{ profiler_dump(value) }}</td>
  1806. <td>
  1807. {# values can be stubs #}
  1808. {% set option_value = (value.value is defined) ? value.value : value %}
  1809. {% set resolved_option_value = (data.resolved_options[option].value is defined)
  1810. ? data.resolved_options[option].value
  1811. : data.resolved_options[option] %}
  1812. {% if resolved_option_value == option_value %}
  1813. <em class=\"font-normal text-muted\">same as passed value</em>
  1814. {% else %}
  1815. {{ profiler_dump(data.resolved_options.seek(option)) }}
  1816. {% endif %}
  1817. </td>
  1818. </tr>
  1819. {% endfor %}
  1820. </tbody>
  1821. </table>
  1822. {% else %}
  1823. <div class=\"empty\">
  1824. <p>No options were passed when constructing this form.</p>
  1825. </div>
  1826. {% endif %}
  1827. </div>
  1828. {% endif %}
  1829. {% if data.resolved_options is defined %}
  1830. <h3>
  1831. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-resolved_options\" href=\"#\">
  1832. Resolved Options <span class=\"toggle-icon\"></span>
  1833. </a>
  1834. </h3>
  1835. <div id=\"{{ data.id }}-resolved_options\" class=\"hidden\">
  1836. <table>
  1837. <thead>
  1838. <tr>
  1839. <th width=\"180\">Option</th>
  1840. <th>Value</th>
  1841. </tr>
  1842. </thead>
  1843. <tbody>
  1844. {% for option, value in data.resolved_options %}
  1845. <tr>
  1846. <th scope=\"row\">{{ option }}</th>
  1847. <td>{{ profiler_dump(value) }}</td>
  1848. </tr>
  1849. {% endfor %}
  1850. </tbody>
  1851. </table>
  1852. </div>
  1853. {% endif %}
  1854. {% if data.view_vars is defined %}
  1855. <h3>
  1856. <a class=\"toggle-button\" data-toggle-target-id=\"{{ data.id }}-view_vars\" href=\"#\">
  1857. View Variables <span class=\"toggle-icon\"></span>
  1858. </a>
  1859. </h3>
  1860. <div id=\"{{ data.id }}-view_vars\" class=\"hidden\">
  1861. <table>
  1862. <thead>
  1863. <tr>
  1864. <th width=\"180\">Variable</th>
  1865. <th>Value</th>
  1866. </tr>
  1867. </thead>
  1868. <tbody>
  1869. {% for variable, value in data.view_vars %}
  1870. <tr>
  1871. <th scope=\"row\">{{ variable }}</th>
  1872. <td>{{ profiler_dump(value) }}</td>
  1873. </tr>
  1874. {% endfor %}
  1875. </tbody>
  1876. </table>
  1877. </div>
  1878. {% endif %}
  1879. </div>
  1880. {% for childName, childData in data.children %}
  1881. {{ tree.form_tree_details(childName, childData, forms_by_hash) }}
  1882. {% endfor %}
  1883. {% endmacro %}
  1884. ", "@WebProfiler/Collector/form.html.twig", "/home/web/sisweb/dev.pedido.invgp.com/vendor/symfony/web-profiler-bundle/Resources/views/Collector/form.html.twig");
  1885. }
  1886. }