var/cache/dev/twig/44/44b7d23724ba4f9b1e2152d868f21a63.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. /* pages/account/resetPassword.html.twig */
  16. class __TwigTemplate_a787418715da924dbe02aa8822bd35d1 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 "layouts/common/default.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", "pages/account/resetPassword.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", "pages/account/resetPassword.html.twig"));
  43. // line 3
  44. $context["pageAttributes"] = ((array_key_exists("pageAttributes", $context)) ? ((isset($context["pageAttributes"]) || array_key_exists("pageAttributes", $context) ? $context["pageAttributes"] : (function () { throw new RuntimeError('Variable "pageAttributes" does not exist.', 3, $this->source); })())) : (["group" => "common", "section" => "sim"]));
  45. // line 4
  46. $context["page_title"] = $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.reset_password");
  47. // line 1
  48. $this->parent = $this->load("layouts/common/default.html.twig", 1);
  49. yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
  50. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  51. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  52. }
  53. // line 6
  54. /**
  55. * @return iterable<null|scalar|\Stringable>
  56. */
  57. public function block_content(array $context, array $blocks = []): iterable
  58. {
  59. $macros = $this->macros;
  60. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  61. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  62. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  63. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
  64. // line 7
  65. yield "<form class=\"is-AccountForm\" method=\"post\" name=\"phoneCode\">
  66. <div class=\"is-row\">
  67. <div class=\"is-col-xs-12 is-col-sm-12 is-col-md-push-2 is-col-md-8 is-col-lg-push-3 is-col-lg-6\">
  68. <h1 class=\"is-H1\">";
  69. // line 10
  70. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.enter_email"), "html", null, true);
  71. yield "</h1>
  72. ";
  73. // line 11
  74. $context['_parent'] = $context;
  75. $context['_seq'] = CoreExtension::ensureTraversable(CoreExtension::getAttribute($this->env, $this->source, CoreExtension::getAttribute($this->env, $this->source, 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.', 11, $this->source); })()), "session", [], "any", false, false, false, 11), "flashbag", [], "any", false, false, false, 11), "all", [], "any", false, false, false, 11));
  76. foreach ($context['_seq'] as $context["type"] => $context["flashes"]) {
  77. // line 12
  78. yield " ";
  79. $context['_parent'] = $context;
  80. $context['_seq'] = CoreExtension::ensureTraversable($context["flashes"]);
  81. foreach ($context['_seq'] as $context["_key"] => $context["flash"]) {
  82. // line 13
  83. yield " <p class=\"is-Alert is-Alert_";
  84. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(Twig\Extension\CoreExtension::capitalize($this->env->getCharset(), $context["type"]), "html", null, true);
  85. yield " is-Alert_Dismissible is-show\" role=\"alert\">
  86. ";
  87. // line 14
  88. yield $context["flash"];
  89. yield "
  90. </p>
  91. ";
  92. }
  93. $_parent = $context['_parent'];
  94. unset($context['_seq'], $context['_key'], $context['flash'], $context['_parent']);
  95. $context = array_intersect_key($context, $_parent) + $_parent;
  96. // line 17
  97. yield " ";
  98. }
  99. $_parent = $context['_parent'];
  100. unset($context['_seq'], $context['type'], $context['flashes'], $context['_parent']);
  101. $context = array_intersect_key($context, $_parent) + $_parent;
  102. // line 18
  103. yield " <div class=\"is-Field is-row\">
  104. <div class=\"is-col-xs-12 is-col-sm-12 is-col-md-4 is-col-lg-3\">
  105. <label class=\"is-Label\" for=\"is-ResetForm-Email\">";
  106. // line 20
  107. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.email"), "html", null, true);
  108. yield "<span class=\"is-LabelledInput-Label_Required\">*</span></label>
  109. </div>
  110. <div class=\"is-col-xs-12 is-col-sm-12 is-col-md-8 is-col-lg-9\">
  111. <input class=\"is-Input\" id=\"is-ResetForm-Email\" name=\"email\" required=\"true\" type=\"text\" value=\"";
  112. // line 23
  113. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape((isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 23, $this->source); })()), "html", null, true);
  114. yield "\"/>
  115. </div>
  116. </div>
  117. <div class=\"is-row\">
  118. <div class=\"is-col-xs-push-0 is-col-xs-12 is-col-sm-push-0 is-col-sm-12 is-col-md-push-4 is-col-md-8 is-col-lg-push-3 is-col-lg-9\">
  119. <button class=\"is-Button is-Button_Primary is-full-width\" type=\"submit\" id=\"send\">";
  120. // line 29
  121. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("user.send"), "html", null, true);
  122. yield "</button>
  123. </div>
  124. </div>
  125. <br/>
  126. <div class=\"is-row\">
  127. <div class=\"is-col-xs-push-0 is-col-xs-12 is-col-sm-push-0 is-col-sm-12 is-col-md-push-4 is-col-md-8 is-col-lg-push-3 is-col-lg-9\">
  128. <a href=\"";
  129. // line 35
  130. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("homepage");
  131. yield "\">";
  132. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("go_home"), "html", null, true);
  133. yield "</a>
  134. </div>
  135. </div>
  136. </div>
  137. </div>
  138. </form>
  139. ";
  140. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  141. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  142. yield from [];
  143. }
  144. /**
  145. * @codeCoverageIgnore
  146. */
  147. public function getTemplateName(): string
  148. {
  149. return "pages/account/resetPassword.html.twig";
  150. }
  151. /**
  152. * @codeCoverageIgnore
  153. */
  154. public function isTraitable(): bool
  155. {
  156. return false;
  157. }
  158. /**
  159. * @codeCoverageIgnore
  160. */
  161. public function getDebugInfo(): array
  162. {
  163. return array ( 147 => 35, 138 => 29, 129 => 23, 123 => 20, 119 => 18, 113 => 17, 104 => 14, 99 => 13, 94 => 12, 90 => 11, 86 => 10, 81 => 7, 68 => 6, 57 => 1, 55 => 4, 53 => 3, 40 => 1,);
  164. }
  165. public function getSourceContext(): Source
  166. {
  167. return new Source("{% extends 'layouts/common/default.html.twig' %}
  168. {% set pageAttributes = pageAttributes is defined ? pageAttributes : { group: 'common', section: 'sim' } %}
  169. {% set page_title = 'user.reset_password'|trans %}
  170. {% block content %}
  171. <form class=\"is-AccountForm\" method=\"post\" name=\"phoneCode\">
  172. <div class=\"is-row\">
  173. <div class=\"is-col-xs-12 is-col-sm-12 is-col-md-push-2 is-col-md-8 is-col-lg-push-3 is-col-lg-6\">
  174. <h1 class=\"is-H1\">{{ \"user.enter_email\"|trans }}</h1>
  175. {% for type, flashes in app.session.flashbag.all %}
  176. {% for flash in flashes %}
  177. <p class=\"is-Alert is-Alert_{{ type|capitalize }} is-Alert_Dismissible is-show\" role=\"alert\">
  178. {{ flash | raw }}
  179. </p>
  180. {% endfor %}
  181. {% endfor %}
  182. <div class=\"is-Field is-row\">
  183. <div class=\"is-col-xs-12 is-col-sm-12 is-col-md-4 is-col-lg-3\">
  184. <label class=\"is-Label\" for=\"is-ResetForm-Email\">{{ 'user.email' | trans }}<span class=\"is-LabelledInput-Label_Required\">*</span></label>
  185. </div>
  186. <div class=\"is-col-xs-12 is-col-sm-12 is-col-md-8 is-col-lg-9\">
  187. <input class=\"is-Input\" id=\"is-ResetForm-Email\" name=\"email\" required=\"true\" type=\"text\" value=\"{{ email }}\"/>
  188. </div>
  189. </div>
  190. <div class=\"is-row\">
  191. <div class=\"is-col-xs-push-0 is-col-xs-12 is-col-sm-push-0 is-col-sm-12 is-col-md-push-4 is-col-md-8 is-col-lg-push-3 is-col-lg-9\">
  192. <button class=\"is-Button is-Button_Primary is-full-width\" type=\"submit\" id=\"send\">{{ 'user.send' | trans }}</button>
  193. </div>
  194. </div>
  195. <br/>
  196. <div class=\"is-row\">
  197. <div class=\"is-col-xs-push-0 is-col-xs-12 is-col-sm-push-0 is-col-sm-12 is-col-md-push-4 is-col-md-8 is-col-lg-push-3 is-col-lg-9\">
  198. <a href=\"{{ path('homepage') }}\">{{ 'go_home' | trans }}</a>
  199. </div>
  200. </div>
  201. </div>
  202. </div>
  203. </form>
  204. {% endblock %}
  205. ", "pages/account/resetPassword.html.twig", "/var/www/html/templates/pages/account/resetPassword.html.twig");
  206. }
  207. }