var/cache/dev/twig/42/42cae0c96cba55d95bcb47c88efb3bff.php line 54

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_7fdac7bcdee4565a6a92805465226e4d 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. 'body' => [$this, 'block_body'],
  29. 'javascripts' => [$this, 'block_javascripts'],
  30. ];
  31. }
  32. protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  33. {
  34. // line 1
  35. return "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("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_body(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", "body"));
  58. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  59. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "body"));
  60. // line 4
  61. yield "
  62. <div class=\"login\">
  63. <div class=\"container-fluid\">
  64. <div class=\"main-content\">
  65. <div class=\"login-container\">
  66. <div class=\"row\">
  67. <div class=\"col-12 col-lg-5 d-none d-lg-flex\">
  68. <div class=\"image\">
  69. <img src=\"";
  70. // line 12
  71. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/image-flavour-vibes.png"), "html", null, true);
  72. yield "\" alt=\"connexion\">
  73. </div>
  74. </div>
  75. <div class=\"col-12 col-lg-7\">
  76. <div class=\"row align-items-center h-100\">
  77. <div class=\"col-12\">
  78. <div class=\"panel panel-default\">
  79. <div class=\"panel-header\">
  80. <a href=\"";
  81. // line 21
  82. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("home");
  83. yield "\">
  84. <div class=\"logo text-center\">
  85. <img src=\"";
  86. // line 23
  87. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("img/logo-vertical.png"), "html", null, true);
  88. yield "\" alt=\"logo\">
  89. </div>
  90. </a>
  91. <h1>I FORGOT MY PASSWORD</h1>
  92. <div class=\"description text-center\">Enter the email address attached to your account, to receive the guidelines to follow in order to reset your password.</div>
  93. </div>
  94. <div class=\"panel-body\">
  95. ";
  96. // line 31
  97. 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.', 31, $this->source); })()), 'form_start');
  98. yield "
  99. ";
  100. // line 33
  101. $context['_parent'] = $context;
  102. $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.', 33, $this->source); })()), "flashes", ["reset_password_error"], "method", false, false, false, 33));
  103. foreach ($context['_seq'] as $context["_key"] => $context["flashError"]) {
  104. // line 34
  105. yield " <div class=\"alert alert-danger\" role=\"alert\">";
  106. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($context["flashError"], "html", null, true);
  107. yield "</div>
  108. ";
  109. }
  110. $_parent = $context['_parent'];
  111. unset($context['_seq'], $context['_key'], $context['flashError'], $context['_parent']);
  112. $context = array_intersect_key($context, $_parent) + $_parent;
  113. // line 36
  114. yield "
  115. ";
  116. // line 37
  117. if ((($tmp = 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.', 37, $this->source); })()), "user", [], "any", false, false, false, 37)) && $tmp instanceof Markup ? (string) $tmp : $tmp)) {
  118. // line 38
  119. yield " <div class=\"mb-3 text-center\">
  120. Vous êtes connecté en tant que : ";
  121. // line 39
  122. yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(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.', 39, $this->source); })()), "user", [], "any", false, false, false, 39), "username", [], "any", false, false, false, 39), "html", null, true);
  123. yield ", peut-être que ce compte n'a pas encore de droit d'utilisation. <br/> <br/> <a href=\"";
  124. yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  125. yield "\">Se déconnecter</a>
  126. </div>
  127. ";
  128. } else {
  129. // line 42
  130. yield " <div class=\"form\">
  131. <div class=\"form-group\">
  132. <div class=\"input-group\">
  133. <label>";
  134. // line 46
  135. 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.', 46, $this->source); })()), "email", [], "any", false, false, false, 46), 'label');
  136. yield "</label>
  137. ";
  138. // line 47
  139. 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.', 47, $this->source); })()), "email", [], "any", false, false, false, 47), 'widget', ["attr" => ["class" => "form-control"]]);
  140. yield "
  141. </div>
  142. <div class=\"help-block with-errors\"></div>
  143. </div>
  144. <div class=\"form-group login-submit\">
  145. ";
  146. // line 52
  147. 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.', 52, $this->source); })()), "save", [], "any", false, false, false, 52), 'widget');
  148. yield "
  149. </div>
  150. </div>
  151. ";
  152. }
  153. // line 56
  154. yield "
  155. ";
  156. // line 57
  157. 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.', 57, $this->source); })()), 'form_end');
  158. yield "
  159. </div>
  160. </div>
  161. </div>
  162. </div>
  163. </div>
  164. </div>
  165. </div>
  166. </div>
  167. </div>
  168. </div>
  169. ";
  170. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  171. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  172. yield from [];
  173. }
  174. // line 71
  175. /**
  176. * @return iterable<null|scalar|\Stringable>
  177. */
  178. public function block_javascripts(array $context, array $blocks = []): iterable
  179. {
  180. $macros = $this->macros;
  181. $__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  182. $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  183. $__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  184. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
  185. // line 72
  186. yield " ";
  187. yield from $this->yieldParentBlock("javascripts", $context, $blocks);
  188. yield "
  189. <script>
  190. \$( document ).ready(function() {
  191. \$('form').validator();
  192. });
  193. </script>
  194. ";
  195. $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  196. $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  197. yield from [];
  198. }
  199. /**
  200. * @codeCoverageIgnore
  201. */
  202. public function getTemplateName(): string
  203. {
  204. return "reset_password/request.html.twig";
  205. }
  206. /**
  207. * @codeCoverageIgnore
  208. */
  209. public function isTraitable(): bool
  210. {
  211. return false;
  212. }
  213. /**
  214. * @codeCoverageIgnore
  215. */
  216. public function getDebugInfo(): array
  217. {
  218. return array ( 214 => 72, 201 => 71, 177 => 57, 174 => 56, 167 => 52, 159 => 47, 155 => 46, 149 => 42, 141 => 39, 138 => 38, 136 => 37, 133 => 36, 124 => 34, 120 => 33, 115 => 31, 104 => 23, 99 => 21, 87 => 12, 77 => 4, 64 => 3, 41 => 1,);
  219. }
  220. public function getSourceContext(): Source
  221. {
  222. return new Source("{% extends 'base.html.twig' %}
  223. {% block body %}
  224. <div class=\"login\">
  225. <div class=\"container-fluid\">
  226. <div class=\"main-content\">
  227. <div class=\"login-container\">
  228. <div class=\"row\">
  229. <div class=\"col-12 col-lg-5 d-none d-lg-flex\">
  230. <div class=\"image\">
  231. <img src=\"{{ asset('img/image-flavour-vibes.png') }}\" alt=\"connexion\">
  232. </div>
  233. </div>
  234. <div class=\"col-12 col-lg-7\">
  235. <div class=\"row align-items-center h-100\">
  236. <div class=\"col-12\">
  237. <div class=\"panel panel-default\">
  238. <div class=\"panel-header\">
  239. <a href=\"{{ path('home') }}\">
  240. <div class=\"logo text-center\">
  241. <img src=\"{{ asset('img/logo-vertical.png') }}\" alt=\"logo\">
  242. </div>
  243. </a>
  244. <h1>I FORGOT MY PASSWORD</h1>
  245. <div class=\"description text-center\">Enter the email address attached to your account, to receive the guidelines to follow in order to reset your password.</div>
  246. </div>
  247. <div class=\"panel-body\">
  248. {{ form_start(requestForm) }}
  249. {% for flashError in app.flashes('reset_password_error') %}
  250. <div class=\"alert alert-danger\" role=\"alert\">{{ flashError }}</div>
  251. {% endfor %}
  252. {% if app.user %}
  253. <div class=\"mb-3 text-center\">
  254. Vous êtes connecté en tant que : {{ app.user.username }}, peut-être que ce compte n'a pas encore de droit d'utilisation. <br/> <br/> <a href=\"{{ path('app_logout') }}\">Se déconnecter</a>
  255. </div>
  256. {% else %}
  257. <div class=\"form\">
  258. <div class=\"form-group\">
  259. <div class=\"input-group\">
  260. <label>{{ form_label ( requestForm.email) }}</label>
  261. {{ form_widget ( requestForm.email, {attr: {'class': \"form-control\" }} ) }}
  262. </div>
  263. <div class=\"help-block with-errors\"></div>
  264. </div>
  265. <div class=\"form-group login-submit\">
  266. {{ form_widget(requestForm.save) }}
  267. </div>
  268. </div>
  269. {% endif %}
  270. {{ form_end(requestForm) }}
  271. </div>
  272. </div>
  273. </div>
  274. </div>
  275. </div>
  276. </div>
  277. </div>
  278. </div>
  279. </div>
  280. </div>
  281. {% endblock %}
  282. {% block javascripts %}
  283. {{ parent() }}
  284. <script>
  285. \$( document ).ready(function() {
  286. \$('form').validator();
  287. });
  288. </script>
  289. {% endblock %}
  290. ", "reset_password/request.html.twig", "/var/www/vhosts/webpro-developpement.fr/follow.webpro-developpement.fr/public/templates/reset_password/request.html.twig");
  291. }
  292. }