var/cache/dev/twig/68/685f3cb9e4a3b60d84683d6c14c3c9ab.php line 60

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. /* security/login_without_password.html.twig */
  15. class __TwigTemplate_b0566a37f2d78672aa59a95b8b552035 extends Template
  16. {
  17.     private $source;
  18.     private $macros = [];
  19.     public function __construct(Environment $env)
  20.     {
  21.         parent::__construct($env);
  22.         $this->source $this->getSourceContext();
  23.         $this->blocks = [
  24.             'content' => [$this'block_content'],
  25.             'scripts' => [$this'block_scripts'],
  26.         ];
  27.     }
  28.     protected function doGetParent(array $context)
  29.     {
  30.         // line 1
  31.         return "security.html.twig";
  32.     }
  33.     protected function doDisplay(array $context, array $blocks = [])
  34.     {
  35.         $macros $this->macros;
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login_without_password.html.twig"));
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""security/login_without_password.html.twig"));
  40.         $this->parent $this->loadTemplate("security.html.twig""security/login_without_password.html.twig"1);
  41.         yield from $this->parent->unwrap()->yield($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  44.         
  45.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  46.     }
  47.     // line 3
  48.     public function block_content($context, array $blocks = [])
  49.     {
  50.         $macros $this->macros;
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  52.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  54.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         // line 4
  56.         yield "        <div class=\"refonte-login custom-card-body bg-body rounded p-10 p-lg-15 mx-auto\">
  57.             <div class=\"mb-5 container-logo \">
  58.                 <a href=\"";
  59.         // line 6
  60.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
  61.         yield "\">
  62.                     ";
  63.         // line 7
  64.         if (((array_key_exists("company"$context) &&  !(null === (isset($context["company"]) || array_key_exists("company"$context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.'7$this->source); })()))) &&  !(null === CoreExtension::getAttribute($this->env$this->source, (isset($context["company"]) || array_key_exists("company"$context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.'7$this->source); })()), "logoName", [], "any"falsefalsefalse7)))) {
  65.             // line 8
  66.             yield "                        <img style=\"max-width: 192px;height: auto;max-height: 75px;\" width=\"auto\" src=\"";
  67.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/uploads/images/company/"), "html"nulltrue);
  68.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape(CoreExtension::getAttribute($this->env$this->source, (isset($context["company"]) || array_key_exists("company"$context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.'8$this->source); })()), "logoName", [], "any"falsefalsefalse8), "html"nulltrue);
  69.             yield "\" class=\"app-logo\" alt=\"my flow logo\">
  70.                     ";
  71.         } else {
  72.             // line 10
  73.             yield "                        <img src=\"";
  74.             yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/media/logo-myflow.png"), "html"nulltrue);
  75.             yield "\" class=\"app-logo\" alt=\"my flow logo\" width=\"192\"><br>
  76. \t\t\t\t\t\t<span class=\"slogan\">More than just a marketplace</span>
  77.                     ";
  78.         }
  79.         // line 13
  80.         yield "                </a>
  81.                 <svg width=\"28\" height=\"28\" viewbox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  82.                     <g clip-path=\"url(#clip0_1_42)\">
  83.                         <path d=\"M28 14.1058L18.5578 18.7662L14.0031 28L9.30844 18.48L0 13.8911L9.44222 9.23067L14.0031 0L18.6978 9.51689L28 14.1058Z\" fill=\"#F676BD\" fill-opacity=\"0.42\"/>
  84.                     </g>
  85.                     <defs>
  86.                         <clipPath id=\"clip0_1_42\">
  87.                             <rect width=\"28\" height=\"28\" fill=\"white\"/>
  88.                         </clipPath>
  89.                     </defs>
  90.                 </svg>
  91.                 <h1 class=\"color-second\">Connexion sans mot de passe
  92.                 </h1>
  93.                 <p class=\"color-second\">Veuillez entrer votre adresse e-mail ci-dessous.<br> Si vous possédez déjà un compte, nous vous enverrons<br> un e-mail contenant un lien d'accès direct.</p>
  94.             </div>
  95.             <form class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\" method=\"post\">
  96.                 ";
  97.         // line 29
  98.         $context["query_params"] = 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.'29$this->source); })()), "request", [], "any"falsefalsefalse29), "query", [], "any"falsefalsefalse29);
  99.         // line 30
  100.         yield "
  101.                 ";
  102.         // line 31
  103.         if (CoreExtension::getAttribute($this->env$this->source, (isset($context["query_params"]) || array_key_exists("query_params"$context) ? $context["query_params"] : (function () { throw new RuntimeError('Variable "query_params" does not exist.'31$this->source); })()), "has", ["message_login_without_password"], "method"falsefalsefalse31)) {
  104.             // line 32
  105.             yield "                            ";
  106.             if ((CoreExtension::getAttribute($this->env$this->source, (isset($context["query_params"]) || array_key_exists("query_params"$context) ? $context["query_params"] : (function () { throw new RuntimeError('Variable "query_params" does not exist.'32$this->source); })()), "get", ["message_login_without_password"], "method"falsefalsefalse32) == "unknown-token")) {
  107.                 // line 33
  108.                 yield "                                <div class=\"text-danger fw-bold fs-4 mt-2\" align=\"center\">Le token n'existe pas ou n'est plus valide </div>
  109.                             ";
  110.             } elseif ((CoreExtension::getAttribute($this->env$this->source,             // line 34
  111. (isset($context["query_params"]) || array_key_exists("query_params"$context) ? $context["query_params"] : (function () { throw new RuntimeError('Variable "query_params" does not exist.'34$this->source); })()), "get", ["message_login_without_password"], "method"falsefalsefalse34) == "unknown-email")) {
  112.                 // line 35
  113.                 yield "                                <div class=\"text-danger fw-bold fs-4 mt-2\"  align=\"center\">Adresse email inconnue ou l'utilisateur est desactivé (Veuillez contactez l'administrateur du site)</div>
  114.                             ";
  115.             } elseif ((CoreExtension::getAttribute($this->env$this->source,             // line 36
  116. (isset($context["query_params"]) || array_key_exists("query_params"$context) ? $context["query_params"] : (function () { throw new RuntimeError('Variable "query_params" does not exist.'36$this->source); })()), "get", ["message_login_without_password"], "method"falsefalsefalse36) == "not-enabled")) {
  117.                 // line 37
  118.                 yield "                                <div class=\"text-danger fw-bold fs-4 mt-2\"  align=\"center\">Votre compte n'est pas actif, veuillez contacter l'administrateur</div>
  119.                             ";
  120.             } elseif ((CoreExtension::getAttribute($this->env$this->source,             // line 38
  121. (isset($context["query_params"]) || array_key_exists("query_params"$context) ? $context["query_params"] : (function () { throw new RuntimeError('Variable "query_params" does not exist.'38$this->source); })()), "get", ["message_login_without_password"], "method"falsefalsefalse38) == "send-success")) {
  122.                 // line 39
  123.                 yield "                                <div class=\"text-success fw-bold fs-4 mt-2\"  align=\"center\">Email envoiyé avec succès</div>
  124.                             ";
  125.             }
  126.             // line 41
  127.             yield "                    
  128.                 ";
  129.         }
  130.         // line 43
  131.         yield "                <div class=\"fv-row mb-6 form-login\" style=\"flex-direction: column;margin: auto;align-items: center;text-align: center;\">
  132.                     <div class=\"d-flex flex-stack mb-2 position-relative\" style=\"justify-content:center\">
  133.                         <input class=\"form-control form-control-lg custom-input-size\" type=\"text\" name=\"email\"  autocomplete=\"off\" placeholder=\"Email\"/>
  134.                     </div>
  135.                 </div>
  136.                 
  137.                 <div class=\"text-center\">
  138.                     <button type=\"submit\" class=\"btn btn-lg btn-primary-custom btn-login w-25 mb-5 titillium-web-bold\"
  139.                         ";
  140.         // line 51
  141.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusAction($this->env"security--login""submitForm");
  142.         yield "
  143.                     >
  144.                         <span class=\"indicator-label\">Connexion</span>
  145.                         <span class=\"indicator-progress\">Connexion en<br> cours...
  146.                             <span class=\"spinner-border spinner-border-sm align-middle ms-2\"></span></span>
  147.                     </button>
  148.                 </div>
  149.                 <div class=\"text-center mt-4\">
  150.                     <a href=\"";
  151.         // line 59
  152.         yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  153.         yield "\" class=\"link-primary fs-6 fw-bolder text-decoration-underline mdp-lost\">Mot de passe oublié ?</a><br>
  154.                 </div>
  155.             </form>
  156.         </div>
  157.     ";
  158.         
  159.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  160.         
  161.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  162.         return; yield '';
  163.     }
  164.     // line 73
  165.     public function block_scripts($context, array $blocks = [])
  166.     {
  167.         $macros $this->macros;
  168.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  169.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  170.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  171.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""scripts"));
  172.         // line 74
  173.         yield "    ";
  174.         yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
  175.         yield "
  176. ";
  177.         
  178.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  179.         
  180.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  181.         return; yield '';
  182.     }
  183.     /**
  184.      * @codeCoverageIgnore
  185.      */
  186.     public function getTemplateName()
  187.     {
  188.         return "security/login_without_password.html.twig";
  189.     }
  190.     /**
  191.      * @codeCoverageIgnore
  192.      */
  193.     public function isTraitable()
  194.     {
  195.         return false;
  196.     }
  197.     /**
  198.      * @codeCoverageIgnore
  199.      */
  200.     public function getDebugInfo()
  201.     {
  202.         return array (  193 => 74,  183 => 73,  166 => 59,  155 => 51,  145 => 43,  141 => 41,  137 => 39,  135 => 38,  132 => 37,  130 => 36,  127 => 35,  125 => 34,  122 => 33,  119 => 32,  117 => 31,  114 => 30,  112 => 29,  94 => 13,  87 => 10,  80 => 8,  78 => 7,  74 => 6,  70 => 4,  60 => 3,  37 => 1,);
  203.     }
  204.     public function getSourceContext()
  205.     {
  206.         return new Source("{% extends 'security.html.twig' %}
  207. {% block content %}
  208.         <div class=\"refonte-login custom-card-body bg-body rounded p-10 p-lg-15 mx-auto\">
  209.             <div class=\"mb-5 container-logo \">
  210.                 <a href=\"{{ path('app_login') }}\">
  211.                     {% if company is defined and company is not null and company.logoName is not null %}
  212.                         <img style=\"max-width: 192px;height: auto;max-height: 75px;\" width=\"auto\" src=\"{{ asset('/uploads/images/company/') }}{{ company.logoName }}\" class=\"app-logo\" alt=\"my flow logo\">
  213.                     {% else %}
  214.                         <img src=\"{{ asset('build/media/logo-myflow.png') }}\" class=\"app-logo\" alt=\"my flow logo\" width=\"192\"><br>
  215. \t\t\t\t\t\t<span class=\"slogan\">More than just a marketplace</span>
  216.                     {% endif %}
  217.                 </a>
  218.                 <svg width=\"28\" height=\"28\" viewbox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
  219.                     <g clip-path=\"url(#clip0_1_42)\">
  220.                         <path d=\"M28 14.1058L18.5578 18.7662L14.0031 28L9.30844 18.48L0 13.8911L9.44222 9.23067L14.0031 0L18.6978 9.51689L28 14.1058Z\" fill=\"#F676BD\" fill-opacity=\"0.42\"/>
  221.                     </g>
  222.                     <defs>
  223.                         <clipPath id=\"clip0_1_42\">
  224.                             <rect width=\"28\" height=\"28\" fill=\"white\"/>
  225.                         </clipPath>
  226.                     </defs>
  227.                 </svg>
  228.                 <h1 class=\"color-second\">Connexion sans mot de passe
  229.                 </h1>
  230.                 <p class=\"color-second\">Veuillez entrer votre adresse e-mail ci-dessous.<br> Si vous possédez déjà un compte, nous vous enverrons<br> un e-mail contenant un lien d'accès direct.</p>
  231.             </div>
  232.             <form class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\" method=\"post\">
  233.                 {% set query_params = app.request.query %}
  234.                 {% if query_params.has('message_login_without_password') %}
  235.                             {% if query_params.get('message_login_without_password') == 'unknown-token'  %}
  236.                                 <div class=\"text-danger fw-bold fs-4 mt-2\" align=\"center\">Le token n'existe pas ou n'est plus valide </div>
  237.                             {% elseif query_params.get('message_login_without_password') == 'unknown-email' %}
  238.                                 <div class=\"text-danger fw-bold fs-4 mt-2\"  align=\"center\">Adresse email inconnue ou l'utilisateur est desactivé (Veuillez contactez l'administrateur du site)</div>
  239.                             {% elseif query_params.get('message_login_without_password') == 'not-enabled' %}
  240.                                 <div class=\"text-danger fw-bold fs-4 mt-2\"  align=\"center\">Votre compte n'est pas actif, veuillez contacter l'administrateur</div>
  241.                             {% elseif query_params.get('message_login_without_password') == 'send-success' %}
  242.                                 <div class=\"text-success fw-bold fs-4 mt-2\"  align=\"center\">Email envoiyé avec succès</div>
  243.                             {% endif %}
  244.                     
  245.                 {% endif %}
  246.                 <div class=\"fv-row mb-6 form-login\" style=\"flex-direction: column;margin: auto;align-items: center;text-align: center;\">
  247.                     <div class=\"d-flex flex-stack mb-2 position-relative\" style=\"justify-content:center\">
  248.                         <input class=\"form-control form-control-lg custom-input-size\" type=\"text\" name=\"email\"  autocomplete=\"off\" placeholder=\"Email\"/>
  249.                     </div>
  250.                 </div>
  251.                 
  252.                 <div class=\"text-center\">
  253.                     <button type=\"submit\" class=\"btn btn-lg btn-primary-custom btn-login w-25 mb-5 titillium-web-bold\"
  254.                         {{ stimulus_action('security--login', 'submitForm') }}
  255.                     >
  256.                         <span class=\"indicator-label\">Connexion</span>
  257.                         <span class=\"indicator-progress\">Connexion en<br> cours...
  258.                             <span class=\"spinner-border spinner-border-sm align-middle ms-2\"></span></span>
  259.                     </button>
  260.                 </div>
  261.                 <div class=\"text-center mt-4\">
  262.                     <a href=\"{{ path('app_forgot_password_request') }}\" class=\"link-primary fs-6 fw-bolder text-decoration-underline mdp-lost\">Mot de passe oublié ?</a><br>
  263.                 </div>
  264.             </form>
  265.         </div>
  266.     {# <!--begin::Heading-->
  267.     <div class=\"text-center mb-10\">
  268.         <!--begin::Title-->
  269.         <h1 class=\"titillium-web-bold text-dark mb-3\">Connexion sans mot de passe</h1>
  270.         <p class=\"text-gray-400 fw-bold fs-4\">Veuillez entrer votre adresse e-mail ci-dessous. Si vous possédez déjà un compte, nous vous enverrons un e-mail contenant un lien d'accès direct.</p>
  271.     </div> #}
  272. {% endblock %}
  273. {% block scripts %}
  274.     {{ encore_entry_script_tags('app') }}
  275. {% endblock %}
  276. ""security/login_without_password.html.twig""/var/www/vhosts/my-flow.fr/app.dev.my-flow.fr/templates/security/login_without_password.html.twig");
  277.     }
  278. }