var/cache/dev/twig/ee/ee159d3b729787f466eac440fe64c8a7.php line 44

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. /* reset_password/request.html.twig */
  16. class __TwigTemplate_42f302fc74d96577664e8e637d5cc307 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. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "layout/base.html.twig";
  36. }
  37. protected function doDisplay(array $context, array $blocks = []): iterable
  38. {
  39. $macros = $this->macros;
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  41. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "reset_password/request.html.twig"));
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  43. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "reset_password/request.html.twig"));
  44. $this->parent = $this->load("layout/base.html.twig", 1);
  45. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  46. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  47. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  48. }
  49. // line 3
  50. /**
  51. * @return iterable<null|scalar|\Stringable>
  52. */
  53. public function block_title(array $context, array $blocks = []): iterable
  54. {
  55. $macros = $this->macros;
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  57. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "title"));
  60. yield "Reset your password";
  61. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  62. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  63. yield from [];
  64. }
  65. // line 5
  66. /**
  67. * @return iterable<null|scalar|\Stringable>
  68. */
  69. public function block_body(array $context, array $blocks = []): iterable
  70. {
  71. $macros = $this->macros;
  72. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  73. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  74. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  75. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  76. // line 6
  77. yield " <div class=\"row\">
  78. <div class=\"col-md-12\">
  79. <h1 class=\"section-title\">Reset your password</h1>
  80. <div class=\"row justify-content-center mt-3\">
  81. <div class=\"col-md-6\">
  82. ";
  83. // line 12
  84. $context['_parent'] = $context;
  85. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, (isset($context["app"]) || array_key_exists("app", $context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.', 12, $this->source); })()), "flashes", ["reset_password_error"], "method", false, false, false, 12));
  86. foreach ($context['_seq'] as $context["_key"] => $context["flash_error"]) {
  87. // line 13
  88. yield " <div class=\"alert alert-danger\" role=\"alert\">";
  89. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flash_error"], "html", null, true);
  90. yield "</div>
  91. ";
  92. }
  93. $_parent = $context['_parent'];
  94. unset($context['_seq'], $context['_key'], $context['flash_error'], $context['_parent']);
  95. $context = array_intersect_key($context, $_parent) + $_parent;
  96. // line 15
  97. yield "
  98. ";
  99. // line 16
  100. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 16, $this->source); })()), 'form_start');
  101. yield "
  102. ";
  103. // line 17
  104. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(CoreExtension::getAttribute($this->env, $this->source, (isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 17, $this->source); })()), "email", [], "any", false, false, false, 17), 'row');
  105. yield "
  106. <button class=\"btn btn-primary\">Send password reset email</button>
  107. ";
  108. // line 20
  109. yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["requestForm"]) || array_key_exists("requestForm", $context) ? $context["requestForm"] : (function () { throw new RuntimeError('Variable "requestForm" does not exist.', 20, $this->source); })()), 'form_end');
  110. yield "
  111. </div>
  112. </div>
  113. </div>
  114. </div>
  115. ";
  116. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  117. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  118. yield from [];
  119. }
  120. /**
  121. * @codeCoverageIgnore
  122. */
  123. public function getTemplateName(): string
  124. {
  125. return "reset_password/request.html.twig";
  126. }
  127. /**
  128. * @codeCoverageIgnore
  129. */
  130. public function isTraitable(): bool
  131. {
  132. return false;
  133. }
  134. /**
  135. * @codeCoverageIgnore
  136. */
  137. public function getDebugInfo(): array
  138. {
  139. return array ( 134 => 20, 128 => 17, 124 => 16, 121 => 15, 112 => 13, 108 => 12, 100 => 6, 87 => 5, 64 => 3, 41 => 1,);
  140. }
  141. public function getSourceContext(): Source
  142. {
  143. return new Source("{% extends 'layout/base.html.twig' %}
  144. {% block title %}Reset your password{% endblock %}
  145. {% block body %}
  146. <div class=\"row\">
  147. <div class=\"col-md-12\">
  148. <h1 class=\"section-title\">Reset your password</h1>
  149. <div class=\"row justify-content-center mt-3\">
  150. <div class=\"col-md-6\">
  151. {% for flash_error in app.flashes('reset_password_error') %}
  152. <div class=\"alert alert-danger\" role=\"alert\">{{ flash_error }}</div>
  153. {% endfor %}
  154. {{ form_start(requestForm) }}
  155. {{ form_row(requestForm.email) }}
  156. <button class=\"btn btn-primary\">Send password reset email</button>
  157. {{ form_end(requestForm) }}
  158. </div>
  159. </div>
  160. </div>
  161. </div>
  162. {% endblock %}
  163. ", "reset_password/request.html.twig", "/home/jewelryrewards/staging/templates/reset_password/request.html.twig");
  164. }
  165. }