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