var/cache/dev/twig/de/dec6d0987271e3a6eb513ceb07d062a2.php line 43

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\CoreExtension;
  6. use Twig\Extension\SandboxExtension;
  7. use Twig\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. /* Auth/Resetting/reset.html.twig */
  16. class __TwigTemplate_90213ce4f68d12b633ceba502a515571 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. 'content' => [$this, 'block_content'],
  29. ];
  30. }
  31. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  32. {
  33. // line 1
  34. return "base.html.twig";
  35. }
  36. protected function doDisplay(array $context, array $blocks = []): iterable
  37. {
  38. $macros = $this->macros;
  39. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Auth/Resetting/reset.html.twig"));
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  42. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Auth/Resetting/reset.html.twig"));
  43. $this->parent = $this->loadTemplate("base.html.twig", "Auth/Resetting/reset.html.twig", 1);
  44. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  45. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  46. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  47. }
  48. // line 4
  49. /**
  50. * @return iterable<null|scalar|\Stringable>
  51. */
  52. public function block_content(array $context, array $blocks = []): iterable
  53. {
  54. $macros = $this->macros;
  55. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  57. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  59. // line 5
  60. yield " <div class=\"row mt-5\">
  61. <div class=\"col-sm-6 offset-3\">
  62. ";
  63. // line 7
  64. if ((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.', 7, $this->source); })()), "vars", [], "any", false, false, false, 7), "submitted", [], "any", false, false, false, 7) && (CoreExtension::getAttribute($this->env, $this->source, 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.', 7, $this->source); })()), "vars", [], "any", false, false, false, 7), "errors", [], "any", false, false, false, 7), "count", [], "any", false, false, false, 7) < 1))) {
  65. // line 8
  66. yield " <div class=\"alert alert-success\" role=\"alert\">
  67. ";
  68. // line 9
  69. yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("resetting.check_email", ["%tokenLifetime%" => (isset($context["tokenLifetime"]) || array_key_exists("tokenLifetime", $context) ? $context["tokenLifetime"] : (function () { throw new RuntimeError('Variable "tokenLifetime" does not exist.', 9, $this->source); })()), "%email%" => CoreExtension::getAttribute($this->env, $this->source, 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.', 9, $this->source); })()), "vars", [], "any", false, false, false, 9), "data", [], "any", false, false, false, 9), "email", [], "any", false, false, false, 9)], "Auth");
  70. yield "
  71. </div>
  72. ";
  73. } else {
  74. // line 12
  75. yield " ";
  76. 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.', 12, $this->source); })()), 'form_start');
  77. yield "
  78. ";
  79. // line 13
  80. 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.', 13, $this->source); })()), 'widget');
  81. yield "
  82. <div>
  83. <button type=\"submit\" class=\"btn btn-primary mt-3\">";
  84. // line 15
  85. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("resetting.reset.submit", [], "Auth"), "html", null, true);
  86. yield "</button>
  87. </div>
  88. ";
  89. // line 17
  90. 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.', 17, $this->source); })()), 'form_end');
  91. yield "
  92. ";
  93. }
  94. // line 19
  95. yield " </div>
  96. </div>
  97. ";
  98. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  99. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  100. yield from [];
  101. }
  102. /**
  103. * @codeCoverageIgnore
  104. */
  105. public function getTemplateName(): string
  106. {
  107. return "Auth/Resetting/reset.html.twig";
  108. }
  109. /**
  110. * @codeCoverageIgnore
  111. */
  112. public function isTraitable(): bool
  113. {
  114. return false;
  115. }
  116. /**
  117. * @codeCoverageIgnore
  118. */
  119. public function getDebugInfo(): array
  120. {
  121. return array ( 111 => 19, 106 => 17, 101 => 15, 96 => 13, 91 => 12, 85 => 9, 82 => 8, 80 => 7, 76 => 5, 63 => 4, 40 => 1,);
  122. }
  123. public function getSourceContext(): Source
  124. {
  125. return new Source("{% extends \"base.html.twig\" %}
  126. {% trans_default_domain 'Auth' %}
  127. {% block content %}
  128. <div class=\"row mt-5\">
  129. <div class=\"col-sm-6 offset-3\">
  130. {% if form.vars.submitted and form.vars.errors.count < 1 %}
  131. <div class=\"alert alert-success\" role=\"alert\">
  132. {{ 'resetting.check_email'|trans({'%tokenLifetime%': tokenLifetime, '%email%': form.vars.data.email})|raw }}
  133. </div>
  134. {% else %}
  135. {{ form_start(form) }}
  136. {{ form_widget(form) }}
  137. <div>
  138. <button type=\"submit\" class=\"btn btn-primary mt-3\">{{ 'resetting.reset.submit'|trans }}</button>
  139. </div>
  140. {{ form_end(form) }}
  141. {% endif %}
  142. </div>
  143. </div>
  144. {% endblock %}
  145. ", "Auth/Resetting/reset.html.twig", "/var/www/rs.optima.staging/templates/Auth/Resetting/reset.html.twig");
  146. }
  147. }