var/cache/dev/twig/74/74ddb05b11060b5c2af9ad5052a677e3.php line 48

Open in your IDE?
  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* Auth/Resetting/reset.html.twig */
  14. class __TwigTemplate_2deb8bf986d58d58c9499da388287428 extends Template
  15. {
  16. private $source;
  17. private $macros = [];
  18. public function __construct(Environment $env)
  19. {
  20. parent::__construct($env);
  21. $this->source = $this->getSourceContext();
  22. $this->blocks = [
  23. 'content' => [$this, 'block_content'],
  24. ];
  25. }
  26. protected function doGetParent(array $context)
  27. {
  28. // line 1
  29. return "base.html.twig";
  30. }
  31. protected function doDisplay(array $context, array $blocks = [])
  32. {
  33. $macros = $this->macros;
  34. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  35. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Auth/Resetting/reset.html.twig"));
  36. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  37. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Auth/Resetting/reset.html.twig"));
  38. $this->parent = $this->loadTemplate("base.html.twig", "Auth/Resetting/reset.html.twig", 1);
  39. $this->parent->display($context, array_merge($this->blocks, $blocks));
  40. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  41. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  42. }
  43. // line 4
  44. public function block_content($context, array $blocks = [])
  45. {
  46. $macros = $this->macros;
  47. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  48. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  49. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  50. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  51. // line 5
  52. echo " <div class=\"row mt-5\">
  53. <div class=\"col-sm-6 offset-3\">
  54. ";
  55. // line 7
  56. if ((twig_get_attribute($this->env, $this->source, twig_get_attribute($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) && (twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($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))) {
  57. // line 8
  58. echo " <div class=\"alert alert-success\" role=\"alert\">
  59. ";
  60. // line 9
  61. echo $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%" => twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, twig_get_attribute($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");
  62. echo "
  63. </div>
  64. ";
  65. } else {
  66. // line 12
  67. echo " ";
  68. echo $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');
  69. echo "
  70. ";
  71. // line 13
  72. echo $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');
  73. echo "
  74. <div>
  75. <button type=\"submit\" class=\"btn btn-primary mt-3\">";
  76. // line 15
  77. echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("resetting.reset.submit", [], "Auth"), "html", null, true);
  78. echo "</button>
  79. </div>
  80. ";
  81. // line 17
  82. echo $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');
  83. echo "
  84. ";
  85. }
  86. // line 19
  87. echo " </div>
  88. </div>
  89. ";
  90. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  91. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  92. }
  93. public function getTemplateName()
  94. {
  95. return "Auth/Resetting/reset.html.twig";
  96. }
  97. public function isTraitable()
  98. {
  99. return false;
  100. }
  101. public function getDebugInfo()
  102. {
  103. return array ( 103 => 19, 98 => 17, 93 => 15, 88 => 13, 83 => 12, 77 => 9, 74 => 8, 72 => 7, 68 => 5, 58 => 4, 35 => 1,);
  104. }
  105. public function getSourceContext()
  106. {
  107. return new Source("{% extends \"base.html.twig\" %}
  108. {% trans_default_domain 'Auth' %}
  109. {% block content %}
  110. <div class=\"row mt-5\">
  111. <div class=\"col-sm-6 offset-3\">
  112. {% if form.vars.submitted and form.vars.errors.count < 1 %}
  113. <div class=\"alert alert-success\" role=\"alert\">
  114. {{ 'resetting.check_email'|trans({'%tokenLifetime%': tokenLifetime, '%email%': form.vars.data.email})|raw }}
  115. </div>
  116. {% else %}
  117. {{ form_start(form) }}
  118. {{ form_widget(form) }}
  119. <div>
  120. <button type=\"submit\" class=\"btn btn-primary mt-3\">{{ 'resetting.reset.submit'|trans }}</button>
  121. </div>
  122. {{ form_end(form) }}
  123. {% endif %}
  124. </div>
  125. </div>
  126. {% endblock %}
  127. ", "Auth/Resetting/reset.html.twig", "/var/www/rs.optima.staging/templates/Auth/Resetting/reset.html.twig");
  128. }
  129. }