<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
use Twig\Extension\CoreExtension;
use Twig\Extension\SandboxExtension;
use Twig\Markup;
use Twig\Sandbox\SecurityError;
use Twig\Sandbox\SecurityNotAllowedTagError;
use Twig\Sandbox\SecurityNotAllowedFilterError;
use Twig\Sandbox\SecurityNotAllowedFunctionError;
use Twig\Source;
use Twig\Template;
/* security/login_without_password.html.twig */
class __TwigTemplate_b0566a37f2d78672aa59a95b8b552035 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
'scripts' => [$this, 'block_scripts'],
];
}
protected function doGetParent(array $context)
{
// line 1
return "security.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login_without_password.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "security/login_without_password.html.twig"));
$this->parent = $this->loadTemplate("security.html.twig", "security/login_without_password.html.twig", 1);
yield from $this->parent->unwrap()->yield($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 4
yield " <div class=\"refonte-login custom-card-body bg-body rounded p-10 p-lg-15 mx-auto\">
<div class=\"mb-5 container-logo \">
<a href=\"";
// line 6
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_login");
yield "\">
";
// line 7
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", false, false, false, 7)))) {
// line 8
yield " <img style=\"max-width: 192px;height: auto;max-height: 75px;\" width=\"auto\" src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("/uploads/images/company/"), "html", null, true);
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", false, false, false, 8), "html", null, true);
yield "\" class=\"app-logo\" alt=\"my flow logo\">
";
} else {
// line 10
yield " <img src=\"";
yield $this->env->getRuntime('Twig\Runtime\EscaperRuntime')->escape($this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("build/media/logo-myflow.png"), "html", null, true);
yield "\" class=\"app-logo\" alt=\"my flow logo\" width=\"192\"><br>
\t\t\t\t\t\t<span class=\"slogan\">More than just a marketplace</span>
";
}
// line 13
yield " </a>
<svg width=\"28\" height=\"28\" viewbox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<g clip-path=\"url(#clip0_1_42)\">
<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\"/>
</g>
<defs>
<clipPath id=\"clip0_1_42\">
<rect width=\"28\" height=\"28\" fill=\"white\"/>
</clipPath>
</defs>
</svg>
<h1 class=\"color-second\">Connexion sans mot de passe
</h1>
<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>
</div>
<form class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\" method=\"post\">
";
// line 29
$context["query_params"] = 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.', 29, $this->source); })()), "request", [], "any", false, false, false, 29), "query", [], "any", false, false, false, 29);
// line 30
yield "
";
// line 31
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", false, false, false, 31)) {
// line 32
yield " ";
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", false, false, false, 32) == "unknown-token")) {
// line 33
yield " <div class=\"text-danger fw-bold fs-4 mt-2\" align=\"center\">Le token n'existe pas ou n'est plus valide </div>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 34
(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", false, false, false, 34) == "unknown-email")) {
// line 35
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>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 36
(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", false, false, false, 36) == "not-enabled")) {
// line 37
yield " <div class=\"text-danger fw-bold fs-4 mt-2\" align=\"center\">Votre compte n'est pas actif, veuillez contacter l'administrateur</div>
";
} elseif ((CoreExtension::getAttribute($this->env, $this->source, // line 38
(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", false, false, false, 38) == "send-success")) {
// line 39
yield " <div class=\"text-success fw-bold fs-4 mt-2\" align=\"center\">Email envoiyé avec succès</div>
";
}
// line 41
yield "
";
}
// line 43
yield " <div class=\"fv-row mb-6 form-login\" style=\"flex-direction: column;margin: auto;align-items: center;text-align: center;\">
<div class=\"d-flex flex-stack mb-2 position-relative\" style=\"justify-content:center\">
<input class=\"form-control form-control-lg custom-input-size\" type=\"text\" name=\"email\" autocomplete=\"off\" placeholder=\"Email\"/>
</div>
</div>
<div class=\"text-center\">
<button type=\"submit\" class=\"btn btn-lg btn-primary-custom btn-login w-25 mb-5 titillium-web-bold\"
";
// line 51
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\StimulusTwigExtension']->renderStimulusAction($this->env, "security--login", "submitForm");
yield "
>
<span class=\"indicator-label\">Connexion</span>
<span class=\"indicator-progress\">Connexion en<br> cours...
<span class=\"spinner-border spinner-border-sm align-middle ms-2\"></span></span>
</button>
</div>
<div class=\"text-center mt-4\">
<a href=\"";
// line 59
yield $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
yield "\" class=\"link-primary fs-6 fw-bolder text-decoration-underline mdp-lost\">Mot de passe oublié ?</a><br>
</div>
</form>
</div>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
// line 73
public function block_scripts($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_5a27a8ba21ca79b61932376b2fa922d2 = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "scripts"));
// line 74
yield " ";
yield $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("app");
yield "
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
return; yield '';
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "security/login_without_password.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{% extends 'security.html.twig' %}
{% block content %}
<div class=\"refonte-login custom-card-body bg-body rounded p-10 p-lg-15 mx-auto\">
<div class=\"mb-5 container-logo \">
<a href=\"{{ path('app_login') }}\">
{% if company is defined and company is not null and company.logoName is not null %}
<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\">
{% else %}
<img src=\"{{ asset('build/media/logo-myflow.png') }}\" class=\"app-logo\" alt=\"my flow logo\" width=\"192\"><br>
\t\t\t\t\t\t<span class=\"slogan\">More than just a marketplace</span>
{% endif %}
</a>
<svg width=\"28\" height=\"28\" viewbox=\"0 0 28 28\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\">
<g clip-path=\"url(#clip0_1_42)\">
<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\"/>
</g>
<defs>
<clipPath id=\"clip0_1_42\">
<rect width=\"28\" height=\"28\" fill=\"white\"/>
</clipPath>
</defs>
</svg>
<h1 class=\"color-second\">Connexion sans mot de passe
</h1>
<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>
</div>
<form class=\"form w-100\" novalidate=\"novalidate\" id=\"kt_sign_in_form\" method=\"post\">
{% set query_params = app.request.query %}
{% if query_params.has('message_login_without_password') %}
{% if query_params.get('message_login_without_password') == 'unknown-token' %}
<div class=\"text-danger fw-bold fs-4 mt-2\" align=\"center\">Le token n'existe pas ou n'est plus valide </div>
{% elseif query_params.get('message_login_without_password') == 'unknown-email' %}
<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>
{% elseif query_params.get('message_login_without_password') == 'not-enabled' %}
<div class=\"text-danger fw-bold fs-4 mt-2\" align=\"center\">Votre compte n'est pas actif, veuillez contacter l'administrateur</div>
{% elseif query_params.get('message_login_without_password') == 'send-success' %}
<div class=\"text-success fw-bold fs-4 mt-2\" align=\"center\">Email envoiyé avec succès</div>
{% endif %}
{% endif %}
<div class=\"fv-row mb-6 form-login\" style=\"flex-direction: column;margin: auto;align-items: center;text-align: center;\">
<div class=\"d-flex flex-stack mb-2 position-relative\" style=\"justify-content:center\">
<input class=\"form-control form-control-lg custom-input-size\" type=\"text\" name=\"email\" autocomplete=\"off\" placeholder=\"Email\"/>
</div>
</div>
<div class=\"text-center\">
<button type=\"submit\" class=\"btn btn-lg btn-primary-custom btn-login w-25 mb-5 titillium-web-bold\"
{{ stimulus_action('security--login', 'submitForm') }}
>
<span class=\"indicator-label\">Connexion</span>
<span class=\"indicator-progress\">Connexion en<br> cours...
<span class=\"spinner-border spinner-border-sm align-middle ms-2\"></span></span>
</button>
</div>
<div class=\"text-center mt-4\">
<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>
</div>
</form>
</div>
{# <!--begin::Heading-->
<div class=\"text-center mb-10\">
<!--begin::Title-->
<h1 class=\"titillium-web-bold text-dark mb-3\">Connexion sans mot de passe</h1>
<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>
</div> #}
{% endblock %}
{% block scripts %}
{{ encore_entry_script_tags('app') }}
{% endblock %}
", "security/login_without_password.html.twig", "/var/www/vhosts/my-flow.fr/app.dev.my-flow.fr/templates/security/login_without_password.html.twig");
}
}