var/cache/dev/twig/3d/3de4b3c94186c1504cef2edbcd8d62bde6bd17588d56a0f34e59631043f276d3.php line 95

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. /* user/ask_password.html.twig */
  16. class __TwigTemplate_1ffedcbccee86ca8f99ae6c3ae77319ffe40af2bfeda0044100273599d0f3bf8 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.             'fos_user_title' => [$this'block_fos_user_title'],
  29.             'fos_user_content' => [$this'block_fos_user_content'],
  30.             'fos_user_script' => [$this'block_fos_user_script'],
  31.         ];
  32.     }
  33.     protected function doGetParent(array $context): bool|string|Template|TemplateWrapper
  34.     {
  35.         // line 1
  36.         return "base_security.html.twig";
  37.     }
  38.     protected function doDisplay(array $context, array $blocks = []): iterable
  39.     {
  40.         $macros $this->macros;
  41.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  42.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/ask_password.html.twig"));
  43.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  44.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""user/ask_password.html.twig"));
  45.         $this->parent $this->loadTemplate("base_security.html.twig""user/ask_password.html.twig"1);
  46.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  47.         
  48.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  49.         
  50.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  51.     }
  52.     // line 4
  53.     /**
  54.      * @return iterable<null|scalar|\Stringable>
  55.      */
  56.     public function block_fos_user_title(array $context, array $blocks = []): iterable
  57.     {
  58.         $macros $this->macros;
  59.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  60.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_title"));
  61.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  62.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_title"));
  63.         // line 5
  64.         yield "  <h4 class=\"auth-header\">";
  65.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.init_reset_password"), "html"nulltrue);
  66.         yield "</h4>
  67. ";
  68.         
  69.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  70.         
  71.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  72.         yield from [];
  73.     }
  74.     // line 8
  75.     /**
  76.      * @return iterable<null|scalar|\Stringable>
  77.      */
  78.     public function block_fos_user_content(array $context, array $blocks = []): iterable
  79.     {
  80.         $macros $this->macros;
  81.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  82.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  83.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  84.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_content"));
  85.         // line 9
  86.         yield "  <div class=\"container\">
  87.     <div class=\"form-text text-md-center\">
  88.       <em>
  89.           ";
  90.         // line 12
  91.         yield $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.information_for_reset_password_with_tag", ["%tag_br%" => "<br/>"]);
  92.         yield "
  93.       </em>
  94.     </div>
  95.     ";
  96.         // line 17
  97.         yield "    <form action=\"";
  98.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("register_ask_new_password");
  99.         yield "\" method=\"POST\" class=\"fos_user_resetting_request\">
  100.       ";
  101.         // line 18
  102.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'18$this->source); })()), "_token", [], "any"falsefalsefalse18), 'widget');
  103.         yield "
  104.       <div class=\"form-group\">
  105.         <label for=\"\">";
  106.         // line 20
  107.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.login_phone"), "html"nulltrue);
  108.         yield "*</label>
  109.         ";
  110.         // line 21
  111.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'21$this->source); })()), "phone", [], "any"falsefalsefalse21), 'widget');
  112.         yield "
  113.         <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  114.       </div>
  115.       <div class=\"form-group\">
  116.         <label for=\"\">";
  117.         // line 25
  118.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.optional_email"), "html"nulltrue);
  119.         yield "</label>
  120.         ";
  121.         // line 26
  122.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'26$this->source); })()), "email", [], "any"falsefalsefalse26), 'widget');
  123.         yield "
  124.         <div class=\"pre-icon os-icon os-icon-email-forward\"></div>
  125.       </div>
  126.       <div class=\"form-group\">
  127.         <label for=\"\">";
  128.         // line 30
  129.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.verification_code"), "html"nulltrue);
  130.         yield "</label>
  131.         ";
  132.         // line 31
  133.         yield $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(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.'31$this->source); })()), "validCode", [], "any"falsefalsefalse31), 'widget', ["value" => ""]);
  134.         yield "
  135.         <div class=\"pre-icon os-icon os-icon-fingerprint\"></div>
  136.       </div>
  137.       <div class=\"multi_submit\">
  138.         ";
  139.         // line 36
  140.         yield "        <input  id=\"submit_change_password\" class=\"btn btn-primary\" type=\"submit\" value=\"Initialiser\" />
  141.         <a class=\"btn btn-primary\" href=\"";
  142.         // line 37
  143.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("logout");
  144.         yield "\">";
  145.         yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("menu.cancel"), "html"nulltrue);
  146.         yield "</a>
  147.       </div>
  148.     </form>
  149.   </div>
  150. ";
  151.         
  152.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  153.         
  154.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  155.         yield from [];
  156.     }
  157.     // line 42
  158.     /**
  159.      * @return iterable<null|scalar|\Stringable>
  160.      */
  161.     public function block_fos_user_script(array $context, array $blocks = []): iterable
  162.     {
  163.         $macros $this->macros;
  164.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  165.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_script"));
  166.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  167.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""fos_user_script"));
  168.         // line 43
  169.         yield "  <script>
  170.      change_submit_name();
  171.      \$('#userbundle_user_validCode').hover(function (e) {
  172.         change_submit_name();
  173.      })
  174.     function change_submit_name() {
  175.        if(\$('#userbundle_user_validCode').val().length >0) {
  176.           \$('#submit_change_password').val(\"Initialiser votre mot de passe\");
  177.        } else {
  178.           \$('#submit_change_password').val(\"Demander le code\");
  179.        }
  180.     }
  181.   </script>
  182. ";
  183.         
  184.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  185.         
  186.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  187.         yield from [];
  188.     }
  189.     /**
  190.      * @codeCoverageIgnore
  191.      */
  192.     public function getTemplateName(): string
  193.     {
  194.         return "user/ask_password.html.twig";
  195.     }
  196.     /**
  197.      * @codeCoverageIgnore
  198.      */
  199.     public function isTraitable(): bool
  200.     {
  201.         return false;
  202.     }
  203.     /**
  204.      * @codeCoverageIgnore
  205.      */
  206.     public function getDebugInfo(): array
  207.     {
  208.         return array (  194 => 43,  181 => 42,  163 => 37,  160 => 36,  153 => 31,  149 => 30,  142 => 26,  138 => 25,  131 => 21,  127 => 20,  122 => 18,  117 => 17,  110 => 12,  105 => 9,  92 => 8,  78 => 5,  65 => 4,  42 => 1,);
  209.     }
  210.     public function getSourceContext(): Source
  211.     {
  212.         return new Source("{% extends \"base_security.html.twig\" %}
  213. {% block fos_user_title %}
  214.   <h4 class=\"auth-header\">{{ 'menu.init_reset_password' | trans }}</h4>
  215. {% endblock fos_user_title %}
  216. {% block fos_user_content %}
  217.   <div class=\"container\">
  218.     <div class=\"form-text text-md-center\">
  219.       <em>
  220.           {{ 'menu.information_for_reset_password_with_tag' | trans({'%tag_br%': '<br/>'}) | raw }}
  221.       </em>
  222.     </div>
  223.     {#<form action=\"{{ path('fos_user_resetting_send_email') }}\" method=\"POST\" class=\"fos_user_resetting_request\">#}
  224.     <form action=\"{{ path('register_ask_new_password') }}\" method=\"POST\" class=\"fos_user_resetting_request\">
  225.       {{ form_widget(form._token) }}
  226.       <div class=\"form-group\">
  227.         <label for=\"\">{{ 'menu.login_phone' | trans }}*</label>
  228.         {{ form_widget(form.phone) }}
  229.         <div class=\"pre-icon os-icon os-icon-user-male-circle\"></div>
  230.       </div>
  231.       <div class=\"form-group\">
  232.         <label for=\"\">{{ 'menu.optional_email' | trans }}</label>
  233.         {{ form_widget(form.email) }}
  234.         <div class=\"pre-icon os-icon os-icon-email-forward\"></div>
  235.       </div>
  236.       <div class=\"form-group\">
  237.         <label for=\"\">{{ 'menu.verification_code' | trans }}</label>
  238.         {{ form_widget(form.validCode, { 'value': '' }) }}
  239.         <div class=\"pre-icon os-icon os-icon-fingerprint\"></div>
  240.       </div>
  241.       <div class=\"multi_submit\">
  242.         {#<input class=\"btn btn-primary\" type=\"submit\" value=\"{{ 'resetting.request.submit'|trans }}\" />#}
  243.         <input  id=\"submit_change_password\" class=\"btn btn-primary\" type=\"submit\" value=\"Initialiser\" />
  244.         <a class=\"btn btn-primary\" href=\"{{ path('logout') }}\">{{ 'menu.cancel' | trans }}</a>
  245.       </div>
  246.     </form>
  247.   </div>
  248. {% endblock fos_user_content %}
  249. {% block fos_user_script %}
  250.   <script>
  251.      change_submit_name();
  252.      \$('#userbundle_user_validCode').hover(function (e) {
  253.         change_submit_name();
  254.      })
  255.     function change_submit_name() {
  256.        if(\$('#userbundle_user_validCode').val().length >0) {
  257.           \$('#submit_change_password').val(\"Initialiser votre mot de passe\");
  258.        } else {
  259.           \$('#submit_change_password').val(\"Demander le code\");
  260.        }
  261.     }
  262.   </script>
  263. {% endblock fos_user_script %}
  264. ""user/ask_password.html.twig""/var/www/html/inserjeune/templates/user/ask_password.html.twig");
  265.     }
  266. }