<?php
use Twig\Environment;
use Twig\Error\LoaderError;
use Twig\Error\RuntimeError;
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;
/* account/b2c_login.html.twig */
class __TwigTemplate_4b5840295c824c2e71edf8f3466065b5cf2d00f3e1e5f8de2a35939f3ae4aef9 extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
}
protected function doGetParent(array $context)
{
// line 5
return "layouts/layout_b2c.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "account/b2c_login.html.twig"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "account/b2c_login.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "account/b2c_login.html.twig"));
$this->parent = $this->loadTemplate("layouts/layout_b2c.html.twig", "account/b2c_login.html.twig", 5);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 7
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d = $this->extensions["Sentry\\SentryBundle\\Tracing\\Twig\\TwigTracingExtension"];
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->enter($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "content"));
// line 8
echo "
";
// line 9
$context["mecstore_lang"] = twig_get_attribute($this->env, $this->source, 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.', 9, $this->source); })()), "request", [], "any", false, false, false, 9), "locale", [], "any", false, false, false, 9);
// line 10
echo " ";
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")) {
// line 11
echo " ";
$context["prefix_language"] = "/en/";
// line 12
echo " ";
} else {
// line 13
echo " ";
$context["prefix_language"] = "/";
// line 14
echo " ";
}
// line 15
echo "
<div class=\"container login-choice mt-5 pt-5\">
<div class=\"mb-5 d-flex flex-md-row flex-column justify-content-between\">
<div class=\"left-col mb-4 mb-md-0 border\">
<h2>";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("ACCEDI"), "html", null, true);
echo "</h2>
";
// line 20
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 20, $this->source); })())) {
// line 21
echo " <div class=\"alert alert-danger\">
";
// line 22
echo twig_escape_filter($this->env, 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.', 22, $this->source); })()), "getMessage", [], "method", false, false, false, 22), "html", null, true);
echo "
</div>
";
}
// line 24
echo "
";
// line 25
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');
echo "
<div class=\"form-row mx-0\">
<label for=\"email\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Email</label>
";
// line 28
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", false, false, false, 28), 'widget', ["attr" => ["placeholder" => "Username", "class" => "form-control col-sm-10", "required" => "required"]]);
echo "
</div>
<div class=\"form-row mx-0\">
<label for=\"password\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Password</label>
";
// line 32
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", false, false, false, 32), 'widget', ["attr" => ["placeholder" => "Password", "class" => "form-control col-sm-10", "required" => "required"]]);
echo "
</div>
<div class=\"form-row justify-content-between\" style=\"font-size:15px\">
<div class=\"offset-sm-2\"><input type=\"checkbox\"><span class=\"pl-2\">";
// line 35
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Ricordami"), "html", null, true);
echo "</span></div>
<div><a href=\"/account/send-password-recovery\" class=\"black\" style=\"text-decoration:underscore;\">";
// line 36
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Password dimenticata?"), "html", null, true);
echo "</a></div>
</div>
<div class=\"form-row mx-0 justify-content-end mt-2\">
<input type=\"hidden\" name=\"_csrf_token\"
value=\"";
// line 40
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderCsrfToken("authenticate"), "html", null, true);
echo "\"
>
";
// line 43
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", false, false, false, 43), 'row', ["attr" => ["class" => "btn c-button yellow"], "label" => "ACCEDI"]);
echo "
</div>
";
// line 45
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');
echo "
</div>
<div class=\"right-col mt-2 mt-md-0 border\">
<h2>";
// line 49
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("REGISTRATI"), "html", null, true);
echo "</h2>
<p>";
// line 50
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", null, true);
echo "</p>
<button class=\"btn c-button yellow mt-2\" onclick=\"window.location='";
// line 51
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", null, true);
echo "b2c/account/register'\">";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("CREA UN NUOVO ACCOUNT"), "html", null, true);
echo "</button>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d->leave($__internal_17fc5a9d7f60dc995440a5a315cc27cefd5208dd5c9d418ecd10c2a16ddca18d_prof);
}
public function getTemplateName()
{
return "account/b2c_login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
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,);
}
public function getSourceContext()
{
return new Source("{# @var this \\Pimcore\\Templating\\PhpEngine #}
{# @var view \\Pimcore\\Templating\\PhpEngine #}
{# @var app \\Pimcore\\Templating\\GlobalVariables #}
{# @var \$this->product \\AppBundle\\Model\\DefaultProduct #}
{% extends 'layouts/layout_b2c.html.twig' %}
{% block content %}
{% set mecstore_lang = app.request.locale %}
{% if mecstore_lang == 'en'%}
{% set prefix_language = '/en/' %}
{% else %}
{% set prefix_language = '/' %}
{% endif %}
<div class=\"container login-choice mt-5 pt-5\">
<div class=\"mb-5 d-flex flex-md-row flex-column justify-content-between\">
<div class=\"left-col mb-4 mb-md-0 border\">
<h2>{{ 'ACCEDI'|trans }}</h2>
{% if error %}
<div class=\"alert alert-danger\">
{{ error.getMessage() }}
</div>
{% endif %}
{{ form_start(form) }}
<div class=\"form-row mx-0\">
<label for=\"email\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Email</label>
{{ form_widget(form._username, { 'attr': {'placeholder': 'Username','class':'form-control col-sm-10','required':'required'}}) }}
</div>
<div class=\"form-row mx-0\">
<label for=\"password\" class=\"col-sm-2 p-0 pr-5\" style=\"font-size:15px;\">Password</label>
{{ form_widget(form._password, { 'attr': {'placeholder': 'Password','class':'form-control col-sm-10','required':'required'}}) }}
</div>
<div class=\"form-row justify-content-between\" style=\"font-size:15px\">
<div class=\"offset-sm-2\"><input type=\"checkbox\"><span class=\"pl-2\">{{ 'Ricordami'|trans }}</span></div>
<div><a href=\"/account/send-password-recovery\" class=\"black\" style=\"text-decoration:underscore;\">{{ 'Password dimenticata?'|trans }}</a></div>
</div>
<div class=\"form-row mx-0 justify-content-end mt-2\">
<input type=\"hidden\" name=\"_csrf_token\"
value=\"{{ csrf_token('authenticate') }}\"
>
{{ form_row(form._submit, {'attr': {'class': 'btn c-button yellow'},'label': 'ACCEDI'}) }}
</div>
{{ form_end(form) }}
</div>
<div class=\"right-col mt-2 mt-md-0 border\">
<h2>{{ 'REGISTRATI'|trans }}</h2>
<p>{{ \"Se non hai ancora un account Mecstore registrati qui per ricevere i tuoi dati d'accesso e poter richiedere un preventivo.\"|trans }}</p>
<button class=\"btn c-button yellow mt-2\" onclick=\"window.location='{{ prefix_language }}b2c/account/register'\">{{ 'CREA UN NUOVO ACCOUNT'|trans }}</button>
</div>
</div>
</div>
{% endblock %}
", "account/b2c_login.html.twig", "/home/ubuntu/mecstore/website/templates/account/b2c_login.html.twig");
}
}