var/cache/dev/twig/f3/f3a135b70f71fc76f70110dfc45c03a0.php line 189

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. /* step1.html.twig */
  18. class __TwigTemplate_a812f51f31fdb197afad6ea7467c8843 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", "step1.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", "step1.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\">
  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-3\">
  50. <i class=\"glyphicon car notification-form__icon\"></i>
  51. <h6 class=\"notification-form__subtitle\">Samochód <span>(Twój pojazd)</span></h6>
  52. </div>
  53. <div class=\"bs5-row\">
  54. <div class=\"form-group bs5-col-12 bs5-col-md-8 bs5-form-group form__group--space-small\">
  55. ";
  56. // line 12
  57. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 12, $this->source); })()) == "create")) {
  58. // line 13
  59. yield " <input type=\"text\" name=\"form[car_registration]\" value=\"\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--digits-and-letters-only form__control--border-required\" placeholder=\"Numer rejestracyjny\" title=\"Numer rejestracyjny\">
  60. ";
  61. } else {
  62. // line 15
  63. yield " <div class=\"data-ready\">Numer rejestracyjny: <strong>";
  64. yield (string) $this->escaper->escape(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.', 15, $this->source); })()), "car_registration", [], "array", false, false, false, 15), "html", null, true);
  65. yield "</strong></div>
  66. ";
  67. }
  68. // line 17
  69. yield " </div>
  70. <div class=\"form-group bs5-col-12 bs5-col-md-8 bs5-form-group form__group--space-small\">
  71. ";
  72. // line 19
  73. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 19, $this->source); })()) == "create")) {
  74. // line 20
  75. yield " <input type=\"text\" name=\"form[vin]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--digits-and-letters-only form__control--border-required\" placeholder=\"Numer VIN (5 ostatnich znaków)\" title=\"Numer VIN (5 ostatnich znaków)\">
  76. ";
  77. } else {
  78. // line 22
  79. yield " <div class=\"data-ready\">Numer VIN: <strong>";
  80. yield (string) $this->escaper->escape(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.', 22, $this->source); })()), "car_vin", [], "array", false, false, false, 22), "html", null, true);
  81. yield "</strong></div>
  82. ";
  83. }
  84. // line 24
  85. yield " </div>
  86. <div class=\"bs5-col-12 bs5-form-group form__group--space-small car-brand-container\" style=\"display: none;\">
  87. ";
  88. // line 26
  89. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 26, $this->source); })()) == "create")) {
  90. // line 27
  91. yield " <div class=\"data-ready car-brand\">Marka: <strong></strong></div>
  92. <input type=\"hidden\" name=\"form[brand]\" value=\"\"/>
  93. ";
  94. // line 37
  95. yield " ";
  96. } else {
  97. // line 38
  98. yield " <div class=\"data-ready\">Marka: <strong>";
  99. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_brand", [], "array", true, true, false, 38)) ? (Twig\Extension\CoreExtension::default(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.', 38, $this->source); })()), "car_brand", [], "array", false, false, false, 38), "b.d.")) : ("b.d.")), "html", null, true);
  100. yield "</strong></div>
  101. ";
  102. }
  103. // line 40
  104. yield " </div>
  105. <div class=\"bs5-col-12 bs5-form-group form__group--space-small car-model-container\" style=\"display: none;\">
  106. ";
  107. // line 42
  108. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 42, $this->source); })()) == "create")) {
  109. // line 43
  110. yield " <div class=\"data-ready car-model\">Model: <strong></strong></div>
  111. <input type=\"hidden\" name=\"form[model]\" value=\"\"/>
  112. ";
  113. // line 48
  114. yield " ";
  115. } else {
  116. // line 49
  117. yield " <div class=\"data-ready\">Model: <strong>";
  118. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_model", [], "array", true, true, false, 49)) ? (Twig\Extension\CoreExtension::default(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.', 49, $this->source); })()), "car_model", [], "array", false, false, false, 49), "b.d.")) : ("b.d.")), "html", null, true);
  119. yield "</strong></div>
  120. ";
  121. }
  122. // line 51
  123. yield " </div>
  124. </div>
  125. </div>
  126. </div>
  127. </div>
  128. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\">
  129. <div class=\"notification-form__item bs5-w-100\">
  130. <div class=\"notification-form__space reporting-person-data\">
  131. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  132. <i class=\"glyphicon user notification-form__icon\"></i>
  133. <h6 class=\"notification-form__subtitle\">Dane zgłaszającego</h6>
  134. </div>
  135. <div class=\"bs5-row\">
  136. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  137. ";
  138. // line 66
  139. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 66, $this->source); })()) == "create")) {
  140. // line 67
  141. yield " <input type=\"text\" name=\"form[reporting_person][name]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--border-required\" type=\"text\" placeholder=\"Imię\" title=\"Imię\">
  142. ";
  143. } else {
  144. // line 69
  145. yield " <div class=\"data-ready\">Imię: <strong>";
  146. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "reporting_person", [], "array", false, true, false, 69), "name", [], "array", true, true, false, 69)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 69, $this->source); })()), "reporting_person", [], "array", false, false, false, 69), "name", [], "array", false, false, false, 69), "b.d.")) : ("b.d.")), "html", null, true);
  147. yield "</strong></div>
  148. ";
  149. }
  150. // line 71
  151. yield " </div>
  152. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  153. ";
  154. // line 73
  155. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 73, $this->source); })()) == "create")) {
  156. // line 74
  157. yield " <input type=\"text\" name=\"form[reporting_person][surname]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--border-required\" type=\"text\" placeholder=\"Nazwisko\" title=\"Nazwisko\">
  158. ";
  159. } else {
  160. // line 76
  161. yield " <div class=\"data-ready\">Nazwisko: <strong>";
  162. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "reporting_person", [], "array", false, true, false, 76), "surname", [], "array", true, true, false, 76)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 76, $this->source); })()), "reporting_person", [], "array", false, false, false, 76), "surname", [], "array", false, false, false, 76), "b.d.")) : ("b.d.")), "html", null, true);
  163. yield "</strong></div>
  164. ";
  165. }
  166. // line 78
  167. yield " </div>
  168. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  169. ";
  170. // line 80
  171. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 80, $this->source); })()) == "create")) {
  172. // line 81
  173. yield " <div class=\"bs5-input-group\">
  174. <div class=\"bs5-col-3\">
  175. <select name=\"form[reporting_person][phone_prefix]\" class=\"bs5-form-select form__select form__select--border-left form__select--medium-size form__select--border-dark\">
  176. ";
  177. // line 84
  178. yield (string) ($macros["͜macros"] ?? $this->throwUninitializedMacroNamespace(84))->call("areaCodesDropdown", [(isset($context["areaCodes"]) || array_key_exists("areaCodes", $context) ? $context["areaCodes"] : (function () { throw new RuntimeError('Variable "areaCodes" does not exist.', 84, $this->source); })())], $context, 84, $this->source);
  179. yield "
  180. </select>
  181. </div>
  182. <div class=\"bs5-col-9\">
  183. <input type=\"text\" name=\"form[reporting_person][phone]\" class=\"bs5-form-control form__control--border-left form__control form__control--medium-size form__control--border-dark form__control--border-required form__control--digits-only\" type=\"text\" placeholder=\"Numer telefonu\" title=\"Numer telefonu\">
  184. </div>
  185. </div>
  186. ";
  187. } else {
  188. // line 92
  189. yield " <div class=\"data-ready\">Numer telefonu: <strong>";
  190. yield (string) $this->escaper->escape(((((($tmp = ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "reporting_person", [], "array", false, true, false, 92), "phone", [], "array", true, true, false, 92)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 92, $this->source); })()), "reporting_person", [], "array", false, false, false, 92), "phone", [], "array", false, false, false, 92), null)) : (null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "reporting_person", [], "array", false, true, false, 92), "phone_prefix", [], "array", false, true, false, 92), "code", [], "array", true, true, false, 92)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 92, $this->source); })()), "reporting_person", [], "array", false, false, false, 92), "phone_prefix", [], "array", false, false, false, 92), "code", [], "array", false, false, false, 92), "")) : (""))) : ("")) . ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "reporting_person", [], "array", false, true, false, 92), "phone", [], "array", true, true, false, 92)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 92, $this->source); })()), "reporting_person", [], "array", false, false, false, 92), "phone", [], "array", false, false, false, 92), "b.d.")) : ("b.d."))), "html", null, true);
  191. yield "</strong></div>
  192. ";
  193. }
  194. // line 94
  195. yield " </div>
  196. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  197. ";
  198. // line 96
  199. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 96, $this->source); })()) == "create")) {
  200. // line 97
  201. yield " <input type=\"text\" name=\"form[reporting_person][email]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--border-required\" type=\"email\" placeholder=\"Adres e-mail\" title=\"Adres e-mail\">
  202. ";
  203. } else {
  204. // line 99
  205. yield " <div class=\"data-ready\">Email: <strong>";
  206. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, 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.', 99, $this->source); })()), "reporting_person", [], "array", false, false, false, 99), "email", [], "array", false, false, false, 99), "html", null, true);
  207. yield "</strong></div>
  208. ";
  209. }
  210. // line 101
  211. yield " </div>
  212. </div>
  213. </div>
  214. </div>
  215. </div>
  216. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\">
  217. <div class=\"notification-form__item bs5-w-100\">
  218. <div class=\"notification-form__space\">
  219. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  220. <i class=\"glyphicon cars notification-form__icon\"></i>
  221. <h6 class=\"notification-form__subtitle\">Zdarzenie</h6>
  222. </div>
  223. <div class=\"bs5-row\">
  224. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  225. ";
  226. // line 116
  227. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 116, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "damage_place", [], "array", true, true, false, 116))) {
  228. // line 117
  229. yield " <input type=\"text\" name=\"form[damage_place]\" value=\"";
  230. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "damage_place", [], "array", true, true, false, 117)) ? (Twig\Extension\CoreExtension::default(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.', 117, $this->source); })()), "damage_place", [], "array", false, false, false, 117), "")) : ("")), "html", null, true);
  231. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark";
  232. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 117, $this->source); })()) == "create")) {
  233. yield " form__control--border-required";
  234. }
  235. yield "\" placeholder=\"Miejsce zdarzenia (miejscowość, ulica, odcinek drogi)\" title=\"Miejsce zdarzenia\">
  236. ";
  237. } else {
  238. // line 119
  239. yield " <div class=\"data-ready\">Miejsce zdarzenia: <strong>";
  240. yield (string) $this->escaper->escape(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.', 119, $this->source); })()), "damage_place", [], "array", false, false, false, 119), "html", null, true);
  241. yield "</strong></div>
  242. ";
  243. }
  244. // line 121
  245. yield " </div>
  246. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  247. ";
  248. // line 123
  249. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 123, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "damage_date", [], "array", true, true, false, 123))) {
  250. // line 124
  251. yield " <input type=\"text\" name=\"form[damage_date]\" value=\"";
  252. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "damage_date", [], "array", true, true, false, 124)) ? (Twig\Extension\CoreExtension::default(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.', 124, $this->source); })()), "damage_date", [], "array", false, false, false, 124), "")) : ("")), "html", null, true);
  253. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark";
  254. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 124, $this->source); })()) == "create")) {
  255. yield " form__control--border-required";
  256. }
  257. yield " bs5-pe-5 js-date damage-date\" placeholder=\"Data zdarzenia - wybierz\" title=\"Data zdarzenia\" readonly=\"readonly\" data-current-date=\"";
  258. yield (string) $this->escaper->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d"), "html", null, true);
  259. yield "\">
  260. <span class=\"input-group-addon bs5-w-auto datepicker__icon\"><i class=\"glyphicon calendar\"></i></span>
  261. ";
  262. } else {
  263. // line 127
  264. yield " <div class=\"data-ready\">Data zdarzenia: <span class=\"text-bold damage-date\" data-current-date=\"";
  265. yield (string) $this->escaper->escape($this->extensions['Twig\Extension\CoreExtension']->formatDate("now", "Y-m-d"), "html", null, true);
  266. yield "\">";
  267. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "damage_date", [], "array", true, true, false, 127)) ? (Twig\Extension\CoreExtension::default(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.', 127, $this->source); })()), "damage_date", [], "array", false, false, false, 127), "b.d.")) : ("b.d.")), "html", null, true);
  268. yield "</span></div>
  269. ";
  270. }
  271. // line 129
  272. yield " </div>
  273. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  274. ";
  275. // line 131
  276. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 131, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 131), "damage_notice_date", [], "array", true, true, false, 131))) {
  277. // line 132
  278. yield " <input type=\"text\" name=\"form[extended_info][damage_notice_date]\" value=\"";
  279. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 132), "damage_notice_date", [], "array", true, true, false, 132)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 132, $this->source); })()), "extended_info", [], "array", false, false, false, 132), "damage_notice_date", [], "array", false, false, false, 132), "")) : ("")), "html", null, true);
  280. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark";
  281. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 132, $this->source); })()) == "create")) {
  282. yield " form__control--border-required";
  283. }
  284. yield " bs5-pe-5 js-date damage-notice-date\" placeholder=\"Data zauważenia szkody - wybierz\" title=\"Data zauważenia szkody\" readonly=\"readonly\">
  285. <span class=\"input-group-addon bs5-w-auto datepicker__icon\"><i class=\"glyphicon calendar\"></i></span>
  286. ";
  287. } else {
  288. // line 135
  289. yield " <div class=\"data-ready\">Data zauważenia szkody: <span class=\"text-bold damage-notice-date\">";
  290. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 135), "damage_notice_date", [], "array", true, true, false, 135)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 135, $this->source); })()), "extended_info", [], "array", false, false, false, 135), "damage_notice_date", [], "array", false, false, false, 135), "b.d.")) : ("b.d.")), "html", null, true);
  291. yield "</span></div>
  292. ";
  293. }
  294. // line 137
  295. yield " </div>
  296. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  297. ";
  298. // line 139
  299. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 139, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "damage_cause", [], "array", true, true, false, 139))) {
  300. // line 140
  301. yield " <select name=\"form[damage_cause]\" class=\"bs5-form-select form__select form__select--medium-size form__select--border-dark";
  302. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 140, $this->source); })()) == "create")) {
  303. yield " form__control--border-required";
  304. }
  305. yield "\" title=\"Przyczyna powstania szkody\">
  306. <option value=\"\">- przyczyna powstania szkody -</option>
  307. ";
  308. // line 142
  309. if ((is_iterable((isset($context["damageCauses"]) || array_key_exists("damageCauses", $context) ? $context["damageCauses"] : (function () { throw new RuntimeError('Variable "damageCauses" does not exist.', 142, $this->source); })())) && (Twig\Extension\CoreExtension::length($this->env->getCharset(), (isset($context["damageCauses"]) || array_key_exists("damageCauses", $context) ? $context["damageCauses"] : (function () { throw new RuntimeError('Variable "damageCauses" does not exist.', 142, $this->source); })())) > 0))) {
  310. // line 143
  311. yield " ";
  312. $context['_parent'] = $context;
  313. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["damageCauses"]) || array_key_exists("damageCauses", $context) ? $context["damageCauses"] : (function () { throw new RuntimeError('Variable "damageCauses" does not exist.', 143, $this->source); })()));
  314. foreach ($context['_seq'] as $context["_key"] => $context["damageCause"]) {
  315. // line 144
  316. yield " ";
  317. $context["viewVariant"] = null;
  318. // line 145
  319. yield " ";
  320. $context['_parent'] = $context;
  321. $context['_seq'] = CoreExtension::ensureTraversable((isset($context["viewVariants"]) || array_key_exists("viewVariants", $context) ? $context["viewVariants"] : (function () { throw new RuntimeError('Variable "viewVariants" does not exist.', 145, $this->source); })()));
  322. foreach ($context['_seq'] as $context["variantKey"] => $context["damageCauseIds"]) {
  323. // line 146
  324. yield " ";
  325. if (CoreExtension::inFilter(CoreExtension::getAttribute($this->env, $this->source, $context["damageCause"], "id", [], "any", false, false, false, 146), $context["damageCauseIds"])) {
  326. // line 147
  327. yield " ";
  328. $context["viewVariant"] = $context["variantKey"];
  329. // line 148
  330. yield " ";
  331. }
  332. // line 149
  333. yield " ";
  334. }
  335. $_parent = $context['_parent'];
  336. unset($context['_seq'], $context['variantKey'], $context['damageCauseIds'], $context['_parent']);
  337. $context = array_intersect_key($context, $_parent);
  338. $context += $_parent;
  339. // line 150
  340. yield " ";
  341. if (CoreExtension::getAttribute($this->env, $this->source, $context["damageCause"], "id", [], "any", true, true, false, 150)) {
  342. // line 151
  343. yield " <option value=\"";
  344. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["damageCause"], "id", [], "any", false, false, false, 151), "html", null, true);
  345. yield "\"";
  346. if ((((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "damage_cause", [], "array", false, true, false, 151), "id", [], "array", true, true, false, 151)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 151, $this->source); })()), "damage_cause", [], "array", false, false, false, 151), "id", [], "array", false, false, false, 151), null)) : (null)) == CoreExtension::getAttribute($this->env, $this->source, $context["damageCause"], "id", [], "any", false, false, false, 151))) {
  347. yield " selected=\"selected\"";
  348. }
  349. if ( !((isset($context["viewVariant"]) || array_key_exists("viewVariant", $context) ? $context["viewVariant"] : (function () { throw new RuntimeError('Variable "viewVariant" does not exist.', 151, $this->source); })()) === null)) {
  350. yield " data-view-variant=\"";
  351. yield (string) $this->escaper->escape((isset($context["viewVariant"]) || array_key_exists("viewVariant", $context) ? $context["viewVariant"] : (function () { throw new RuntimeError('Variable "viewVariant" does not exist.', 151, $this->source); })()), "html", null, true);
  352. yield "\"";
  353. }
  354. yield ">";
  355. yield (string) $this->escaper->escape(CoreExtension::getAttribute($this->env, $this->source, $context["damageCause"], "name", [], "any", false, false, false, 151), "html", null, true);
  356. yield "</option>
  357. ";
  358. }
  359. // line 153
  360. yield " ";
  361. }
  362. $_parent = $context['_parent'];
  363. unset($context['_seq'], $context['_key'], $context['damageCause'], $context['_parent']);
  364. $context = array_intersect_key($context, $_parent);
  365. $context += $_parent;
  366. // line 154
  367. yield " ";
  368. }
  369. // line 155
  370. yield " </select>
  371. ";
  372. } else {
  373. // line 157
  374. yield " <div class=\"data-ready\">Przyczyna powstania szkody: <strong>";
  375. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "damage_cause", [], "array", false, true, false, 157), "name", [], "array", true, true, false, 157)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 157, $this->source); })()), "damage_cause", [], "array", false, false, false, 157), "name", [], "array", false, false, false, 157), "b.d.")) : ("b.d.")), "html", null, true);
  376. yield "</strong></div>
  377. ";
  378. }
  379. // line 159
  380. yield " </div>
  381. <div class=\"bs5-col-12 bs5-form-group form__group\">
  382. ";
  383. // line 161
  384. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 161, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "damage_description", [], "array", true, true, false, 161))) {
  385. // line 162
  386. yield " <textarea name=\"form[damage_description]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark";
  387. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 162, $this->source); })()) == "create")) {
  388. yield " form__control--border-required";
  389. }
  390. yield "\" rows=\"5\" maxlength=\"1300\" placeholder=\"Opis uszkodzeń pojazdu (max 1300 znaków)\" title=\"Opis uszkodzeń pojazdu (max 1300 znaków)\">";
  391. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "damage_description", [], "array", true, true, false, 162)) ? (Twig\Extension\CoreExtension::default(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.', 162, $this->source); })()), "damage_description", [], "array", false, false, false, 162), "")) : ("")), "html", null, true);
  392. yield "</textarea>
  393. ";
  394. } else {
  395. // line 164
  396. yield " <div class=\"data-ready\">Opis uszkodzeń pojazdu: <strong>";
  397. yield (string) Twig\Extension\CoreExtension::nl2br($this->escaper->escape(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.', 164, $this->source); })()), "damage_description", [], "array", false, false, false, 164), "html", null, true));
  398. yield "</strong></div>
  399. ";
  400. }
  401. // line 166
  402. yield " </div>
  403. <div class=\"bs5-col-12 bs5-form-group form__group\">
  404. ";
  405. // line 168
  406. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 168, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "incident_description", [], "array", true, true, false, 168))) {
  407. // line 169
  408. yield " <textarea name=\"form[incident_description]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark";
  409. if (((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 169, $this->source); })()) == "create")) {
  410. yield " form__control--border-required";
  411. }
  412. yield "\" rows=\"5\" maxlength=\"1300\" placeholder=\"Opis okoliczności zdarzenia (max 1300 znaków)\" title=\"Opis okoliczności zdarzenia (max 1300 znaków)\">";
  413. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "incident_description", [], "array", true, true, false, 169)) ? (Twig\Extension\CoreExtension::default(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.', 169, $this->source); })()), "incident_description", [], "array", false, false, false, 169), "")) : ("")), "html", null, true);
  414. yield "</textarea>
  415. ";
  416. } else {
  417. // line 171
  418. yield " <div class=\"data-ready\">Opis okoliczności zdarzenia: <strong>";
  419. yield (string) Twig\Extension\CoreExtension::nl2br($this->escaper->escape(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.', 171, $this->source); })()), "incident_description", [], "array", false, false, false, 171), "html", null, true));
  420. yield "</strong></div>
  421. ";
  422. }
  423. // line 173
  424. yield " </div>
  425. <div class=\"bs5-col-12 bs5-form-group form__group bs5-mb-0\">
  426. ";
  427. // line 175
  428. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 175, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 175), "city_of_car_use", [], "array", true, true, false, 175))) {
  429. // line 176
  430. yield " <input type=\"text\" name=\"form[extended_info][city_of_car_use]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Aktualne miasto użytkowania pojazdu\">
  431. ";
  432. } else {
  433. // line 178
  434. yield " <div class=\"data-ready\">Aktualne miasto użytkowania pojazdu: <strong>";
  435. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 178), "city_of_car_use", [], "array", true, true, false, 178)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 178, $this->source); })()), "extended_info", [], "array", false, false, false, 178), "city_of_car_use", [], "array", false, false, false, 178), "b.d.")) : ("b.d.")), "html", null, true);
  436. yield "</strong></div>
  437. ";
  438. }
  439. // line 180
  440. yield " </div>
  441. </div>
  442. </div>
  443. </div>
  444. </div>
  445. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"1,2,3\" style=\"display: none;\">
  446. <div class=\"notification-form__item bs5-w-100\">
  447. <div class=\"notification-form__space car-user-data\">
  448. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  449. <i class=\"glyphicon user notification-form__icon\"></i>
  450. <h6 class=\"notification-form__subtitle\">Dane kierującego</h6>
  451. </div>
  452. ";
  453. // line 193
  454. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 193, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "driver", [], "array", true, true, false, 193))) {
  455. // line 194
  456. yield " <div class=\"bs5-col-12 bs5-col-md-6 form__group--space-small\">
  457. <div class=\"bs5-form-check form__check bs5-ps-0\">
  458. <input class=\"bs5-form-check-input form__chceck-input\" type=\"checkbox\" name=\"form[car_user_data_as_reporting_person]\" value=\"1\" id=\"car_user_data_as_reporting_person\">
  459. <label class=\"bs5-form-check-label form__chceck-label\" for=\"car_user_data_as_reporting_person\">
  460. takie same jak zgłaszającego
  461. </label>
  462. </div>
  463. </div>
  464. ";
  465. }
  466. // line 203
  467. yield " <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  468. ";
  469. // line 204
  470. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 204, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "driver", [], "array", true, true, false, 204))) {
  471. // line 205
  472. yield " <input type=\"text\" name=\"form[car_user_name]\" value=\"";
  473. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_name", [], "array", true, true, false, 205)) ? (Twig\Extension\CoreExtension::default(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.', 205, $this->source); })()), "car_user_name", [], "array", false, false, false, 205), "")) : ("")), "html", null, true);
  474. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Imię\"/>
  475. ";
  476. } else {
  477. // line 207
  478. yield " <div class=\"data-ready\">Imię: <strong>";
  479. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_name", [], "array", true, true, false, 207)) ? (Twig\Extension\CoreExtension::default(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.', 207, $this->source); })()), "car_user_name", [], "array", false, false, false, 207), "b.d.")) : ("b.d.")), "html", null, true);
  480. yield "</strong></div>
  481. ";
  482. }
  483. // line 209
  484. yield " </div>
  485. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  486. ";
  487. // line 211
  488. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 211, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "driver", [], "array", true, true, false, 211))) {
  489. // line 212
  490. yield " <input type=\"text\" name=\"form[car_user_surname]\" value=\"";
  491. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_surname", [], "array", true, true, false, 212)) ? (Twig\Extension\CoreExtension::default(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.', 212, $this->source); })()), "car_user_surname", [], "array", false, false, false, 212), "")) : ("")), "html", null, true);
  492. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Nazwisko\"/>
  493. ";
  494. } else {
  495. // line 214
  496. yield " <div class=\"data-ready\">Nazwisko: <strong>";
  497. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_surname", [], "array", true, true, false, 214)) ? (Twig\Extension\CoreExtension::default(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.', 214, $this->source); })()), "car_user_surname", [], "array", false, false, false, 214), "b.d.")) : ("b.d.")), "html", null, true);
  498. yield "</strong></div>
  499. ";
  500. }
  501. // line 216
  502. yield " </div>
  503. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  504. ";
  505. // line 218
  506. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 218, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "driver", [], "array", true, true, false, 218))) {
  507. // line 219
  508. yield " <div class=\"bs5-input-group\">
  509. <div class=\"bs5-col-3\">
  510. <select name=\"form[car_user_phone_prefix]\" class=\"bs5-form-control bs5-form-select form__select form__select--border-left form__select--medium-size form__select--border-dark\">
  511. ";
  512. // line 222
  513. yield (string) ($macros["͜macros"] ?? $this->throwUninitializedMacroNamespace(222))->call("areaCodesDropdown", [(isset($context["areaCodes"]) || array_key_exists("areaCodes", $context) ? $context["areaCodes"] : (function () { throw new RuntimeError('Variable "areaCodes" does not exist.', 222, $this->source); })()), ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_phone_prefix", [], "array", false, true, false, 222), "code", [], "array", true, true, false, 222)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 222, $this->source); })()), "car_user_phone_prefix", [], "array", false, false, false, 222), "code", [], "array", false, false, false, 222), "")) : (""))], $context, 222, $this->source);
  514. yield "
  515. </select>
  516. </div>
  517. <div class=\"bs5-col-9\">
  518. <input type=\"text\" name=\"form[car_user_phone]\" value=\"";
  519. // line 226
  520. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_phone", [], "array", true, true, false, 226)) ? (Twig\Extension\CoreExtension::default(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.', 226, $this->source); })()), "car_user_phone", [], "array", false, false, false, 226), "")) : ("")), "html", null, true);
  521. yield "\" class=\"bs5-form-control form__control--border-left form__control form__control--medium-size form__control--border-dark form__control--digits-only\" type=\"text\" placeholder=\"Numer telefonu\"/>
  522. </div>
  523. </div>
  524. ";
  525. } else {
  526. // line 230
  527. yield " <div class=\"data-ready\">Numer telefonu: <strong>";
  528. yield (string) $this->escaper->escape(((((($tmp = ((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_phone", [], "array", true, true, false, 230)) ? (Twig\Extension\CoreExtension::default(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.', 230, $this->source); })()), "car_user_phone", [], "array", false, false, false, 230), null)) : (null))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_phone_prefix", [], "array", false, true, false, 230), "code", [], "array", true, true, false, 230)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 230, $this->source); })()), "car_user_phone_prefix", [], "array", false, false, false, 230), "code", [], "array", false, false, false, 230), "")) : (""))) : ("")) . ((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_phone", [], "array", true, true, false, 230)) ? (Twig\Extension\CoreExtension::default(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.', 230, $this->source); })()), "car_user_phone", [], "array", false, false, false, 230), "b.d.")) : ("b.d."))), "html", null, true);
  529. yield "</strong></div>
  530. ";
  531. }
  532. // line 232
  533. yield " </div>
  534. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  535. ";
  536. // line 234
  537. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 234, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "driver", [], "array", true, true, false, 234))) {
  538. // line 235
  539. yield " <input type=\"text\" name=\"form[car_user_email]\" value=\"";
  540. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_email", [], "array", true, true, false, 235)) ? (Twig\Extension\CoreExtension::default(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.', 235, $this->source); })()), "car_user_email", [], "array", false, false, false, 235), "")) : ("")), "html", null, true);
  541. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Adres e-mail\"/>
  542. ";
  543. } else {
  544. // line 237
  545. yield " <div class=\"data-ready\">Email: <strong>";
  546. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "car_user_email", [], "array", true, true, false, 237)) ? (Twig\Extension\CoreExtension::default(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.', 237, $this->source); })()), "car_user_email", [], "array", false, false, false, 237), "b.d.")) : ("b.d.")), "html", null, true);
  547. yield "</strong></div>
  548. ";
  549. }
  550. // line 239
  551. yield " </div>
  552. </div>
  553. </div>
  554. </div>
  555. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"1,2,3\" style=\"display: none;\">
  556. <div class=\"notification-form__item bs5-w-100\">
  557. <div class=\"notification-form__space\">
  558. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  559. <i class=\"glyphicon cars notification-form__icon\"></i>
  560. <h6 class=\"notification-form__subtitle\">Dane zdarzenia - szczegóły</h6>
  561. </div>
  562. <div class=\"bs5-row bs5-mb-1 bs5-pb-2\">
  563. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  564. <fieldset class=\"bs5-row form__fieldset\">
  565. <div class=\"bs5-col-12 bs5-col-lg-8\">
  566. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy na miejscu interweniowała policja? <strong class=\"form__control--required\">*</strong></legend>
  567. </div>
  568. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end form__group\">
  569. ";
  570. // line 258
  571. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 258, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 258), "police_intervention", [], "array", true, true, false, 258))) {
  572. // line 259
  573. yield " <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  574. <input class=\"form-check-input bs5-form-check-input\" type=\"radio\" name=\"form[extended_info][police_intervention]\" id=\"police_intervention_1\" value=\"1\"";
  575. // line 260
  576. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 260), "police_intervention", [], "array", true, true, false, 260) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 260, $this->source); })()), "extended_info", [], "array", false, false, false, 260), "police_intervention", [], "array", false, false, false, 260) === true))) {
  577. yield " checked=\"checked\"";
  578. }
  579. yield "/>
  580. <label class=\"bs5-form-check-label\" for=\"police_intervention_1\">TAK</label>
  581. </div>
  582. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  583. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][police_intervention]\" id=\"police_intervention_0\" value=\"0\"";
  584. // line 264
  585. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 264), "police_intervention", [], "array", true, true, false, 264) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 264, $this->source); })()), "extended_info", [], "array", false, false, false, 264), "police_intervention", [], "array", false, false, false, 264) === false))) {
  586. yield " checked=\"checked\"";
  587. }
  588. yield "/>
  589. <label class=\"bs5-form-check-label\" for=\"police_intervention_0\">NIE</label>
  590. </div>
  591. ";
  592. } else {
  593. // line 268
  594. yield " <div class=\"data-ready\" data-police-intervention=\"";
  595. yield (string) ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 268), "police_intervention", [], "array", true, true, false, 268)) ? ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 268, $this->source); })()), "extended_info", [], "array", false, false, false, 268), "police_intervention", [], "array", false, false, false, 268)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? (1) : (0))) : (""));
  596. yield "\"><strong>";
  597. yield (string) (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 268), "police_intervention", [], "array", true, true, false, 268) && !(CoreExtension::getAttribute($this->env, $this->source, 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.', 268, $this->source); })()), "extended_info", [], "array", false, false, false, 268), "police_intervention", [], "array", false, false, false, 268) === null))) ? ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 268, $this->source); })()), "extended_info", [], "array", false, false, false, 268), "police_intervention", [], "array", false, false, false, 268)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("TAK") : ("NIE"))) : ("b.d."));
  598. yield "</strong></div>
  599. ";
  600. }
  601. // line 270
  602. yield " </div>
  603. </fieldset>
  604. </div>
  605. </div>
  606. <div class=\"bs5-row bs5-mb-1 bs5-pb-2 police-details\">
  607. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  608. ";
  609. // line 276
  610. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 276, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 276), "police_unit_name", [], "array", true, true, false, 276))) {
  611. // line 277
  612. yield " <input type=\"text\" name=\"form[extended_info][police_unit_name]\" value=\"";
  613. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 277), "police_unit_name", [], "array", true, true, false, 277)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 277, $this->source); })()), "extended_info", [], "array", false, false, false, 277), "police_unit_name", [], "array", false, false, false, 277), "")) : ("")), "html", null, true);
  614. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Nazwa jednostki policji\" title=\"Nazwa jednostki policji\">
  615. ";
  616. } else {
  617. // line 279
  618. yield " <div class=\"data-ready\">Numer jednostki policyjnej: <strong>";
  619. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 279), "police_unit_name", [], "array", true, true, false, 279)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 279, $this->source); })()), "extended_info", [], "array", false, false, false, 279), "police_unit_name", [], "array", false, false, false, 279), "b.d.")) : ("b.d.")), "html", null, true);
  620. yield "</strong></div>
  621. ";
  622. }
  623. // line 281
  624. yield " </div>
  625. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  626. ";
  627. // line 283
  628. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 283, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 283), "police_note_number", [], "array", true, true, false, 283))) {
  629. // line 284
  630. yield " <input type=\"text\" name=\"form[extended_info][police_note_number]\" value=\"";
  631. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 284), "police_note_number", [], "array", true, true, false, 284)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 284, $this->source); })()), "extended_info", [], "array", false, false, false, 284), "police_note_number", [], "array", false, false, false, 284), "")) : ("")), "html", null, true);
  632. yield "\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Numer notatki policyjnej* - jeśli występuje\" title=\"Numer notatki policyjnej* - jeśli występuje\">
  633. ";
  634. } else {
  635. // line 286
  636. yield " <div class=\"data-ready\">Numer notatki policyjnej: <strong>";
  637. yield (string) $this->escaper->escape(((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 286), "police_note_number", [], "array", true, true, false, 286)) ? (Twig\Extension\CoreExtension::default(CoreExtension::getAttribute($this->env, $this->source, 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.', 286, $this->source); })()), "extended_info", [], "array", false, false, false, 286), "police_note_number", [], "array", false, false, false, 286), "b.d.")) : ("b.d.")), "html", null, true);
  638. yield "</strong></div>
  639. ";
  640. }
  641. // line 288
  642. yield " </div>
  643. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  644. <fieldset class=\"bs5-row form__fieldset\">
  645. <div class=\"bs5-col-12 bs5-col-lg-8\">
  646. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy sprawca został ukarany?</legend>
  647. </div>
  648. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end\">
  649. ";
  650. // line 295
  651. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 295, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 295), "perpetrator_punished", [], "array", true, true, false, 295))) {
  652. // line 296
  653. yield " <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  654. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_punished]\" id=\"perpetrator_punished_1\" value=\"1\"";
  655. // line 297
  656. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 297), "perpetrator_punished", [], "array", true, true, false, 297) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 297, $this->source); })()), "extended_info", [], "array", false, false, false, 297), "perpetrator_punished", [], "array", false, false, false, 297) === true))) {
  657. yield " checked=\"checked\"";
  658. }
  659. yield "/>
  660. <label class=\"bs5-form-check-label\" for=\"perpetrator_punished_1\">TAK</label>
  661. </div>
  662. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  663. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_punished]\" id=\"perpetrator_punished_0\" value=\"0\"";
  664. // line 301
  665. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 301), "perpetrator_punished", [], "array", true, true, false, 301) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 301, $this->source); })()), "extended_info", [], "array", false, false, false, 301), "perpetrator_punished", [], "array", false, false, false, 301) === false))) {
  666. yield " checked=\"checked\"";
  667. }
  668. yield "/>
  669. <label class=\"bs5-form-check-label\" for=\"perpetrator_punished_0\">NIE</label>
  670. </div>
  671. ";
  672. } else {
  673. // line 305
  674. yield " <div class=\"data-ready\"><strong>";
  675. yield (string) (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 305), "perpetrator_punished", [], "array", true, true, false, 305) && !(CoreExtension::getAttribute($this->env, $this->source, 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.', 305, $this->source); })()), "extended_info", [], "array", false, false, false, 305), "perpetrator_punished", [], "array", false, false, false, 305) === null))) ? ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 305, $this->source); })()), "extended_info", [], "array", false, false, false, 305), "perpetrator_punished", [], "array", false, false, false, 305)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("TAK") : ("NIE"))) : ("b.d."));
  676. yield "</strong></div>
  677. ";
  678. }
  679. // line 307
  680. yield " </div>
  681. </fieldset>
  682. </div>
  683. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  684. <fieldset class=\"bs5-row form__fieldset\">
  685. <div class=\"bs5-col-12 bs5-col-lg-8\">
  686. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy sprawca przyjął mandat?</legend>
  687. </div>
  688. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end\">
  689. ";
  690. // line 316
  691. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 316, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 316), "perpetrator_accept_mandate", [], "array", true, true, false, 316))) {
  692. // line 317
  693. yield " <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  694. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_accept_mandate]\" id=\"perpetrator_accept_mandate_1\" value=\"1\"";
  695. // line 318
  696. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 318), "perpetrator_accept_mandate", [], "array", true, true, false, 318) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 318, $this->source); })()), "extended_info", [], "array", false, false, false, 318), "perpetrator_accept_mandate", [], "array", false, false, false, 318) === true))) {
  697. yield " checked=\"checked\"";
  698. }
  699. yield "/>
  700. <label class=\"bs5-form-check-label\" for=\"perpetrator_accept_mandate_1\">TAK</label>
  701. </div>
  702. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  703. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_accept_mandate]\" id=\"perpetrator_accept_mandate_0\" value=\"0\"";
  704. // line 322
  705. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 322), "perpetrator_accept_mandate", [], "array", true, true, false, 322) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 322, $this->source); })()), "extended_info", [], "array", false, false, false, 322), "perpetrator_accept_mandate", [], "array", false, false, false, 322) === false))) {
  706. yield " checked=\"checked\"";
  707. }
  708. yield "/>
  709. <label class=\"bs5-form-check-label\" for=\"perpetrator_accept_mandate_0\">NIE</label>
  710. </div>
  711. ";
  712. } else {
  713. // line 326
  714. yield " <div class=\"data-ready\"><strong>";
  715. yield (string) (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 326), "perpetrator_accept_mandate", [], "array", true, true, false, 326) && !(CoreExtension::getAttribute($this->env, $this->source, 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.', 326, $this->source); })()), "extended_info", [], "array", false, false, false, 326), "perpetrator_accept_mandate", [], "array", false, false, false, 326) === null))) ? ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 326, $this->source); })()), "extended_info", [], "array", false, false, false, 326), "perpetrator_accept_mandate", [], "array", false, false, false, 326)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("TAK") : ("NIE"))) : ("b.d."));
  716. yield "</strong></div>
  717. ";
  718. }
  719. // line 328
  720. yield " </div>
  721. </fieldset>
  722. </div>
  723. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  724. <fieldset class=\"bs5-row form__fieldset\">
  725. <div class=\"bs5-col-12 bs5-col-lg-8\">
  726. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy została wykazana współwina?</legend>
  727. </div>
  728. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end\">
  729. ";
  730. // line 337
  731. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 337, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 337), "complicity", [], "array", true, true, false, 337))) {
  732. // line 338
  733. yield " <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  734. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][complicity]\" id=\"complicity_1\" value=\"1\"";
  735. // line 339
  736. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 339), "complicity", [], "array", true, true, false, 339) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 339, $this->source); })()), "extended_info", [], "array", false, false, false, 339), "complicity", [], "array", false, false, false, 339) === true))) {
  737. yield " checked=\"checked\"";
  738. }
  739. yield "/>
  740. <label class=\"bs5-form-check-label\" for=\"complicity_1\">TAK</label>
  741. </div>
  742. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  743. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][complicity]\" id=\"complicity_0\" value=\"0\"";
  744. // line 343
  745. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 343), "complicity", [], "array", true, true, false, 343) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 343, $this->source); })()), "extended_info", [], "array", false, false, false, 343), "complicity", [], "array", false, false, false, 343) === false))) {
  746. yield " checked=\"checked\"";
  747. }
  748. yield "/>
  749. <label class=\"bs5-form-check-label\" for=\"complicity_0\">NIE</label>
  750. </div>
  751. ";
  752. } else {
  753. // line 347
  754. yield " <div class=\"data-ready\"><strong>";
  755. yield (string) (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 347), "complicity", [], "array", true, true, false, 347) && !(CoreExtension::getAttribute($this->env, $this->source, 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.', 347, $this->source); })()), "extended_info", [], "array", false, false, false, 347), "complicity", [], "array", false, false, false, 347) === null))) ? ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 347, $this->source); })()), "extended_info", [], "array", false, false, false, 347), "complicity", [], "array", false, false, false, 347)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("TAK") : ("NIE"))) : ("b.d."));
  756. yield "</strong></div>
  757. ";
  758. }
  759. // line 349
  760. yield " </div>
  761. </fieldset>
  762. </div>
  763. </div>
  764. <div class=\"bs5-row no-police\">
  765. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  766. <fieldset class=\"bs5-row form__fieldset\">
  767. <div class=\"bs5-col-12 bs5-col-lg-8\">
  768. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy spisano oświadczenie sprawcy? <strong class=\"form__control--required\">*</strong></legend>
  769. </div>
  770. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end form__group\">
  771. ";
  772. // line 360
  773. if ((((isset($context["mode"]) || array_key_exists("mode", $context) ? $context["mode"] : (function () { throw new RuntimeError('Variable "mode" does not exist.', 360, $this->source); })()) == "create") || CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["fields"] ?? null), "extended_info", [], "array", false, true, false, 360), "perpetrator_statement", [], "array", true, true, false, 360))) {
  774. // line 361
  775. yield " <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  776. <input class=\"form-check-input bs5-form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_statement]\" id=\"perpetrator_statement_1\" value=\"1\"";
  777. // line 362
  778. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 362), "perpetrator_statement", [], "array", true, true, false, 362) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 362, $this->source); })()), "extended_info", [], "array", false, false, false, 362), "perpetrator_statement", [], "array", false, false, false, 362) === true))) {
  779. yield " checked=\"checked\"";
  780. }
  781. yield "/>
  782. <label class=\"bs5-form-check-label\" for=\"perpetrator_statement_1\">TAK</label>
  783. </div>
  784. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  785. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_statement]\" id=\"perpetrator_statement_0\" value=\"0\"";
  786. // line 366
  787. if ((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 366), "perpetrator_statement", [], "array", true, true, false, 366) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 366, $this->source); })()), "extended_info", [], "array", false, false, false, 366), "perpetrator_statement", [], "array", false, false, false, 366) === false))) {
  788. yield " checked=\"checked\"";
  789. }
  790. yield "/>
  791. <label class=\"bs5-form-check-label\" for=\"perpetrator_statement_0\">NIE</label>
  792. </div>
  793. ";
  794. } else {
  795. // line 370
  796. yield " <div class=\"data-ready\"><strong>";
  797. yield (string) (((CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, ($context["caseData"] ?? null), "extended_info", [], "array", false, true, false, 370), "perpetrator_statement", [], "array", true, true, false, 370) && !(CoreExtension::getAttribute($this->env, $this->source, 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.', 370, $this->source); })()), "extended_info", [], "array", false, false, false, 370), "perpetrator_statement", [], "array", false, false, false, 370) === null))) ? ((((($tmp = CoreExtension::getAttribute($this->env, $this->source, 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.', 370, $this->source); })()), "extended_info", [], "array", false, false, false, 370), "perpetrator_statement", [], "array", false, false, false, 370)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) ? ("TAK") : ("NIE"))) : ("b.d."));
  798. yield "</strong></div>
  799. ";
  800. }
  801. // line 372
  802. yield " </div>
  803. </fieldset>
  804. </div>
  805. </div>
  806. </div>
  807. </div>
  808. </div>";
  809. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  810. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  811. return; yield;
  812. }
  813. /**
  814. * @codeCoverageIgnore
  815. */
  816. public function getTemplateName(): string
  817. {
  818. return "step1.html.twig";
  819. }
  820. /**
  821. * @codeCoverageIgnore
  822. */
  823. public function isTraitable(): bool
  824. {
  825. return false;
  826. }
  827. /**
  828. * @codeCoverageIgnore
  829. */
  830. public function getDefaultEscapeStrategy(): string|false
  831. {
  832. return "html";
  833. }
  834. /**
  835. * @codeCoverageIgnore
  836. */
  837. public function getDebugInfo(): array
  838. {
  839. return array ( 816 => 372, 810 => 370, 801 => 366, 792 => 362, 789 => 361, 787 => 360, 774 => 349, 768 => 347, 759 => 343, 750 => 339, 747 => 338, 745 => 337, 734 => 328, 728 => 326, 719 => 322, 710 => 318, 707 => 317, 705 => 316, 694 => 307, 688 => 305, 679 => 301, 670 => 297, 667 => 296, 665 => 295, 656 => 288, 650 => 286, 644 => 284, 642 => 283, 638 => 281, 632 => 279, 626 => 277, 624 => 276, 616 => 270, 608 => 268, 599 => 264, 590 => 260, 587 => 259, 585 => 258, 564 => 239, 558 => 237, 552 => 235, 550 => 234, 546 => 232, 540 => 230, 533 => 226, 526 => 222, 521 => 219, 519 => 218, 515 => 216, 509 => 214, 503 => 212, 501 => 211, 497 => 209, 491 => 207, 485 => 205, 483 => 204, 480 => 203, 469 => 194, 467 => 193, 452 => 180, 446 => 178, 442 => 176, 440 => 175, 436 => 173, 430 => 171, 420 => 169, 418 => 168, 414 => 166, 408 => 164, 398 => 162, 396 => 161, 392 => 159, 386 => 157, 382 => 155, 379 => 154, 372 => 153, 355 => 151, 352 => 150, 345 => 149, 342 => 148, 339 => 147, 336 => 146, 331 => 145, 328 => 144, 323 => 143, 321 => 142, 313 => 140, 311 => 139, 307 => 137, 301 => 135, 290 => 132, 288 => 131, 284 => 129, 276 => 127, 263 => 124, 261 => 123, 257 => 121, 251 => 119, 241 => 117, 239 => 116, 222 => 101, 216 => 99, 212 => 97, 210 => 96, 206 => 94, 200 => 92, 189 => 84, 184 => 81, 182 => 80, 178 => 78, 172 => 76, 168 => 74, 166 => 73, 162 => 71, 156 => 69, 152 => 67, 150 => 66, 133 => 51, 127 => 49, 124 => 48, 120 => 43, 118 => 42, 114 => 40, 108 => 38, 105 => 37, 101 => 27, 99 => 26, 95 => 24, 89 => 22, 85 => 20, 83 => 19, 79 => 17, 73 => 15, 69 => 13, 67 => 12, 55 => 2, 53 => 1,);
  840. }
  841. public function getSourceContext(): Source
  842. {
  843. return new Source("{% import \"macros.html.twig\" as macros %}
  844. <div class=\"bs5-col-lg-12 notification-form__border--bottom\">
  845. <div class=\"notification-form__item bs5-w-100\">
  846. <div class=\"notification-form__space\">
  847. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  848. <i class=\"glyphicon car notification-form__icon\"></i>
  849. <h6 class=\"notification-form__subtitle\">Samochód <span>(Twój pojazd)</span></h6>
  850. </div>
  851. <div class=\"bs5-row\">
  852. <div class=\"form-group bs5-col-12 bs5-col-md-8 bs5-form-group form__group--space-small\">
  853. {% if mode == \x27create\x27 %}
  854. <input type=\"text\" name=\"form[car_registration]\" value=\"\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--digits-and-letters-only form__control--border-required\" placeholder=\"Numer rejestracyjny\" title=\"Numer rejestracyjny\">
  855. {% else %}
  856. <div class=\"data-ready\">Numer rejestracyjny: <strong>{{ caseData[\x27car_registration\x27] }}</strong></div>
  857. {% endif %}
  858. </div>
  859. <div class=\"form-group bs5-col-12 bs5-col-md-8 bs5-form-group form__group--space-small\">
  860. {% if mode == \x27create\x27 %}
  861. <input type=\"text\" name=\"form[vin]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--digits-and-letters-only form__control--border-required\" placeholder=\"Numer VIN (5 ostatnich znaków)\" title=\"Numer VIN (5 ostatnich znaków)\">
  862. {% else %}
  863. <div class=\"data-ready\">Numer VIN: <strong>{{ caseData[\x27car_vin\x27] }}</strong></div>
  864. {% endif %}
  865. </div>
  866. <div class=\"bs5-col-12 bs5-form-group form__group--space-small car-brand-container\" style=\"display: none;\">
  867. {% if mode == \x27create\x27 %}
  868. <div class=\"data-ready car-brand\">Marka: <strong></strong></div>
  869. <input type=\"hidden\" name=\"form[brand]\" value=\"\"/>
  870. {# <select name=\"form[brand]\" class=\"bs5-form-select form__select form__select--medium-size form__select--border-dark brands-list\">
  871. <option value=\"\">- wybierz markę -</option>
  872. {% if brands.items is defined and brands.items|length > 0 %}
  873. {% for brand in brands.items %}
  874. <option value=\"{{ brand.id }}\">{{ brand.text }}</option>
  875. {% endfor %}
  876. {% endif %}
  877. </select> #}
  878. {% else %}
  879. <div class=\"data-ready\">Marka: <strong>{{ caseData[\x27car_brand\x27]|default(\x27b.d.\x27) }}</strong></div>
  880. {% endif %}
  881. </div>
  882. <div class=\"bs5-col-12 bs5-form-group form__group--space-small car-model-container\" style=\"display: none;\">
  883. {% if mode == \x27create\x27 %}
  884. <div class=\"data-ready car-model\">Model: <strong></strong></div>
  885. <input type=\"hidden\" name=\"form[model]\" value=\"\"/>
  886. {# <select name=\"form[model]\" class=\"bs5-form-select form__select form__select--medium-size form__select--border-dark models-list\">
  887. <option value=\"\">- wybierz model -</option>
  888. </select> #}
  889. {% else %}
  890. <div class=\"data-ready\">Model: <strong>{{ caseData[\x27car_model\x27]|default(\x27b.d.\x27) }}</strong></div>
  891. {% endif %}
  892. </div>
  893. </div>
  894. </div>
  895. </div>
  896. </div>
  897. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\">
  898. <div class=\"notification-form__item bs5-w-100\">
  899. <div class=\"notification-form__space reporting-person-data\">
  900. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  901. <i class=\"glyphicon user notification-form__icon\"></i>
  902. <h6 class=\"notification-form__subtitle\">Dane zgłaszającego</h6>
  903. </div>
  904. <div class=\"bs5-row\">
  905. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  906. {% if mode == \x27create\x27 %}
  907. <input type=\"text\" name=\"form[reporting_person][name]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--border-required\" type=\"text\" placeholder=\"Imię\" title=\"Imię\">
  908. {% else %}
  909. <div class=\"data-ready\">Imię: <strong>{{ caseData[\x27reporting_person\x27][\x27name\x27]|default(\x27b.d.\x27) }}</strong></div>
  910. {% endif %}
  911. </div>
  912. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  913. {% if mode == \x27create\x27 %}
  914. <input type=\"text\" name=\"form[reporting_person][surname]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--border-required\" type=\"text\" placeholder=\"Nazwisko\" title=\"Nazwisko\">
  915. {% else %}
  916. <div class=\"data-ready\">Nazwisko: <strong>{{ caseData[\x27reporting_person\x27][\x27surname\x27]|default(\x27b.d.\x27) }}</strong></div>
  917. {% endif %}
  918. </div>
  919. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  920. {% if mode == \x27create\x27 %}
  921. <div class=\"bs5-input-group\">
  922. <div class=\"bs5-col-3\">
  923. <select name=\"form[reporting_person][phone_prefix]\" class=\"bs5-form-select form__select form__select--border-left form__select--medium-size form__select--border-dark\">
  924. {{ macros.areaCodesDropdown(areaCodes) }}
  925. </select>
  926. </div>
  927. <div class=\"bs5-col-9\">
  928. <input type=\"text\" name=\"form[reporting_person][phone]\" class=\"bs5-form-control form__control--border-left form__control form__control--medium-size form__control--border-dark form__control--border-required form__control--digits-only\" type=\"text\" placeholder=\"Numer telefonu\" title=\"Numer telefonu\">
  929. </div>
  930. </div>
  931. {% else %}
  932. <div class=\"data-ready\">Numer telefonu: <strong>{{ (caseData[\x27reporting_person\x27][\x27phone\x27]|default(null) ? caseData[\x27reporting_person\x27][\x27phone_prefix\x27][\x27code\x27]|default(\x27\x27) : \x27\x27) ~ caseData[\x27reporting_person\x27][\x27phone\x27]|default(\x27b.d.\x27) }}</strong></div>
  933. {% endif %}
  934. </div>
  935. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  936. {% if mode == \x27create\x27 %}
  937. <input type=\"text\" name=\"form[reporting_person][email]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark form__control--border-required\" type=\"email\" placeholder=\"Adres e-mail\" title=\"Adres e-mail\">
  938. {% else %}
  939. <div class=\"data-ready\">Email: <strong>{{ caseData[\x27reporting_person\x27][\x27email\x27] }}</strong></div>
  940. {% endif %}
  941. </div>
  942. </div>
  943. </div>
  944. </div>
  945. </div>
  946. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\">
  947. <div class=\"notification-form__item bs5-w-100\">
  948. <div class=\"notification-form__space\">
  949. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  950. <i class=\"glyphicon cars notification-form__icon\"></i>
  951. <h6 class=\"notification-form__subtitle\">Zdarzenie</h6>
  952. </div>
  953. <div class=\"bs5-row\">
  954. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  955. {% if mode == \x27create\x27 or fields[\x27damage_place\x27] is defined %}
  956. <input type=\"text\" name=\"form[damage_place]\" value=\"{{ caseData[\x27damage_place\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark{% if mode == \x27create\x27 %} form__control--border-required{% endif %}\" placeholder=\"Miejsce zdarzenia (miejscowość, ulica, odcinek drogi)\" title=\"Miejsce zdarzenia\">
  957. {% else %}
  958. <div class=\"data-ready\">Miejsce zdarzenia: <strong>{{ caseData[\x27damage_place\x27] }}</strong></div>
  959. {% endif %}
  960. </div>
  961. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  962. {% if mode == \x27create\x27 or fields[\x27damage_date\x27] is defined %}
  963. <input type=\"text\" name=\"form[damage_date]\" value=\"{{ caseData[\x27damage_date\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark{% if mode == \x27create\x27 %} form__control--border-required{% endif %} bs5-pe-5 js-date damage-date\" placeholder=\"Data zdarzenia - wybierz\" title=\"Data zdarzenia\" readonly=\"readonly\" data-current-date=\"{{ \x27now\x27|date(\x27Y-m-d\x27) }}\">
  964. <span class=\"input-group-addon bs5-w-auto datepicker__icon\"><i class=\"glyphicon calendar\"></i></span>
  965. {% else %}
  966. <div class=\"data-ready\">Data zdarzenia: <span class=\"text-bold damage-date\" data-current-date=\"{{ \x27now\x27|date(\x27Y-m-d\x27) }}\">{{ caseData[\x27damage_date\x27]|default(\x27b.d.\x27) }}</span></div>
  967. {% endif %}
  968. </div>
  969. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  970. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27damage_notice_date\x27] is defined %}
  971. <input type=\"text\" name=\"form[extended_info][damage_notice_date]\" value=\"{{ caseData[\x27extended_info\x27][\x27damage_notice_date\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark{% if mode == \x27create\x27 %} form__control--border-required{% endif %} bs5-pe-5 js-date damage-notice-date\" placeholder=\"Data zauważenia szkody - wybierz\" title=\"Data zauważenia szkody\" readonly=\"readonly\">
  972. <span class=\"input-group-addon bs5-w-auto datepicker__icon\"><i class=\"glyphicon calendar\"></i></span>
  973. {% else %}
  974. <div class=\"data-ready\">Data zauważenia szkody: <span class=\"text-bold damage-notice-date\">{{ caseData[\x27extended_info\x27][\x27damage_notice_date\x27]|default(\x27b.d.\x27) }}</span></div>
  975. {% endif %}
  976. </div>
  977. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  978. {% if mode == \x27create\x27 or fields[\x27damage_cause\x27] is defined %}
  979. <select name=\"form[damage_cause]\" class=\"bs5-form-select form__select form__select--medium-size form__select--border-dark{% if mode == \x27create\x27 %} form__control--border-required{% endif %}\" title=\"Przyczyna powstania szkody\">
  980. <option value=\"\">- przyczyna powstania szkody -</option>
  981. {% if damageCauses is iterable and damageCauses|length > 0 %}
  982. {% for damageCause in damageCauses %}
  983. {% set viewVariant = null %}
  984. {% for variantKey, damageCauseIds in viewVariants %}
  985. {% if damageCause.id in damageCauseIds %}
  986. {% set viewVariant = variantKey %}
  987. {% endif %}
  988. {% endfor %}
  989. {% if damageCause.id is defined %}
  990. <option value=\"{{ damageCause.id }}\"{% if caseData[\x27damage_cause\x27][\x27id\x27]|default(null) == damageCause.id %} selected=\"selected\"{% endif %}{% if viewVariant is not same as(null) %} data-view-variant=\"{{ viewVariant }}\"{% endif %}>{{ damageCause.name }}</option>
  991. {% endif %}
  992. {% endfor %}
  993. {% endif %}
  994. </select>
  995. {% else %}
  996. <div class=\"data-ready\">Przyczyna powstania szkody: <strong>{{ caseData[\x27damage_cause\x27][\x27name\x27]|default(\x27b.d.\x27) }}</strong></div>
  997. {% endif %}
  998. </div>
  999. <div class=\"bs5-col-12 bs5-form-group form__group\">
  1000. {% if mode == \x27create\x27 or fields[\x27damage_description\x27] is defined %}
  1001. <textarea name=\"form[damage_description]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark{% if mode == \x27create\x27 %} form__control--border-required{% endif %}\" rows=\"5\" maxlength=\"1300\" placeholder=\"Opis uszkodzeń pojazdu (max 1300 znaków)\" title=\"Opis uszkodzeń pojazdu (max 1300 znaków)\">{{ caseData[\x27damage_description\x27]|default(\x27\x27) }}</textarea>
  1002. {% else %}
  1003. <div class=\"data-ready\">Opis uszkodzeń pojazdu: <strong>{{ caseData[\x27damage_description\x27]|nl2br }}</strong></div>
  1004. {% endif %}
  1005. </div>
  1006. <div class=\"bs5-col-12 bs5-form-group form__group\">
  1007. {% if mode == \x27create\x27 or fields[\x27incident_description\x27] is defined %}
  1008. <textarea name=\"form[incident_description]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark{% if mode == \x27create\x27 %} form__control--border-required{% endif %}\" rows=\"5\" maxlength=\"1300\" placeholder=\"Opis okoliczności zdarzenia (max 1300 znaków)\" title=\"Opis okoliczności zdarzenia (max 1300 znaków)\">{{ caseData[\x27incident_description\x27]|default(\x27\x27) }}</textarea>
  1009. {% else %}
  1010. <div class=\"data-ready\">Opis okoliczności zdarzenia: <strong>{{ caseData[\x27incident_description\x27]|nl2br }}</strong></div>
  1011. {% endif %}
  1012. </div>
  1013. <div class=\"bs5-col-12 bs5-form-group form__group bs5-mb-0\">
  1014. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27city_of_car_use\x27] is defined %}
  1015. <input type=\"text\" name=\"form[extended_info][city_of_car_use]\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Aktualne miasto użytkowania pojazdu\">
  1016. {% else %}
  1017. <div class=\"data-ready\">Aktualne miasto użytkowania pojazdu: <strong>{{ caseData[\x27extended_info\x27][\x27city_of_car_use\x27]|default(\x27b.d.\x27) }}</strong></div>
  1018. {% endif %}
  1019. </div>
  1020. </div>
  1021. </div>
  1022. </div>
  1023. </div>
  1024. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"1,2,3\" style=\"display: none;\">
  1025. <div class=\"notification-form__item bs5-w-100\">
  1026. <div class=\"notification-form__space car-user-data\">
  1027. <div class=\"bs5-d-flex bs5-align-items bs5-mb-3\">
  1028. <i class=\"glyphicon user notification-form__icon\"></i>
  1029. <h6 class=\"notification-form__subtitle\">Dane kierującego</h6>
  1030. </div>
  1031. {% if mode == \x27create\x27 or fields[\x27driver\x27] is defined %}
  1032. <div class=\"bs5-col-12 bs5-col-md-6 form__group--space-small\">
  1033. <div class=\"bs5-form-check form__check bs5-ps-0\">
  1034. <input class=\"bs5-form-check-input form__chceck-input\" type=\"checkbox\" name=\"form[car_user_data_as_reporting_person]\" value=\"1\" id=\"car_user_data_as_reporting_person\">
  1035. <label class=\"bs5-form-check-label form__chceck-label\" for=\"car_user_data_as_reporting_person\">
  1036. takie same jak zgłaszającego
  1037. </label>
  1038. </div>
  1039. </div>
  1040. {% endif %}
  1041. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1042. {% if mode == \x27create\x27 or fields[\x27driver\x27] is defined %}
  1043. <input type=\"text\" name=\"form[car_user_name]\" value=\"{{ caseData[\x27car_user_name\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Imię\"/>
  1044. {% else %}
  1045. <div class=\"data-ready\">Imię: <strong>{{ caseData[\x27car_user_name\x27]|default(\x27b.d.\x27) }}</strong></div>
  1046. {% endif %}
  1047. </div>
  1048. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1049. {% if mode == \x27create\x27 or fields[\x27driver\x27] is defined %}
  1050. <input type=\"text\" name=\"form[car_user_surname]\" value=\"{{ caseData[\x27car_user_surname\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Nazwisko\"/>
  1051. {% else %}
  1052. <div class=\"data-ready\">Nazwisko: <strong>{{ caseData[\x27car_user_surname\x27]|default(\x27b.d.\x27) }}</strong></div>
  1053. {% endif %}
  1054. </div>
  1055. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1056. {% if mode == \x27create\x27 or fields[\x27driver\x27] is defined %}
  1057. <div class=\"bs5-input-group\">
  1058. <div class=\"bs5-col-3\">
  1059. <select name=\"form[car_user_phone_prefix]\" class=\"bs5-form-control bs5-form-select form__select form__select--border-left form__select--medium-size form__select--border-dark\">
  1060. {{ macros.areaCodesDropdown(areaCodes, caseData[\x27car_user_phone_prefix\x27][\x27code\x27]|default(\x27\x27)) }}
  1061. </select>
  1062. </div>
  1063. <div class=\"bs5-col-9\">
  1064. <input type=\"text\" name=\"form[car_user_phone]\" value=\"{{ caseData[\x27car_user_phone\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control--border-left form__control form__control--medium-size form__control--border-dark form__control--digits-only\" type=\"text\" placeholder=\"Numer telefonu\"/>
  1065. </div>
  1066. </div>
  1067. {% else %}
  1068. <div class=\"data-ready\">Numer telefonu: <strong>{{ (caseData[\x27car_user_phone\x27]|default(null) ? caseData[\x27car_user_phone_prefix\x27][\x27code\x27]|default(\x27\x27) : \x27\x27) ~ caseData[\x27car_user_phone\x27]|default(\x27b.d.\x27) }}</strong></div>
  1069. {% endif %}
  1070. </div>
  1071. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1072. {% if mode == \x27create\x27 or fields[\x27driver\x27] is defined %}
  1073. <input type=\"text\" name=\"form[car_user_email]\" value=\"{{ caseData[\x27car_user_email\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Adres e-mail\"/>
  1074. {% else %}
  1075. <div class=\"data-ready\">Email: <strong>{{ caseData[\x27car_user_email\x27]|default(\x27b.d.\x27) }}</strong></div>
  1076. {% endif %}
  1077. </div>
  1078. </div>
  1079. </div>
  1080. </div>
  1081. <div class=\"bs5-col-lg-12 notification-form__border--bottom notification-form__expanded\" data-view-variants-disabled=\"1,2,3\" style=\"display: none;\">
  1082. <div class=\"notification-form__item bs5-w-100\">
  1083. <div class=\"notification-form__space\">
  1084. <div class=\"bs5-d-flex bs5-align-items bs5-mb-4\">
  1085. <i class=\"glyphicon cars notification-form__icon\"></i>
  1086. <h6 class=\"notification-form__subtitle\">Dane zdarzenia - szczegóły</h6>
  1087. </div>
  1088. <div class=\"bs5-row bs5-mb-1 bs5-pb-2\">
  1089. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1090. <fieldset class=\"bs5-row form__fieldset\">
  1091. <div class=\"bs5-col-12 bs5-col-lg-8\">
  1092. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy na miejscu interweniowała policja? <strong class=\"form__control--required\">*</strong></legend>
  1093. </div>
  1094. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end form__group\">
  1095. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27police_intervention\x27] is defined %}
  1096. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1097. <input class=\"form-check-input bs5-form-check-input\" type=\"radio\" name=\"form[extended_info][police_intervention]\" id=\"police_intervention_1\" value=\"1\"{% if caseData[\x27extended_info\x27][\x27police_intervention\x27] is defined and caseData[\x27extended_info\x27][\x27police_intervention\x27] is same as(true) %} checked=\"checked\"{% endif %}/>
  1098. <label class=\"bs5-form-check-label\" for=\"police_intervention_1\">TAK</label>
  1099. </div>
  1100. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1101. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][police_intervention]\" id=\"police_intervention_0\" value=\"0\"{% if caseData[\x27extended_info\x27][\x27police_intervention\x27] is defined and caseData[\x27extended_info\x27][\x27police_intervention\x27] is same as(false) %} checked=\"checked\"{% endif %}/>
  1102. <label class=\"bs5-form-check-label\" for=\"police_intervention_0\">NIE</label>
  1103. </div>
  1104. {% else %}
  1105. <div class=\"data-ready\" data-police-intervention=\"{{ caseData[\x27extended_info\x27][\x27police_intervention\x27] is defined ? (caseData[\x27extended_info\x27][\x27police_intervention\x27] ? 1 : 0) : \x27\x27 }}\"><strong>{{ caseData[\x27extended_info\x27][\x27police_intervention\x27] is defined and caseData[\x27extended_info\x27][\x27police_intervention\x27] is not same as(null) ? (caseData[\x27extended_info\x27][\x27police_intervention\x27] ? \x27TAK\x27 : \x27NIE\x27) : \x27b.d.\x27 }}</strong></div>
  1106. {% endif %}
  1107. </div>
  1108. </fieldset>
  1109. </div>
  1110. </div>
  1111. <div class=\"bs5-row bs5-mb-1 bs5-pb-2 police-details\">
  1112. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1113. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27police_unit_name\x27] is defined %}
  1114. <input type=\"text\" name=\"form[extended_info][police_unit_name]\" value=\"{{ caseData[\x27extended_info\x27][\x27police_unit_name\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Nazwa jednostki policji\" title=\"Nazwa jednostki policji\">
  1115. {% else %}
  1116. <div class=\"data-ready\">Numer jednostki policyjnej: <strong>{{ caseData[\x27extended_info\x27][\x27police_unit_name\x27]|default(\x27b.d.\x27) }}</strong></div>
  1117. {% endif %}
  1118. </div>
  1119. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1120. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27police_note_number\x27] is defined %}
  1121. <input type=\"text\" name=\"form[extended_info][police_note_number]\" value=\"{{ caseData[\x27extended_info\x27][\x27police_note_number\x27]|default(\x27\x27) }}\" class=\"bs5-form-control form__control form__control--medium-size form__control--border-dark\" placeholder=\"Numer notatki policyjnej* - jeśli występuje\" title=\"Numer notatki policyjnej* - jeśli występuje\">
  1122. {% else %}
  1123. <div class=\"data-ready\">Numer notatki policyjnej: <strong>{{ caseData[\x27extended_info\x27][\x27police_note_number\x27]|default(\x27b.d.\x27) }}</strong></div>
  1124. {% endif %}
  1125. </div>
  1126. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1127. <fieldset class=\"bs5-row form__fieldset\">
  1128. <div class=\"bs5-col-12 bs5-col-lg-8\">
  1129. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy sprawca został ukarany?</legend>
  1130. </div>
  1131. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end\">
  1132. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27perpetrator_punished\x27] is defined %}
  1133. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1134. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_punished]\" id=\"perpetrator_punished_1\" value=\"1\"{% if caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] is same as(true) %} checked=\"checked\"{% endif %}/>
  1135. <label class=\"bs5-form-check-label\" for=\"perpetrator_punished_1\">TAK</label>
  1136. </div>
  1137. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1138. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_punished]\" id=\"perpetrator_punished_0\" value=\"0\"{% if caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] is same as(false) %} checked=\"checked\"{% endif %}/>
  1139. <label class=\"bs5-form-check-label\" for=\"perpetrator_punished_0\">NIE</label>
  1140. </div>
  1141. {% else %}
  1142. <div class=\"data-ready\"><strong>{{ caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] is not same as(null) ? (caseData[\x27extended_info\x27][\x27perpetrator_punished\x27] ? \x27TAK\x27 : \x27NIE\x27) : \x27b.d.\x27 }}</strong></div>
  1143. {% endif %}
  1144. </div>
  1145. </fieldset>
  1146. </div>
  1147. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1148. <fieldset class=\"bs5-row form__fieldset\">
  1149. <div class=\"bs5-col-12 bs5-col-lg-8\">
  1150. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy sprawca przyjął mandat?</legend>
  1151. </div>
  1152. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end\">
  1153. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is defined %}
  1154. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1155. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_accept_mandate]\" id=\"perpetrator_accept_mandate_1\" value=\"1\"{% if caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is same as(true) %} checked=\"checked\"{% endif %}/>
  1156. <label class=\"bs5-form-check-label\" for=\"perpetrator_accept_mandate_1\">TAK</label>
  1157. </div>
  1158. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1159. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_accept_mandate]\" id=\"perpetrator_accept_mandate_0\" value=\"0\"{% if caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is same as(false) %} checked=\"checked\"{% endif %}/>
  1160. <label class=\"bs5-form-check-label\" for=\"perpetrator_accept_mandate_0\">NIE</label>
  1161. </div>
  1162. {% else %}
  1163. <div class=\"data-ready\"><strong>{{ caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] is not same as(null) ? (caseData[\x27extended_info\x27][\x27perpetrator_accept_mandate\x27] ? \x27TAK\x27 : \x27NIE\x27) : \x27b.d.\x27 }}</strong></div>
  1164. {% endif %}
  1165. </div>
  1166. </fieldset>
  1167. </div>
  1168. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1169. <fieldset class=\"bs5-row form__fieldset\">
  1170. <div class=\"bs5-col-12 bs5-col-lg-8\">
  1171. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy została wykazana współwina?</legend>
  1172. </div>
  1173. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end\">
  1174. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27complicity\x27] is defined %}
  1175. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1176. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][complicity]\" id=\"complicity_1\" value=\"1\"{% if caseData[\x27extended_info\x27][\x27complicity\x27] is defined and caseData[\x27extended_info\x27][\x27complicity\x27] is same as(true) %} checked=\"checked\"{% endif %}/>
  1177. <label class=\"bs5-form-check-label\" for=\"complicity_1\">TAK</label>
  1178. </div>
  1179. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1180. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][complicity]\" id=\"complicity_0\" value=\"0\"{% if caseData[\x27extended_info\x27][\x27complicity\x27] is defined and caseData[\x27extended_info\x27][\x27complicity\x27] is same as(false) %} checked=\"checked\"{% endif %}/>
  1181. <label class=\"bs5-form-check-label\" for=\"complicity_0\">NIE</label>
  1182. </div>
  1183. {% else %}
  1184. <div class=\"data-ready\"><strong>{{ caseData[\x27extended_info\x27][\x27complicity\x27] is defined and caseData[\x27extended_info\x27][\x27complicity\x27] is not same as(null) ? (caseData[\x27extended_info\x27][\x27complicity\x27] ? \x27TAK\x27 : \x27NIE\x27) : \x27b.d.\x27 }}</strong></div>
  1185. {% endif %}
  1186. </div>
  1187. </fieldset>
  1188. </div>
  1189. </div>
  1190. <div class=\"bs5-row no-police\">
  1191. <div class=\"bs5-col-12 bs5-form-group form__group--space-small\">
  1192. <fieldset class=\"bs5-row form__fieldset\">
  1193. <div class=\"bs5-col-12 bs5-col-lg-8\">
  1194. <legend class=\"bs5-col-form-label pt-0 form__legend\">Czy spisano oświadczenie sprawcy? <strong class=\"form__control--required\">*</strong></legend>
  1195. </div>
  1196. <div class=\"bs5-col-12 bs5-col-lg-4 bs5-d-flex bs5-align-items-center bs5-flex-wrap bs5-justify-content-lg-end form__group\">
  1197. {% if mode == \x27create\x27 or fields[\x27extended_info\x27][\x27perpetrator_statement\x27] is defined %}
  1198. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1199. <input class=\"form-check-input bs5-form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_statement]\" id=\"perpetrator_statement_1\" value=\"1\"{% if caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] is same as(true) %} checked=\"checked\"{% endif %}/>
  1200. <label class=\"bs5-form-check-label\" for=\"perpetrator_statement_1\">TAK</label>
  1201. </div>
  1202. <div class=\"bs5-form-check form__check form__check--themes-white bs5-mb-0\">
  1203. <input class=\"form-check-input\" type=\"radio\" name=\"form[extended_info][perpetrator_statement]\" id=\"perpetrator_statement_0\" value=\"0\"{% if caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] is same as(false) %} checked=\"checked\"{% endif %}/>
  1204. <label class=\"bs5-form-check-label\" for=\"perpetrator_statement_0\">NIE</label>
  1205. </div>
  1206. {% else %}
  1207. <div class=\"data-ready\"><strong>{{ caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] is defined and caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] is not same as(null) ? (caseData[\x27extended_info\x27][\x27perpetrator_statement\x27] ? \x27TAK\x27 : \x27NIE\x27) : \x27b.d.\x27 }}</strong></div>
  1208. {% endif %}
  1209. </div>
  1210. </fieldset>
  1211. </div>
  1212. </div>
  1213. </div>
  1214. </div>
  1215. </div>", "step1.html.twig", "/www/inglease.serviceflow.pl/templates/step1.html.twig");
  1216. }
  1217. }