var/cache/dev/twig/5e/5e20003018558501481d9d0938ac436a.php line 49

  1. <?php
  2. use Twig\Environment;
  3. use Twig\Error\LoaderError;
  4. use Twig\Error\RuntimeError;
  5. use Twig\Extension\SandboxExtension;
  6. use Twig\Markup;
  7. use Twig\Sandbox\SecurityError;
  8. use Twig\Sandbox\SecurityNotAllowedTagError;
  9. use Twig\Sandbox\SecurityNotAllowedFilterError;
  10. use Twig\Sandbox\SecurityNotAllowedFunctionError;
  11. use Twig\Source;
  12. use Twig\Template;
  13. /* @Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig */
  14. class __TwigTemplate_00bb6e8628bfaac76ae1dbec10270904 extends Template
  15. {
  16.     private $source;
  17.     private $macros = [];
  18.     public function __construct(Environment $env)
  19.     {
  20.         parent::__construct($env);
  21.         $this->source $this->getSourceContext();
  22.         $this->blocks = [
  23.             'body' => [$this'block_body'],
  24.             'javascripts' => [$this'block_javascripts'],
  25.         ];
  26.     }
  27.     protected function doGetParent(array $context)
  28.     {
  29.         // line 1
  30.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig";
  31.     }
  32.     protected function doDisplay(array $context, array $blocks = [])
  33.     {
  34.         $macros $this->macros;
  35.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  36.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig"));
  37.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  38.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig"));
  39.         $this->parent $this->loadTemplate("@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig"1);
  40.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  41.         
  42.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  43.         
  44.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  45.     }
  46.     // line 3
  47.     public function block_body($context, array $blocks = [])
  48.     {
  49.         $macros $this->macros;
  50.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  51.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  52.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  53.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""body"));
  54.         // line 4
  55.         echo "
  56.  
  57.         <!-- Begin Body Wrapper -->
  58.         <div class=\"body-wrapper mt-4 mb-4\">
  59.   
  60.             
  61.             <!-- Begin Se connecter Content Area -->
  62.             
  63.             <div class=\"page-section mb-60\">
  64.                 
  65.                 <div class=\"container  col-sm-9\" style=\"padding: 23px 51px !important\" >
  66.                       ";
  67.         // line 16
  68.         if ((isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'16$this->source); })())) {
  69.             // line 17
  70.             echo "                    <svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display: none;\">
  71.                 <symbol id=\"check-circle-fill\" fill=\"currentColor\" viewBox=\"0 0 16 16\">
  72.                     <path d=\"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z\"/>
  73.                 </symbol>
  74.                 <symbol id=\"info-fill\" fill=\"currentColor\" viewBox=\"0 0 16 16\">
  75.                     <path d=\"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z\"/>
  76.                 </symbol>
  77.                 <symbol id=\"exclamation-triangle-fill\" fill=\"currentColor\" viewBox=\"0 0 16 16\">
  78.                     <path d=\"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z\"/>
  79.                 </symbol>
  80.                 </svg>
  81.                  
  82.                 <div class=\"alert alert-warning alert-dismissible fade show text-center\" role=\"alert\">
  83.                     <strong>   <svg class=\"bi flex-shrink-0 me-2\" width=\"24\" height=\"24\" role=\"img\" aria-label=\"Warning:\"><use xlink:href=\"#exclamation-triangle-fill\"/></svg>
  84.                     Important ! </strong> ";
  85.             // line 31
  86.             echo twig_escape_filter($this->env, (isset($context["message"]) || array_key_exists("message"$context) ? $context["message"] : (function () { throw new RuntimeError('Variable "message" does not exist.'31$this->source); })()), "html"nulltrue);
  87.             echo " .
  88.                     <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
  89.                     </div>
  90.                   
  91.  
  92.                   ";
  93.         }
  94.         // line 39
  95.         echo "                    <div class=\"row  col-sm-6  mx-auto\" >
  96.                         
  97.                         <div class=\"col-sm-12 col-md-12 col-xs-12 col-lg-12 mb-30 p-50 \">
  98.                            
  99.                             <!-- Se connecter Form s-->
  100.                         <h4  style=\"text-align: center;\">Connectez-vous </h4>
  101.                          
  102.                             <form action=\"";
  103.         // line 48
  104.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("login");
  105.         echo "\" method=\"post\">
  106.     ";
  107.         // line 49
  108.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'49$this->source); })())) {
  109.             // line 50
  110.             echo "        <div class=\"alert alert-danger\">";
  111.             echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'50$this->source); })()), "messageKey", [], "any"falsefalsefalse50), twig_get_attribute($this->env$this->source, (isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'50$this->source); })()), "messageData", [], "any"falsefalsefalse50), "security"), "html"nulltrue);
  112.             echo "</div>
  113.     ";
  114.         }
  115.         // line 52
  116.         echo "
  117.     ";
  118.         // line 53
  119.         if (twig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'53$this->source); })()), "user", [], "any"falsefalsefalse53)) {
  120.             // line 54
  121.             echo "        <div class=\"mb-3\">
  122.             Vous êtes connecté en tant que ";
  123.             // line 55
  124.             echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["app"]) || array_key_exists("app"$context) ? $context["app"] : (function () { throw new RuntimeError('Variable "app" does not exist.'55$this->source); })()), "user", [], "any"falsefalsefalse55), "username", [], "any"falsefalsefalse55), "html"nulltrue);
  125.             echo ", <a href=\"";
  126.             echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_logout");
  127.             echo "\">Se deconnecter</a>
  128.         </div>
  129.     ";
  130.         }
  131.         // line 58
  132.         echo "
  133.     <h1 class=\"h3 mb-3 text-white font-weight-normal\">Connexion</h1>
  134.     <label for=\"inputUsername\">Nom d'utilisateur</label>
  135.     <input type=\"text\" value=\"";
  136.         // line 62
  137.         echo twig_escape_filter($this->env, (isset($context["last_username"]) || array_key_exists("last_username"$context) ? $context["last_username"] : (function () { throw new RuntimeError('Variable "last_username" does not exist.'62$this->source); })()), "html"nulltrue);
  138.         echo "\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  139.     <label for=\"inputPassword\">Mot de passe</label>
  140.     <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  141.     <input type=\"hidden\" name=\"_csrf_token\"
  142.            value=\"";
  143.         // line 67
  144.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  145.         echo "\"
  146.     >
  147.    
  148.     ";
  149.         // line 81
  150.         echo "    
  151.    <p> Nouveau sur Cowork&live ? <a href=\"";
  152.         // line 83
  153.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("registre");
  154.         echo "\"> Inscrivez-vous!</a> </p> 
  155.     <br>
  156.     
  157.     <button class=\"save-button d-block btn btn-dark\"  style=\"width: 100%;\" type=\"submit\">
  158.         Se connecter 
  159.     </button>
  160.     <!-- <hr class=\"line\" style=\"margin:10px 0;height:1px;background:#ddd;\">
  161.      <a href=\"";
  162.         // line 92
  163.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("connect_google_start");
  164.         echo "\" class=\"btn btn-danger mt-1 mb-1 d-block\" ><i class=\"fa-brands fa-google\"></i> Se conneceter avec Google</a>
  165.      <a href=\"";
  166.         // line 93
  167.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("connect_facebook_start");
  168.         echo "\" class=\"btn btn-primary  d-block\" ><i class=\"fa-brands fa-facebook\"></i> Se conneceter avec Facebook</a>
  169.     -->
  170. <hr class=\"line\" style=\"margin:10px 0;height:1px;background:#ddd;\">
  171.     <a class=\"btn btn-warning d-block\" href=\"";
  172.         // line 97
  173.         echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("app_forgot_password_request");
  174.         echo "\" >Mot de passe oublié ou perdu</a>
  175.     </form>
  176.     
  177.                             
  178.                         </div>
  179.                   ";
  180.         // line 339
  181.         echo "                    </div>
  182.                 </div>
  183.             </div>
  184.             <!-- Se connecter Content Area End Here -->
  185.         </div>
  186.         <!-- Body Wrapper End Here -->
  187. ";
  188.         
  189.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  190.         
  191.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  192.     }
  193.     // line 349
  194.     public function block_javascripts($context, array $blocks = [])
  195.     {
  196.         $macros $this->macros;
  197.         $__internal_5a27a8ba21ca79b61932376b2fa922d2 $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  198.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->enter($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  199.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  200.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""javascripts"));
  201.         // line 350
  202.         $this->displayParentBlock("javascripts"$context$blocks);
  203.         echo "
  204. <script>
  205. function isMobileDevice() {
  206.   return /Mobi/i.test(navigator.userAgent);
  207. }
  208.   function isAndroid() {
  209.   return /Android/i.test(navigator.userAgent);
  210. }
  211. function isiOS() {
  212.   return /iPhone|iPad|iPod/i.test(navigator.userAgent);
  213. }
  214. // Usage
  215. ";
  216.         // line 370
  217.         if (array_key_exists("order"$context)) {
  218.             // line 371
  219.             echo "
  220. ";
  221.             // line 372
  222.             if ((twig_get_attribute($this->env$this->source, (isset($context["order"]) || array_key_exists("order"$context) ? $context["order"] : (function () { throw new RuntimeError('Variable "order" does not exist.'372$this->source); })()), "source", [], "any"falsefalsefalse372) == "mobile")) {
  223.                 // line 373
  224.                 echo "if (isMobileDevice()) {
  225. // Example usage
  226. if (isAndroid()) {
  227.    window.location.href = \"";
  228.                 // line 380
  229.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'380$this->source); })()), "get", [], "any"falsefalsefalse380), "mobileAppSchemeAndroid", [], "any"falsefalsefalse380), "html"nulltrue);
  230.                 echo "?path=/myaccount/successUpdatePassword\";
  231.   window.close();
  232. } else if (isiOS()) {
  233.    window.location.href = \"";
  234.                 // line 383
  235.                 echo twig_escape_filter($this->envtwig_get_attribute($this->env$this->sourcetwig_get_attribute($this->env$this->source, (isset($context["settings"]) || array_key_exists("settings"$context) ? $context["settings"] : (function () { throw new RuntimeError('Variable "settings" does not exist.'383$this->source); })()), "get", [], "any"falsefalsefalse383), "mobileAppSchemeIOS", [], "any"falsefalsefalse383), "html"nulltrue);
  236.                 echo "?path=/myaccount/successUpdatePassword\";
  237.   window.close();
  238. }
  239.  
  240. ";
  241.             }
  242.             // line 391
  243.             echo "
  244. ";
  245.         }
  246.         // line 393
  247.         echo "
  248. </script>
  249. <script>
  250.     \$(document).ready(function()
  251.     {
  252.         \$(\"#select-account\").change(function(){
  253.             var selectedAccount = \$(this).val();
  254.             
  255.             \$(\".registerForm\").addClass(\"d-none\");
  256.             \$(\"#\"+selectedAccount).removeClass(\"d-none\");
  257.         });
  258.     });
  259. </script>
  260. ";
  261.         
  262.         $__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
  263.         
  264.         $__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
  265.     }
  266.     public function getTemplateName()
  267.     {
  268.         return "@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig";
  269.     }
  270.     public function isTraitable()
  271.     {
  272.         return false;
  273.     }
  274.     public function getDebugInfo()
  275.     {
  276.         return array (  296 => 393,  292 => 391,  281 => 383,  275 => 380,  266 => 373,  264 => 372,  261 => 371,  259 => 370,  236 => 350,  226 => 349,  208 => 339,  199 => 97,  192 => 93,  188 => 92,  176 => 83,  172 => 81,  165 => 67,  157 => 62,  151 => 58,  143 => 55,  140 => 54,  138 => 53,  135 => 52,  129 => 50,  127 => 49,  123 => 48,  112 => 39,  101 => 31,  85 => 17,  83 => 16,  69 => 4,  59 => 3,  36 => 1,);
  277.     }
  278.     public function getSourceContext()
  279.     {
  280.         return new Source("{% extends '@Flexy/FrontBundle/Themes/CoWorking/templates/layout.html.twig' %}
  281. {% block body %}
  282.  
  283.         <!-- Begin Body Wrapper -->
  284.         <div class=\"body-wrapper mt-4 mb-4\">
  285.   
  286.             
  287.             <!-- Begin Se connecter Content Area -->
  288.             
  289.             <div class=\"page-section mb-60\">
  290.                 
  291.                 <div class=\"container  col-sm-9\" style=\"padding: 23px 51px !important\" >
  292.                       {% if message %}
  293.                     <svg xmlns=\"http://www.w3.org/2000/svg\" style=\"display: none;\">
  294.                 <symbol id=\"check-circle-fill\" fill=\"currentColor\" viewBox=\"0 0 16 16\">
  295.                     <path d=\"M16 8A8 8 0 1 1 0 8a8 8 0 0 1 16 0zm-3.97-3.03a.75.75 0 0 0-1.08.022L7.477 9.417 5.384 7.323a.75.75 0 0 0-1.06 1.06L6.97 11.03a.75.75 0 0 0 1.079-.02l3.992-4.99a.75.75 0 0 0-.01-1.05z\"/>
  296.                 </symbol>
  297.                 <symbol id=\"info-fill\" fill=\"currentColor\" viewBox=\"0 0 16 16\">
  298.                     <path d=\"M8 16A8 8 0 1 0 8 0a8 8 0 0 0 0 16zm.93-9.412-1 4.705c-.07.34.029.533.304.533.194 0 .487-.07.686-.246l-.088.416c-.287.346-.92.598-1.465.598-.703 0-1.002-.422-.808-1.319l.738-3.468c.064-.293.006-.399-.287-.47l-.451-.081.082-.381 2.29-.287zM8 5.5a1 1 0 1 1 0-2 1 1 0 0 1 0 2z\"/>
  299.                 </symbol>
  300.                 <symbol id=\"exclamation-triangle-fill\" fill=\"currentColor\" viewBox=\"0 0 16 16\">
  301.                     <path d=\"M8.982 1.566a1.13 1.13 0 0 0-1.96 0L.165 13.233c-.457.778.091 1.767.98 1.767h13.713c.889 0 1.438-.99.98-1.767L8.982 1.566zM8 5c.535 0 .954.462.9.995l-.35 3.507a.552.552 0 0 1-1.1 0L7.1 5.995A.905.905 0 0 1 8 5zm.002 6a1 1 0 1 1 0 2 1 1 0 0 1 0-2z\"/>
  302.                 </symbol>
  303.                 </svg>
  304.                  
  305.                 <div class=\"alert alert-warning alert-dismissible fade show text-center\" role=\"alert\">
  306.                     <strong>   <svg class=\"bi flex-shrink-0 me-2\" width=\"24\" height=\"24\" role=\"img\" aria-label=\"Warning:\"><use xlink:href=\"#exclamation-triangle-fill\"/></svg>
  307.                     Important ! </strong> {{ message }} .
  308.                     <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-label=\"Close\"></button>
  309.                     </div>
  310.                   
  311.  
  312.                   {% endif %}
  313.                     <div class=\"row  col-sm-6  mx-auto\" >
  314.                         
  315.                         <div class=\"col-sm-12 col-md-12 col-xs-12 col-lg-12 mb-30 p-50 \">
  316.                            
  317.                             <!-- Se connecter Form s-->
  318.                         <h4  style=\"text-align: center;\">Connectez-vous </h4>
  319.                          
  320.                             <form action=\"{{path('login')}}\" method=\"post\">
  321.     {% if error %}
  322.         <div class=\"alert alert-danger\">{{ error.messageKey|trans(error.messageData, 'security') }}</div>
  323.     {% endif %}
  324.     {% if app.user %}
  325.         <div class=\"mb-3\">
  326.             Vous êtes connecté en tant que {{ app.user.username }}, <a href=\"{{ path('app_logout') }}\">Se deconnecter</a>
  327.         </div>
  328.     {% endif %}
  329.     <h1 class=\"h3 mb-3 text-white font-weight-normal\">Connexion</h1>
  330.     <label for=\"inputUsername\">Nom d'utilisateur</label>
  331.     <input type=\"text\" value=\"{{ last_username }}\" name=\"username\" id=\"inputUsername\" class=\"form-control\" autocomplete=\"username\" required autofocus>
  332.     <label for=\"inputPassword\">Mot de passe</label>
  333.     <input type=\"password\" name=\"password\" id=\"inputPassword\" class=\"form-control\" autocomplete=\"current-password\" required>
  334.     <input type=\"hidden\" name=\"_csrf_token\"
  335.            value=\"{{ csrf_token('authenticate') }}\"
  336.     >
  337.    
  338.     {#
  339.         Uncomment this section and add a remember_me option below your firewall to activate remember me functionality.
  340.         See https://symfony.com/doc/current/security/remember_me.html
  341.         <div class=\"checkbox mb-3\">
  342.             <label>
  343.                 <input type=\"checkbox\" name=\"_remember_me\"> Remember me
  344.             </label>
  345.         </div>
  346.     #}
  347.     
  348.    <p> Nouveau sur Cowork&live ? <a href=\"{{path('registre')}}\"> Inscrivez-vous!</a> </p> 
  349.     <br>
  350.     
  351.     <button class=\"save-button d-block btn btn-dark\"  style=\"width: 100%;\" type=\"submit\">
  352.         Se connecter 
  353.     </button>
  354.     <!-- <hr class=\"line\" style=\"margin:10px 0;height:1px;background:#ddd;\">
  355.      <a href=\"{{path('connect_google_start')}}\" class=\"btn btn-danger mt-1 mb-1 d-block\" ><i class=\"fa-brands fa-google\"></i> Se conneceter avec Google</a>
  356.      <a href=\"{{path('connect_facebook_start')}}\" class=\"btn btn-primary  d-block\" ><i class=\"fa-brands fa-facebook\"></i> Se conneceter avec Facebook</a>
  357.     -->
  358. <hr class=\"line\" style=\"margin:10px 0;height:1px;background:#ddd;\">
  359.     <a class=\"btn btn-warning d-block\" href=\"{{path(\"app_forgot_password_request\")}}\" >Mot de passe oublié ou perdu</a>
  360.     </form>
  361.     
  362.                             
  363.                         </div>
  364.                   {# <div class=\"col-sm-12 col-md-12 col-lg-12 col-xs-12\">
  365.                             <div class=\"card p-4\">
  366.                             
  367.                             <h4 class=\"login-title\">Choisissez votre compte á créer</h4>
  368.                             
  369.                             <br>
  370.                                      <div id=\"registerCustomer\" class=\"registerForm\">
  371.                                         {{ form_start(registrationCustomerForm,{attr:{\"data-turbo\":\"false\"}}) }}
  372.                                         <div class=\"row\">
  373.                                         <div class=\"col-12\" >
  374.                                                 <div class=\"checkout-form-list\">
  375.                                                     <label>Vous etes un client <span class=\"required\">*</span></label>
  376.                                                      {{ form_widget(registrationCustomerForm.customerGroup) }}
  377.                                                    </div>
  378.                                                
  379.                                                 </div>
  380.                                             <div class=\"col-6\" >
  381.                                                 <div class=\"checkout-form-list\">
  382.                                                     <label>Prénom <span class=\"required\">*</span></label>
  383.                                                      {{ form_widget(registrationCustomerForm.firstName) }}
  384.                                                    </div>
  385.                                                
  386.                                                 </div>
  387.                                             <div class=\"col-6\" >
  388.                                                 <div class=\"checkout-form-list\">
  389.                                                     <label>Nom <span class=\"required\">*</span></label>
  390.                                                      {{ form_widget(registrationCustomerForm.lastName) }}
  391.                                                    </div>
  392.                                                </div>
  393.                                             <div class=\"col-6\" >
  394.                                                 <div class=\"checkout-form-list\">
  395.                                                     <label>Email <span class=\"required\">*</span></label>
  396.                                                     {{ form_errors(registrationCustomerForm.email) }}
  397.                                                      {{ form_widget(registrationCustomerForm.email) }}
  398.                                                    </div>
  399.                                                </div>
  400.                                             <div class=\"col-6\" >
  401.                                                 <div class=\"checkout-form-list\">
  402.                                                     <label>Mot de passe <span class=\"required\">*</span></label>
  403.                                                      {{ form_widget(registrationCustomerForm.user.password) }}
  404.                                                    </div>
  405.                                                 </div>   
  406.                                             
  407.                                             <!--<div class=\"col-6\" >{{ form_row(registrationCustomerForm.companyName) }}</div>-->
  408.                                            <!--  <div class=\"col-6\" >
  409.                                                   <div class=\"checkout-form-list\">
  410.                                                     <label>Genre <span class=\"required\">*</span></label>
  411.                                                      {{ form_widget(registrationCustomerForm.gender) }}
  412.                                                    </div>
  413.                                                  
  414.                                                  
  415.                                                  </div>
  416.                                         
  417.                                                   
  418.                                             <div class=\"col-6\" >
  419.                                                     <div class=\"checkout-form-list\">
  420.                                                     <label>Adresse <span class=\"required\">*</span></label>
  421.                                                      {{ form_widget(registrationCustomerForm.address) }}
  422.                                                    </div>
  423.                                                </div>
  424.                                                  
  425.                                             <div class=\"col-6\" >{{ form_row(registrationCustomerForm.addressIndication) }}</div>
  426.                                             <div class=\"col-6\" >
  427.                                                   <div class=\"checkout-form-list\">
  428.                                                     <label>Téléphone <span class=\"required\">*</span></label>
  429.                                                     {{ form_errors(registrationCustomerForm.phone) }}
  430.                                                      {{ form_widget(registrationCustomerForm.phone) }}
  431.                                                    </div>
  432.                                             
  433.                                                 
  434.                                                 </div>
  435.                                              <div class=\"col-6\" >{{ form_row(registrationCustomerForm.dateOfBirth) }}</div>
  436.                                             <div class=\"col-6\" >{{ form_row(registrationCustomerForm.postCode) }}</div>
  437.                                            
  438.                                             
  439.                                              <div class=\"col-6\" >
  440.                                                  <div class=\"checkout-form-list\">
  441.                                                     <label>Code Parrainage </label>
  442.                                                      {{ form_widget(registrationCustomerForm.sponsorshipCode) }}
  443.                                                 </div>
  444.                                                 
  445.                                             </div>
  446.                                          
  447.                                             
  448.                                              
  449.                                             <div class=\"col-12\" >
  450.                                             <div class=\"checkout-form-list\">
  451.                                                     <label>Vous souhaitez recevoir des nouvelles par mail ? </label>
  452.                                                      {{ form_widget(registrationCustomerForm.canReceiveMails) }}
  453.                                                 </div>
  454.                                                 
  455.                                                 <div class=\"checkout-form-list\">
  456.                                                     <label>Vous souhaitez recevoir des nouvelles par SMS ? </label>
  457.                                                      {{ form_widget(registrationCustomerForm.canReceiveSms) }}
  458.                                                 </div>
  459.                                                  <div class=\"checkout-form-list\">
  460.                                                     <label>Accepter les conditions génerales <span class=\"required\">*</span>  {{ form_widget(registrationCustomerForm.agreeTerms) }}</label>
  461.                                                     
  462.                                                    </div>
  463.                                                </div>
  464.                                             
  465.                                         </div>
  466.                                         
  467.                                             {{ form_row(registrationForm.username) }}
  468.                                             {{ form_row(registrationForm.plainPassword, {
  469.                                                 label: 'Password'
  470.                                             }) }}
  471.                                             {{ form_row(registrationForm.agreeTerms) }}
  472.                                         
  473.                                         {{ form_rest(registrationCustomerForm) }}
  474.                                             </br>
  475.                                             <button  type=\"submit\" class=\"save-button btn btn-success mt-0\">Créer</button>
  476.                                         {{ form_end(registrationCustomerForm) }}
  477.                                             </div>
  478.                                     <div id=\"registerVendor\" class=\"d-none registerForm\">
  479.                                         {{ form_start(registrationVendorForm) }}
  480.                                         <div class=\"row\">
  481.                                             <div class=\"col-6\" > 
  482.                                                
  483.                                                 <div class=\"checkout-form-list\">
  484.                                                     <label>Nom de l'entreprise <span class=\"required\">*</span></label>
  485.                                                      {{ form_widget(registrationVendorForm.name) }}
  486.                                                 </div>
  487.                                                
  488.                                                 
  489.                                             </div>
  490.                                             <div class=\"col-6\" > 
  491.                                                   <div class=\"checkout-form-list\">
  492.                                                     <label>Nom et prénom de contact<span class=\"required\">*</span></label>
  493.                                                      {{ form_widget(registrationVendorForm.fullName) }}
  494.                                                 </div>
  495.                                             </div>
  496.                                             <div class=\"col-12\" >
  497.                                                 <div class=\"checkout-form-list\">
  498.                                                     <label>Adresse <span class=\"required\">*</span></label>
  499.                                                      {{ form_widget(registrationVendorForm.address) }}
  500.                                                 </div>
  501.                                                 
  502.                                             </div>
  503.                                             <div class=\"col-12\" >
  504.                                                  <div class=\"checkout-form-list\">
  505.                                                     <label>Email<span class=\"required\">*</span></label>
  506.                                                      {{ form_widget(registrationVendorForm.email) }}
  507.                                                 </div>
  508.                                             </div>
  509.                                             <div class=\"col-6\" >
  510.                                                  <div class=\"checkout-form-list\">
  511.                                                     <label>Ville<span class=\"required\">*</span></label>
  512.                                                      {{ form_widget(registrationVendorForm.city) }}
  513.                                                 </div>
  514.                                                </div>
  515.                                             <div class=\"col-6\" >
  516.                                                   <div class=\"checkout-form-list\">
  517.                                                     <label>Téléphone<span class=\"required\">*</span></label>
  518.                                                      {{ form_widget(registrationVendorForm.tel) }}
  519.                                                 </div>
  520.                                                 
  521.                                             </div>
  522.                                             <div class=\"col-6\" >
  523.                                                    <div class=\"checkout-form-list\">
  524.                                                     <label>Identifiant Commun Entreprise <span class=\"required\">*</span></label>
  525.                                                      {{ form_widget(registrationVendorForm.ICE) }}
  526.                                                 </div>
  527.                                             </div>
  528.                                             <div class=\"col-6\" >{{ form_row(registrationVendorForm.imageIceFile) }}</div>
  529.                                             <div class=\"col-6\" >
  530.                                                   <div class=\"checkout-form-list\">
  531.                                                     <label>Registre du Commerce <span class=\"required\">*</span></label>
  532.                                                      {{ form_widget(registrationVendorForm.RC) }}
  533.                                                 </div>
  534.                                                </div>
  535.                                             <div class=\"col-6\" >{{ form_row(registrationVendorForm.imageRCFile) }}</div>
  536.                                             <div class=\"col-6\" >
  537.                                                 <div class=\"checkout-form-list\">
  538.                                                     <label>Identifiant Fiscale <span class=\"required\">*</span></label>
  539.                                                      {{ form_widget(registrationVendorForm.IdentifiantFiscale) }}
  540.                                                 </div>
  541.                                              </div>
  542.                                             <div class=\"col-6\" >{{ form_row(registrationVendorForm.imageIFFile) }}</div>
  543.                                             <div class=\"col-6\" >
  544.                                                  <div class=\"checkout-form-list\">
  545.                                                     <label>Identifiant <span class=\"required\">*</span></label>
  546.                                                      {{ form_widget(registrationVendorForm.simulateUsername) }}
  547.                                                 </div>
  548.                                          </div>
  549.                                             <div class=\"col-6\" >
  550.                                                  <div class=\"checkout-form-list\">
  551.                                                     <label>Mot de passe <span class=\"required\">*</span></label>
  552.                                                      {{ form_widget(registrationVendorForm.simulatePassword) }}
  553.                                                 </div>
  554.                                                 
  555.                                             </div>
  556.                                            
  557.                                             
  558.                                             <div class=\"col-12\" >
  559.                                                 <div class=\"checkout-form-list\">
  560.                                                     <label>Accepter les conditions génerales <span class=\"required\">*</span>  {{ form_widget(registrationVendorForm.agreeTerms) }}</label>
  561.                                                     
  562.                                                    </div>
  563.                                                 </div>
  564.                                             
  565.                                         </div>
  566.                                         
  567.                                             {{ form_row(registrationForm.username) }}
  568.                                             {{ form_row(registrationForm.plainPassword, {
  569.                                                 label: 'Password'
  570.                                             }) }}
  571.                                             {{ form_row(registrationForm.agreeTerms) }}
  572.                                         
  573.                                             </br>
  574.                                             <button  type=\"submit\" class=\"save-button btn btn-success mt-0\">Créer</button>
  575.                                         {{ form_end(registrationVendorForm) }}
  576.                                             </div>
  577.                                                    
  578.                             </div>
  579.                             
  580.                         </div>#}
  581.                     </div>
  582.                 </div>
  583.             </div>
  584.             <!-- Se connecter Content Area End Here -->
  585.         </div>
  586.         <!-- Body Wrapper End Here -->
  587. {% endblock %}
  588. {% block javascripts %}
  589. {{parent()}}
  590. <script>
  591. function isMobileDevice() {
  592.   return /Mobi/i.test(navigator.userAgent);
  593. }
  594.   function isAndroid() {
  595.   return /Android/i.test(navigator.userAgent);
  596. }
  597. function isiOS() {
  598.   return /iPhone|iPad|iPod/i.test(navigator.userAgent);
  599. }
  600. // Usage
  601. {% if order is defined %}
  602. {% if order.source == \"mobile\" %}
  603. if (isMobileDevice()) {
  604. // Example usage
  605. if (isAndroid()) {
  606.    window.location.href = \"{{settings.get.mobileAppSchemeAndroid}}?path=/myaccount/successUpdatePassword\";
  607.   window.close();
  608. } else if (isiOS()) {
  609.    window.location.href = \"{{settings.get.mobileAppSchemeIOS}}?path=/myaccount/successUpdatePassword\";
  610.   window.close();
  611. }
  612.  
  613. {% endif %}
  614. {% endif %}
  615. </script>
  616. <script>
  617.     \$(document).ready(function()
  618.     {
  619.         \$(\"#select-account\").change(function(){
  620.             var selectedAccount = \$(this).val();
  621.             
  622.             \$(\".registerForm\").addClass(\"d-none\");
  623.             \$(\"#\"+selectedAccount).removeClass(\"d-none\");
  624.         });
  625.     });
  626. </script>
  627. {% endblock %}
  628. ""@Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig""/home/gebcloud/public_html/cowork.gebanalysis.cloud/src/Flexy/FrontBundle/Themes/CoWorking/templates/myaccount/login-register.html.twig");
  629.     }
  630. }