var/cache/dev/twig/f3/f3c99a9666ecb3f7ae8655e33abcacc5e2e3cb6ab9ed54ae7e872d5a139f2433.php line 38

Open in your IDE?
  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. /* account/b2c_login.html.twig */
  14. class __TwigTemplate_4b5840295c824c2e71edf8f3466065b5cf2d00f3e1e5f8de2a35939f3ae4aef9 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.             'content' => [$this'block_content'],
  24.         ];
  25.     }
  26.     protected function doGetParent(array $context)
  27.     {
  28.         // line 5
  29.         return "layouts/layout_b2c.html.twig";
  30.     }
  31.     protected function doDisplay(array $context, array $blocks = [])
  32.     {
  33.         $macros $this->macros;
  34.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  35.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/b2c_login.html.twig"));
  36.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  37.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/b2c_login.html.twig"));
  38.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  39.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template""account/b2c_login.html.twig"));
  40.         $this->parent $this->loadTemplate("layouts/layout_b2c.html.twig""account/b2c_login.html.twig"5);
  41.         $this->parent->display($contextarray_merge($this->blocks$blocks));
  42.         
  43.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  44.         
  45.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  46.         
  47.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  48.     }
  49.     // line 7
  50.     public function block_content($context, array $blocks = [])
  51.     {
  52.         $macros $this->macros;
  53.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
  54.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  55.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
  56.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  57.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
  58.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block""content"));
  59.         // line 8
  60.         echo "
  61.     ";
  62.         // line 9
  63.         $context["mecstore_lang"] = twig_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.'9$this->source); })()), "request", [], "any"falsefalsefalse9), "locale", [], "any"falsefalsefalse9);
  64.         // line 10
  65.         echo "    ";
  66.         if (((isset($context["mecstore_lang"]) || array_key_exists("mecstore_lang"$context) ? $context["mecstore_lang"] : (function () { throw new RuntimeError('Variable "mecstore_lang" does not exist.'10$this->source); })()) == "en")) {
  67.             // line 11
  68.             echo "        ";
  69.             $context["prefix_language"] = "/en/";
  70.             // line 12
  71.             echo "    ";
  72.         } else {
  73.             // line 13
  74.             echo "        ";
  75.             $context["prefix_language"] = "/";
  76.             // line 14
  77.             echo "    ";
  78.         }
  79.         // line 15
  80.         echo "
  81. <div class=\"container login-choice mt-5 pt-5\">
  82.     <div class=\"mb-5 d-flex flex-md-row flex-column justify-content-between\">
  83.         <div class=\"left-col mb-4 mb-md-0 border\">
  84.             <h2>";
  85.         // line 19
  86.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ACCEDI"), "html"nulltrue);
  87.         echo "</h2>
  88.             ";
  89.         // line 20
  90.         if ((isset($context["error"]) || array_key_exists("error"$context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.'20$this->source); })())) {
  91.             // line 21
  92.             echo "                <div class=\"alert alert-danger\">
  93.                     ";
  94.             // line 22
  95.             echo twig_escape_filter($this->envtwig_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.'22$this->source); })()), "getMessage", [], "method"falsefalsefalse22), "html"nulltrue);
  96.             echo "
  97.                 </div>
  98.             ";
  99.         }
  100.         // line 24
  101.         echo "             
  102.             ";
  103.         // line 25
  104.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'25$this->source); })()), 'form_start');
  105.         echo "       
  106.                 <div class=\"form-row mx-0\">
  107.                     <label for=\"email\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Email</label>                   
  108.                     ";
  109.         // line 28
  110.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'28$this->source); })()), "_username", [], "any"falsefalsefalse28), 'widget', ["attr" => ["placeholder" => "Username""class" => "form-control col-sm-10""required" => "required"]]);
  111.         echo "                            
  112.                 </div>
  113.                 <div class=\"form-row mx-0\">
  114.                     <label for=\"password\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Password</label>
  115.                     ";
  116.         // line 32
  117.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'32$this->source); })()), "_password", [], "any"falsefalsefalse32), 'widget', ["attr" => ["placeholder" => "Password""class" => "form-control col-sm-10""required" => "required"]]);
  118.         echo "
  119.                 </div>
  120.                 <div class=\"form-row justify-content-between\" style=\"font-size:15px\">
  121.                     <div class=\"offset-sm-2\"><input type=\"checkbox\"><span class=\"pl-2\">";
  122.         // line 35
  123.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ricordami"), "html"nulltrue);
  124.         echo "</span></div>
  125.                     <div><a href=\"/account/send-password-recovery\" class=\"black\" style=\"text-decoration:underscore;\">";
  126.         // line 36
  127.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password dimenticata?"), "html"nulltrue);
  128.         echo "</a></div>
  129.                 </div>
  130.                 <div class=\"form-row mx-0 justify-content-end mt-2\">
  131.                                 <input type=\"hidden\" name=\"_csrf_token\"
  132.                        value=\"";
  133.         // line 40
  134.         echo twig_escape_filter($this->env$this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html"nulltrue);
  135.         echo "\"
  136.                 >
  137.             
  138.                 ";
  139.         // line 43
  140.         echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env$this->source, (isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'43$this->source); })()), "_submit", [], "any"falsefalsefalse43), 'row', ["attr" => ["class" => "btn c-button yellow"], "label" => "ACCEDI"]);
  141.         echo 
  142.                 </div>
  143.         ";
  144.         // line 45
  145.         echo         $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock((isset($context["form"]) || array_key_exists("form"$context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.'45$this->source); })()), 'form_end');
  146.         echo "
  147.         </div>
  148.         <div class=\"right-col mt-2 mt-md-0 border\">
  149.             <h2>";
  150.         // line 49
  151.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("REGISTRATI"), "html"nulltrue);
  152.         echo "</h2>
  153.             <p>";
  154.         // line 50
  155.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Se non hai ancora un account Mecstore registrati qui per ricevere i tuoi dati d'accesso e poter richiedere un preventivo."), "html"nulltrue);
  156.         echo "</p>
  157.             <button class=\"btn c-button yellow mt-2\" onclick=\"window.location='";
  158.         // line 51
  159.         echo twig_escape_filter($this->env, (isset($context["prefix_language"]) || array_key_exists("prefix_language"$context) ? $context["prefix_language"] : (function () { throw new RuntimeError('Variable "prefix_language" does not exist.'51$this->source); })()), "html"nulltrue);
  160.         echo "b2c/account/register'\">";
  161.         echo twig_escape_filter($this->env$this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CREA UN NUOVO ACCOUNT"), "html"nulltrue);
  162.         echo "</button>
  163.         </div>
  164.     </div>
  165. </div>
  166. ";
  167.         
  168.         $__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
  169.         
  170.         $__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
  171.         
  172.         $__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
  173.     }
  174.     public function getTemplateName()
  175.     {
  176.         return "account/b2c_login.html.twig";
  177.     }
  178.     public function isTraitable()
  179.     {
  180.         return false;
  181.     }
  182.     public function getDebugInfo()
  183.     {
  184.         return array (  177 => 51,  173 => 50,  169 => 49,  162 => 45,  157 => 43,  151 => 40,  144 => 36,  140 => 35,  134 => 32,  127 => 28,  121 => 25,  118 => 24,  112 => 22,  109 => 21,  107 => 20,  103 => 19,  97 => 15,  94 => 14,  91 => 13,  88 => 12,  85 => 11,  82 => 10,  80 => 9,  77 => 8,  64 => 7,  35 => 5,);
  185.     }
  186.     public function getSourceContext()
  187.     {
  188.         return new Source("{# @var this \\Pimcore\\Templating\\PhpEngine #}
  189. {# @var view \\Pimcore\\Templating\\PhpEngine #}
  190. {# @var app \\Pimcore\\Templating\\GlobalVariables #}
  191. {# @var \$this->product \\AppBundle\\Model\\DefaultProduct #}
  192. {% extends 'layouts/layout_b2c.html.twig' %}
  193. {% block content %}
  194.     {% set mecstore_lang = app.request.locale %}
  195.     {% if mecstore_lang == 'en'%}
  196.         {% set prefix_language = '/en/' %}
  197.     {% else %}
  198.         {% set prefix_language = '/' %}
  199.     {% endif %}
  200. <div class=\"container login-choice mt-5 pt-5\">
  201.     <div class=\"mb-5 d-flex flex-md-row flex-column justify-content-between\">
  202.         <div class=\"left-col mb-4 mb-md-0 border\">
  203.             <h2>{{ 'ACCEDI'|trans }}</h2>
  204.             {% if error %}
  205.                 <div class=\"alert alert-danger\">
  206.                     {{ error.getMessage() }}
  207.                 </div>
  208.             {% endif %}             
  209.             {{ form_start(form) }}       
  210.                 <div class=\"form-row mx-0\">
  211.                     <label for=\"email\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Email</label>                   
  212.                     {{ form_widget(form._username, { 'attr': {'placeholder': 'Username','class':'form-control col-sm-10','required':'required'}}) }}                            
  213.                 </div>
  214.                 <div class=\"form-row mx-0\">
  215.                     <label for=\"password\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Password</label>
  216.                     {{ form_widget(form._password, { 'attr': {'placeholder': 'Password','class':'form-control col-sm-10','required':'required'}}) }}
  217.                 </div>
  218.                 <div class=\"form-row justify-content-between\" style=\"font-size:15px\">
  219.                     <div class=\"offset-sm-2\"><input type=\"checkbox\"><span class=\"pl-2\">{{ 'Ricordami'|trans }}</span></div>
  220.                     <div><a href=\"/account/send-password-recovery\" class=\"black\" style=\"text-decoration:underscore;\">{{ 'Password dimenticata?'|trans }}</a></div>
  221.                 </div>
  222.                 <div class=\"form-row mx-0 justify-content-end mt-2\">
  223.                                 <input type=\"hidden\" name=\"_csrf_token\"
  224.                        value=\"{{ csrf_token('authenticate') }}\"
  225.                 >
  226.             
  227.                 {{ form_row(form._submit, {'attr': {'class': 'btn c-button yellow'},'label': 'ACCEDI'}) }} 
  228.                 </div>
  229.         {{ form_end(form) }}
  230.         </div>
  231.         <div class=\"right-col mt-2 mt-md-0 border\">
  232.             <h2>{{ 'REGISTRATI'|trans }}</h2>
  233.             <p>{{ \"Se non hai ancora un account Mecstore registrati qui per ricevere i tuoi dati d'accesso e poter richiedere un preventivo.\"|trans }}</p>
  234.             <button class=\"btn c-button yellow mt-2\" onclick=\"window.location='{{ prefix_language }}b2c/account/register'\">{{ 'CREA UN NUOVO ACCOUNT'|trans }}</button>
  235.         </div>
  236.     </div>
  237. </div>
  238. {% endblock %}
  239. ""account/b2c_login.html.twig""/home/ubuntu/mecstore/website/templates/account/b2c_login.html.twig");
  240.     }
  241. }