var/cache/dev/twig/ca/cad665a5338b3aa8c62f7d2ed954e735.php line 43

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\MacroNamespace;
  8. use Twig\Markup;
  9. use Twig\Sandbox\SecurityError;
  10. use Twig\Sandbox\SecurityNotAllowedTagError;
  11. use Twig\Sandbox\SecurityNotAllowedFilterError;
  12. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  13. use Twig\Sandbox\SecurityNotAllowedTestError;
  14. use Twig\Source;
  15. use Twig\Template;
  16. use Twig\TemplateWrapper;
  17. /* step3.html.twig */
  18. class __TwigTemplate_792dc538baddc3e4e4ab1a17c6569428 extends Template
  19. {
  20. private Source $source;
  21. /**
  22. * @var array<string, MacroNamespace>
  23. */
  24. private array $macros = [];
  25. private \Twig\Runtime\EscaperRuntime $escaper;
  26. public function __construct(Environment $env)
  27. {
  28. parent::__construct($env);
  29. $this->source = $this->getSourceContext();
  30. $this->escaper = $env->getRuntime('Twig\Runtime\EscaperRuntime');
  31. $this->parent = false;
  32. $this->blocks = [
  33. ];
  34. }
  35. protected function doDisplay(array $context, array $blocks = []): iterable
  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", "step3.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", "step3.html.twig"));
  42. // line 1
  43. $macros["͜macros"] = $this->macros["͜macros"] = $this->load("macros.html.twig", 1)->unwrap()->getMacroNamespace();
  44. // line 2
  45. yield "
  46. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"3\" style=\"display: none;\">
  47. <div class=\"notification-form__item bs5-w-100\">
  48. <div class=\"notification-form__space\">
  49. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  50. <i class=\"glyphicon group notification-form__icon\"></i>
  51. <h6 class=\"notification-form__subtitle\">Świadkowie zdarzenia (w przypadku szkody z winy innego uczestnika ruchu - szkoda z OC sprawcy)</h6>
  52. </div>
  53. <div class=\"witnesses-container\" data-prototype=\"";
  54. // line 10
  55. yield (string) $this->escaper->escape(($macros["͜macros"] ?? $this->throwUninitializedMacroNamespace(10))->call("witness", ["__name__", (isset($context["areaCodes"]) || array_key_exists("areaCodes", $context) ? $context["areaCodes"] : (function () { throw new RuntimeError('Variable "areaCodes" does not exist.', 10, $this->source); })())], $context, 10, $this->source));
  56. yield "\">
  57. ";
  58. // line 11
  59. if ((array_key_exists("caseData", $context) && CoreExtension::inFilter("witnesses", Twig\Extension\CoreExtension::keys((isset($context["caseData"]) || array_key_exists("caseData", $context) ? $context["caseData"] : (function () { throw new RuntimeError('Variable "caseData" does not exist.', 11, $this->source); })()))))) {
  60. // line 12
  61. yield " ";
  62. $context['_parent'] = $context;
  63. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["caseData"]) || array_key_exists("caseData", $context) ? $context["caseData"] : (function () { throw new RuntimeError('Variable "caseData" does not exist.', 12, $this->source); })()), "witnesses", [], "array", false, false, false, 12));
  64. foreach ($context['_seq'] as $context["key"] => $context["witness"]) {
  65. // line 13
  66. yield " ";
  67. $context["fkey"] = ("witness_" . $context["key"]);
  68. // line 14
  69. yield " ";
  70. yield (string) ($macros["͜macros"] ?? $this->throwUninitializedMacroNamespace(14))->call("witness", [$context["key"], (isset($context["areaCodes"]) || array_key_exists("areaCodes", $context) ? $context["areaCodes"] : (function () { throw new RuntimeError('Variable "areaCodes" does not exist.', 14, $this->source); })()), $context["witness"], !CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), (isset($context["fkey"]) || array_key_exists("fkey", $context) ? $context["fkey"] : (function () { throw new RuntimeError('Variable "fkey" does not exist.', 14, $this->source); })()), [], "array", true, true, false, 14)], $context, 14, $this->source);
  71. yield "
  72. ";
  73. }
  74. $_parent = $context['_parent'];
  75. unset($context['_seq'], $context['key'], $context['witness'], $context['_parent']);
  76. $context = array_intersect_key($context, $_parent);
  77. $context += $_parent;
  78. // line 16
  79. yield " ";
  80. } elseif (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 16, $this->source); })()) == "create")) {
  81. // line 17
  82. yield " ";
  83. yield (string) ($macros["͜macros"] ?? $this->throwUninitializedMacroNamespace(17))->call("witness", [0, (isset($context["areaCodes"]) || array_key_exists("areaCodes", $context) ? $context["areaCodes"] : (function () { throw new RuntimeError('Variable "areaCodes" does not exist.', 17, $this->source); })())], $context, 17, $this->source);
  84. yield "
  85. ";
  86. } else {
  87. // line 19
  88. yield " <div class=\"bs5-row\">
  89. <div class=\"bs5-col-12 bs5-col-lg-8 bs5-form-group form__group--space-small\">
  90. <div class=\"data-ready\">Brak informacji o świadkach zdarzenia.</div>
  91. </div>
  92. </div>
  93. ";
  94. }
  95. // line 25
  96. yield " </div>
  97. ";
  98. // line 26
  99. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 26, $this->source); })()) == "create") || (($tmp = (isset($context["addWitness"]) || array_key_exists("addWitness", $context) ? $context["addWitness"] : (function () { throw new RuntimeError('Variable "addWitness" does not exist.', 26, $this->source); })())) && $tmp instanceof Markup ? (string) $tmp : $tmp))) {
  100. // line 27
  101. yield " <div class=\"bs5-col-12 bs5-form-group form__group bs5-mb-0\">
  102. <div class=\"form__btn notification-form__btn-add\">
  103. <div class=\"bs5-d-flex bs5-align-items-center bs5-justify-content-between\" onclick=\"addWitness();\">
  104. <i class=\"glyphicon plus\"></i>
  105. <span>Dodaj świadka zdarzenia</span>
  106. </div>
  107. </div>
  108. </div>
  109. ";
  110. }
  111. // line 36
  112. yield " </div>
  113. </div>
  114. </div>
  115. ";
  116. // line 40
  117. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 40, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "attachments", [], "array", true, true, false, 40))) {
  118. // line 41
  119. yield " <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"1,2,3\" style=\"display: none;\">
  120. <div class=\"notification-form__space\">
  121. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  122. <i class=\"glyphicon paperclip notification-form__icon\"></i>
  123. <h6 class=\"notification-form__subtitle\">Załączniki</h6>
  124. </div>
  125. <div class=\"bs5-row attachments-container\">
  126. ";
  127. // line 48
  128. yield from $this->load("attachments.html.twig", 48)->unwrap()->yield($context);
  129. // line 49
  130. yield " </div>
  131. </div>
  132. </div>
  133. ";
  134. }
  135. // line 53
  136. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 53, $this->source); })()) == "update")) {
  137. // line 54
  138. yield " <div class=\"bs5-col-lg-12 notification-form__border--bottom\">
  139. <div class=\"notification-form__item bs5-w-100\">
  140. <div class=\"notification-form__space\">
  141. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  142. <i class=\"glyphicon cars notification-form__icon\"></i>
  143. <h6 class=\"notification-form__subtitle\">Komentarz dla operatora</h6>
  144. </div>
  145. <div class=\"bs5-row bs5-mb-2 bs5-pb-2\">
  146. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  147. <textarea name=\"form[empty_data_comment]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" rows=\"5\" placeholder=\"Wpisz komentarz dla operatora\"></textarea>
  148. </div>
  149. </div>
  150. </div>
  151. </div>
  152. </div>
  153. ";
  154. }
  155. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  156. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  157. return; yield;
  158. }
  159. /**
  160. * @codeCoverageIgnore
  161. */
  162. public function getTemplateName(): string
  163. {
  164. return "step3.html.twig";
  165. }
  166. /**
  167. * @codeCoverageIgnore
  168. */
  169. public function isTraitable(): bool
  170. {
  171. return false;
  172. }
  173. /**
  174. * @codeCoverageIgnore
  175. */
  176. public function getDefaultEscapeStrategy(): string|false
  177. {
  178. return "html";
  179. }
  180. /**
  181. * @codeCoverageIgnore
  182. */
  183. public function getDebugInfo(): array
  184. {
  185. return array ( 149 => 54, 147 => 53, 141 => 49, 139 => 48, 130 => 41, 128 => 40, 122 => 36, 111 => 27, 109 => 26, 106 => 25, 98 => 19, 92 => 17, 89 => 16, 79 => 14, 76 => 13, 71 => 12, 69 => 11, 65 => 10, 55 => 2, 53 => 1,);
  186. }
  187. public function getSourceContext(): Source
  188. {
  189. return new Source("{% import \"macros.html.twig\" as macros %}
  190. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"3\" style=\"display: none;\">
  191. <div class=\"notification-form__item bs5-w-100\">
  192. <div class=\"notification-form__space\">
  193. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  194. <i class=\"glyphicon group notification-form__icon\"></i>
  195. <h6 class=\"notification-form__subtitle\">Świadkowie zdarzenia (w przypadku szkody z winy innego uczestnika ruchu - szkoda z OC sprawcy)</h6>
  196. </div>
  197. <div class=\"witnesses-container\" data-prototype=\"{{ macros.witness(\x27__name__\x27, areaCodes)|e }}\">
  198. {% if caseData is defined and \x27witnesses\x27 in caseData|keys %}
  199. {% for key, witness in caseData[\x27witnesses\x27] %}
  200. {% set fkey = \x27witness_\x27 ~ key %}
  201. {{ macros.witness(key, areaCodes, witness, fields[fkey] is not defined) }}
  202. {% endfor %}
  203. {% elseif mode == \x27create\x27 %}
  204. {{ macros.witness(0, areaCodes) }}
  205. {% else %}
  206. <div class=\"bs5-row\">
  207. <div class=\"bs5-col-12 bs5-col-lg-8 bs5-form-group form__group--space-small\">
  208. <div class=\"data-ready\">Brak informacji o świadkach zdarzenia.</div>
  209. </div>
  210. </div>
  211. {% endif %}
  212. </div>
  213. {% if mode == \x27create\x27 or addWitness %}
  214. <div class=\"bs5-col-12 bs5-form-group form__group bs5-mb-0\">
  215. <div class=\"form__btn notification-form__btn-add\">
  216. <div class=\"bs5-d-flex bs5-align-items-center bs5-justify-content-between\" onclick=\"addWitness();\">
  217. <i class=\"glyphicon plus\"></i>
  218. <span>Dodaj świadka zdarzenia</span>
  219. </div>
  220. </div>
  221. </div>
  222. {% endif %}
  223. </div>
  224. </div>
  225. </div>
  226. {% if mode == \x27create\x27 or fields[\x27attachments\x27] is defined %}
  227. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"1,2,3\" style=\"display: none;\">
  228. <div class=\"notification-form__space\">
  229. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  230. <i class=\"glyphicon paperclip notification-form__icon\"></i>
  231. <h6 class=\"notification-form__subtitle\">Załączniki</h6>
  232. </div>
  233. <div class=\"bs5-row attachments-container\">
  234. {% include \x27attachments.html.twig\x27 %}
  235. </div>
  236. </div>
  237. </div>
  238. {% endif %}
  239. {% if mode == \x27update\x27 %}
  240. <div class=\"bs5-col-lg-12 notification-form__border--bottom\">
  241. <div class=\"notification-form__item bs5-w-100\">
  242. <div class=\"notification-form__space\">
  243. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  244. <i class=\"glyphicon cars notification-form__icon\"></i>
  245. <h6 class=\"notification-form__subtitle\">Komentarz dla operatora</h6>
  246. </div>
  247. <div class=\"bs5-row bs5-mb-2 bs5-pb-2\">
  248. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  249. <textarea name=\"form[empty_data_comment]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" rows=\"5\" placeholder=\"Wpisz komentarz dla operatora\"></textarea>
  250. </div>
  251. </div>
  252. </div>
  253. </div>
  254. </div>
  255. {% endif %}", "step3.html.twig", "/www/inglease.serviceflow.pl/templates/step3.html.twig");
  256. }
  257. }