var/cache/dev/twig/79/795e96b40f19f5ca69be2ed330a1c1c1.php line 45

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\Markup;
  8. use Twig\Sandbox\SecurityError;
  9. use Twig\Sandbox\SecurityNotAllowedTagError;
  10. use Twig\Sandbox\SecurityNotAllowedFilterError;
  11. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  12. use Twig\Source;
  13. use Twig\Template;
  14. use Twig\TemplateWrapper;
  15. /* registration/register.html.twig */
  16. class __TwigTemplate_47d309a095646964bcf043649e2b5502 extends Template
  17. {
  18. private Source $source;
  19. /**
  20. * @var array<string, Template>
  21. */
  22. private array $macros = [];
  23. public function __construct(Environment $env)
  24. {
  25. parent::__construct($env);
  26. $this->source = $this->getSourceContext();
  27. $this->blocks = [
  28. 'title' => [$this, 'block_title'],
  29. 'body' => [$this, 'block_body'],
  30. 'stylesheets' => [$this, 'block_stylesheets'],
  31. ];
  32. }
  33. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34. {
  35. // line 1
  36. return "layout/base.html.twig";
  37. }
  38. protected function doDisplay(array $context, array $blocks = []): iterable
  39. {
  40. $macros = $this->macros;
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "registration/register.html.twig"));
  45. $this->parent = $this->load("layout/base.html.twig", 1);
  46. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  48. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  49. }
  50. // line 2
  51. /**
  52. * @return iterable<null|scalar|\Stringable>
  53. */
  54. public function block_title(array $context, array $blocks = []): iterable
  55. {
  56. $macros = $this->macros;
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  58. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  60. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  61. yield "Registration";
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  63. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  64. yield from [];
  65. }
  66. // line 4
  67. /**
  68. * @return iterable<null|scalar|\Stringable>
  69. */
  70. public function block_body(array $context, array $blocks = []): iterable
  71. {
  72. $macros = $this->macros;
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  74. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  76. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  77. // line 5
  78. yield " ";
  79. $context["formLabel"] = CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["flow"]) || array_key_exists("flow", $context) ? $context["flow"] : (function () { throw new RuntimeError('Variable "flow" does not exist.', 5, $this->source); })()), "steps", [], "any", false, false, false, 5), (CoreExtension::getAttribute($this->env, $this->source, (isset($context["flow"]) || array_key_exists("flow", $context) ? $context["flow"] : (function () { throw new RuntimeError('Variable "flow" does not exist.', 5, $this->source); })()), "currentStep", [], "any", false, false, false, 5) - 1), [], "array", false, false, false, 5), "label", [], "any", false, false, false, 5);
  80. // line 6
  81. yield "
  82. <div class=\"row multistep-form\">
  83. <div class=\"col-md-12\">
  84. <h1 class=\"section-title\">Registration</h1>
  85. ";
  86. // line 10
  87. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 10, $this->source); })()), 'form_start');
  88. yield "
  89. <div class=\"card panel-info\">
  90. <div class=\"card-header\">
  91. <div class=\"fs-5\"><b>";
  92. // line 14
  93. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["formLabel"]) || array_key_exists("formLabel", $context) ? $context["formLabel"] : (function () { throw new RuntimeError('Variable "formLabel" does not exist.', 14, $this->source); })()), "html", null, true);
  94. yield "</b></div>
  95. </div>
  96. <div class=\"card-body\">
  97. ";
  98. // line 17
  99. if ((($tmp = !Twig\Extension\CoreExtension::testEmpty(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, (isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 17, $this->source); })()), "vars", [], "any", false, false, false, 17), "errors", [], "any", false, false, false, 17))) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  100. // line 18
  101. yield " <div class=\"alert alert-danger\">
  102. ";
  103. // line 19
  104. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 19, $this->source); })()), 'errors');
  105. yield "
  106. </div>
  107. ";
  108. }
  109. // line 22
  110. yield " ";
  111. // line 23
  112. yield " ";
  113. yield from $this->load("registration/steps/userInfo.html.twig", 23)->unwrap()->yield($context);
  114. // line 24
  115. yield " ";
  116. // line 25
  117. yield " ";
  118. yield from $this->load("registration/steps/brandInfo.html.twig", 25)->unwrap()->yield($context);
  119. // line 26
  120. yield " ";
  121. // line 27
  122. yield " ";
  123. yield from $this->load("registration/steps/retailerInfo.html.twig", 27)->unwrap()->yield($context);
  124. // line 28
  125. yield " ";
  126. yield from $this->load("registration/steps/invitationCode.html.twig", 28)->unwrap()->yield($context);
  127. // line 29
  128. yield " ";
  129. // line 30
  130. yield " ";
  131. yield from $this->load("registration/steps/supplierInfo.html.twig", 30)->unwrap()->yield($context);
  132. // line 31
  133. yield " ";
  134. // line 32
  135. yield " ";
  136. yield from $this->load("registration/steps/optIn.html.twig", 32)->unwrap()->yield($context);
  137. // line 33
  138. yield " ";
  139. // line 34
  140. yield " ";
  141. yield from $this->load("registration/steps/w9.html.twig", 34)->unwrap()->yield($context);
  142. // line 35
  143. yield " ";
  144. yield from $this->load("registration/steps/w8.html.twig", 35)->unwrap()->yield($context);
  145. // line 36
  146. yield " ";
  147. // line 37
  148. yield " ";
  149. yield from $this->load("registration/steps/terms.html.twig", 37)->unwrap()->yield($context);
  150. // line 38
  151. yield " ";
  152. // line 39
  153. yield " ";
  154. yield from $this->load("registration/steps/confirmation.html.twig", 39)->unwrap()->yield($context);
  155. // line 40
  156. yield " </div>
  157. <div class=\"card-footer\">
  158. ";
  159. // line 42
  160. yield from $this->load("bundles/FormFlowBundle/FormFlow/buttons.html.twig", 42)->unwrap()->yield(CoreExtension::merge($context, ["craue_formflow_button_class_last" => "btn btn-primary default", "craue_formflow_button_class_back" => "btn btn-danger", "craue_formflow_button_class_reset" => "btn btn-info", "craue_formflow_button_class_finish" => "btn btn-primary", "craue_formflow_button_label_reset" => "Reset", "craue_formflow_button_label_finish" => "Register", "craue_formflow_button_label_back" => "Back", "craue_formflow_button_label_next" => "Next"]));
  161. // line 52
  162. yield " </div>
  163. </div>
  164. ";
  165. // line 54
  166. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 54, $this->source); })()), 'form_end');
  167. yield "
  168. </div>
  169. </div>
  170. ";
  171. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  172. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  173. yield from [];
  174. }
  175. // line 60
  176. /**
  177. * @return iterable<null|scalar|\Stringable>
  178. */
  179. public function block_stylesheets(array $context, array $blocks = []): iterable
  180. {
  181. $macros = $this->macros;
  182. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  183. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  184. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  185. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "stylesheets"));
  186. // line 61
  187. yield " ";
  188. yield from $this->yieldParentBlock("stylesheets", $context, $blocks);
  189. yield "
  190. <style>
  191. \t\t.pointer-events{
  192. \t\t\tpointer-events:none
  193. \t\t}
  194. </style>
  195. ";
  196. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  197. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  198. yield from [];
  199. }
  200. /**
  201. * @codeCoverageIgnore
  202. */
  203. public function getTemplateName(): string
  204. {
  205. return "registration/register.html.twig";
  206. }
  207. /**
  208. * @codeCoverageIgnore
  209. */
  210. public function isTraitable(): bool
  211. {
  212. return false;
  213. }
  214. /**
  215. * @codeCoverageIgnore
  216. */
  217. public function getDebugInfo(): array
  218. {
  219. return array ( 218 => 61, 205 => 60, 190 => 54, 186 => 52, 184 => 42, 180 => 40, 177 => 39, 175 => 38, 172 => 37, 170 => 36, 167 => 35, 164 => 34, 162 => 33, 159 => 32, 157 => 31, 154 => 30, 152 => 29, 149 => 28, 146 => 27, 144 => 26, 141 => 25, 139 => 24, 136 => 23, 134 => 22, 128 => 19, 125 => 18, 123 => 17, 117 => 14, 110 => 10, 104 => 6, 101 => 5, 88 => 4, 65 => 2, 42 => 1,);
  220. }
  221. public function getSourceContext(): Source
  222. {
  223. return new Source("{% extends 'layout/base.html.twig' %}
  224. {% block title %}Registration{% endblock %}
  225. {% block body %}
  226. {% set formLabel = flow.steps[flow.currentStep-1].label %}
  227. <div class=\"row multistep-form\">
  228. <div class=\"col-md-12\">
  229. <h1 class=\"section-title\">Registration</h1>
  230. {{ form_start(form) }}
  231. <div class=\"card panel-info\">
  232. <div class=\"card-header\">
  233. <div class=\"fs-5\"><b>{{ formLabel }}</b></div>
  234. </div>
  235. <div class=\"card-body\">
  236. {% if form.vars.errors is not empty %}
  237. <div class=\"alert alert-danger\">
  238. {{ form_errors(form) }}
  239. </div>
  240. {% endif %}
  241. {# step 1 #}
  242. {% include('registration/steps/userInfo.html.twig') %}
  243. {# step 2 #}
  244. {% include('registration/steps/brandInfo.html.twig') %}
  245. {# step 3 #}
  246. {% include('registration/steps/retailerInfo.html.twig') %}
  247. {% include('registration/steps/invitationCode.html.twig') %}
  248. {# step 4 #}
  249. {% include('registration/steps/supplierInfo.html.twig') %}
  250. {# step 5 #}
  251. {% include('registration/steps/optIn.html.twig') %}
  252. {# step 6 #}
  253. {% include('registration/steps/w9.html.twig') %}
  254. {% include('registration/steps/w8.html.twig') %}
  255. {# step 7 #}
  256. {% include('registration/steps/terms.html.twig') %}
  257. {# step 8 #}
  258. {% include('registration/steps/confirmation.html.twig') %}
  259. </div>
  260. <div class=\"card-footer\">
  261. {% include 'bundles/FormFlowBundle/FormFlow/buttons.html.twig' with {
  262. craue_formflow_button_class_last: 'btn btn-primary default',
  263. craue_formflow_button_class_back: 'btn btn-danger',
  264. craue_formflow_button_class_reset: 'btn btn-info',
  265. craue_formflow_button_class_finish: 'btn btn-primary',
  266. craue_formflow_button_label_reset: 'Reset',
  267. craue_formflow_button_label_finish: 'Register',
  268. craue_formflow_button_label_back: 'Back',
  269. craue_formflow_button_label_next: 'Next',
  270. } %}
  271. </div>
  272. </div>
  273. {{ form_end(form) }}
  274. </div>
  275. </div>
  276. {% endblock %}
  277. {% block stylesheets %}
  278. {{ parent() }}
  279. <style>
  280. \t\t.pointer-events{
  281. \t\t\tpointer-events:none
  282. \t\t}
  283. </style>
  284. {% endblock %}
  285. ", "registration/register.html.twig", "/home/jewelryrewards/staging/templates/registration/register.html.twig");
  286. }
  287. }