<?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;
/* CoreBundle:Account:login.html.twig */
class __TwigTemplate_22bbf6dc766fa9a5903041961d7c24663d45e656968b6d934a2fb9fd1890b4a2 extends \Twig\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 1
return "pageTemplateDefault.html.twig";
}
protected function doDisplay(array $context, array $blocks = [])
{
$macros = $this->macros;
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e = $this->extensions["Symfony\\Bundle\\WebProfilerBundle\\Twig\\WebProfilerExtension"];
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->enter($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "CoreBundle:Account: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", "CoreBundle:Account:login.html.twig"));
$this->parent = $this->loadTemplate("pageTemplateDefault.html.twig", "CoreBundle:Account:login.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 2
public function block_content($context, array $blocks = [])
{
$macros = $this->macros;
$__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 3
echo " <div class=\"background\">
<div class=\"main-content flex-col offset-top\">
<div class=\"col xs-12\">
";
// line 6
if ((isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 6, $this->source); })())) {
// line 7
echo " <div class=\"message-wrapper\">
<div class=\"message error\">
";
// line 9
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("account.login.error"), "html", null, true);
echo "
</div>
</div>
";
}
// line 13
echo " </div>
<div class=\"col xs-12 m-6\">
<div class=\"customer-account-card login-container\">
<div class=\"card-head\">
<h2>";
// line 17
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 17, $this->source); })()) . ".customerRegistration.registeredCustomer.headline"))), "html", null, true);
echo "</h2>
</div>
";
// line 19
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.', 19, $this->source); })()), "user", [], "any", false, false, false, 19)) {
// line 20
echo " <p>test</p>
";
// line 21
echo twig_escape_filter($this->env, 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.', 21, $this->source); })()), "user", [], "any", false, false, false, 21), "secret", [], "any", false, false, false, 21), "html", null, true);
echo "
";
}
// line 23
echo "
<div class=\"card-content\">
<div class=\"card-content-text\">
";
// line 26
if (((isset($context["reset"]) || array_key_exists("reset", $context)) && (isset($context["reset"]) || array_key_exists("reset", $context) ? $context["reset"] : (function () { throw new RuntimeError('Variable "reset" does not exist.', 26, $this->source); })()))) {
// line 27
echo " ";
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 27, $this->source); })()) . ".customerRegistration.passwordResetPage.mailSendText"))), "html", null, true);
echo "
";
} elseif (( // line 28
(isset($context["success"]) || array_key_exists("success", $context)) && (isset($context["success"]) || array_key_exists("success", $context) ? $context["success"] : (function () { throw new RuntimeError('Variable "success" does not exist.', 28, $this->source); })()))) {
// line 29
echo " ";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("passwordResetSuccessfully"), "html", null, true);
echo "
";
} else {
// line 31
echo " ";
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 31, $this->source); })()) . ".customerRegistration.registeredCustomer.contentText"))), "html", null, true);
echo "
";
}
// line 33
echo " </div>
<div class=\"card-content-form\">
";
// line 35
echo $this->extensions['Pimcore\Twig\Extension\DocumentTagExtension']->renderTag($context, "input", "LoginFormText");
echo "
";
// line 36
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.', 36, $this->source); })()), 'form_start');
echo "
<div class=\"form-field\">
";
// line 38
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.', 38, $this->source); })()), "_username", [], "any", false, false, false, 38), 'label');
echo "
";
// line 39
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.', 39, $this->source); })()), "_username", [], "any", false, false, false, 39), 'widget');
echo "
</div>
<div class=\"form-field\">
";
// line 42
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.', 42, $this->source); })()), "_password", [], "any", false, false, false, 42), 'label');
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); })()), "_password", [], "any", false, false, false, 43), 'widget');
echo "
</div>
<div class=\"button-row\">
<div class=\"button-wrapper\">
";
// line 47
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.', 47, $this->source); })()), "submit", [], "any", false, false, false, 47), 'row', ["label" => $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("login")]);
echo "
</div>
<div class=\"link-wrapper\">
<a href=\"";
// line 50
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()([], "requestPasswordReset"), "html", null, true);
echo "\">
";
// line 51
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 51, $this->source); })()) . ".customerRegistration.password.reset.link")), "html", null, true);
echo "
</a>
</div>
</div>
";
// line 55
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.', 55, $this->source); })()), 'form_end');
echo "
</div>
</div>
</div>
</div>
<div class=\"col xs-12 m-6\">
<div class=\"customer-account-card register-container\">
<div class=\"card-head\">
<h2>
";
// line 64
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 64, $this->source); })()) . ".customerRegistration.newCustomer.headline"))), "html", null, true);
echo "
</h2>
</div>
<div class=\"card-content\">
<div class=\"card-content-text\">
";
// line 69
echo twig_escape_filter($this->env, $this->extensions['CoreBundle\Twig\Extension\AppExtension']->replaceTradeMarkIcon($this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 69, $this->source); })()) . ".customerRegistration.newCustomer.contentText"))), "html", null, true);
echo "
</div>
<a class=\"button btn-default\" href=\"";
// line 71
echo twig_escape_filter($this->env, $this->env->getFunction('pimcore_url')->getCallable()([], "register"), "html", null, true);
echo "\">
";
// line 72
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans(((isset($context["bundleName"]) || array_key_exists("bundleName", $context) ? $context["bundleName"] : (function () { throw new RuntimeError('Variable "bundleName" does not exist.', 72, $this->source); })()) . ".customerRegistration.register")), "html", null, true);
echo "
</a>
</div>
</div>
</div>
</div>
</div>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "CoreBundle:Account:login.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 213 => 72, 209 => 71, 204 => 69, 196 => 64, 184 => 55, 177 => 51, 173 => 50, 167 => 47, 160 => 43, 156 => 42, 150 => 39, 146 => 38, 141 => 36, 137 => 35, 133 => 33, 127 => 31, 121 => 29, 119 => 28, 114 => 27, 112 => 26, 107 => 23, 102 => 21, 99 => 20, 97 => 19, 92 => 17, 86 => 13, 79 => 9, 75 => 7, 73 => 6, 68 => 3, 58 => 2, 35 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'pageTemplateDefault.html.twig' %}
{% block content %}
<div class=\"background\">
<div class=\"main-content flex-col offset-top\">
<div class=\"col xs-12\">
{% if error %}
<div class=\"message-wrapper\">
<div class=\"message error\">
{{ \"account.login.error\"|trans }}
</div>
</div>
{% endif %}
</div>
<div class=\"col xs-12 m-6\">
<div class=\"customer-account-card login-container\">
<div class=\"card-head\">
<h2>{{ ((bundleName ~'.customerRegistration.registeredCustomer.headline') |trans) |trademark }}</h2>
</div>
{% if app.user %}
<p>test</p>
{{ app.user.secret }}
{% endif %}
<div class=\"card-content\">
<div class=\"card-content-text\">
{% if reset is defined and reset %}
{{ ((bundleName ~'.customerRegistration.passwordResetPage.mailSendText') |trans) |trademark }}
{% elseif success is defined and success %}
{{ 'passwordResetSuccessfully' |trans }}
{% else %}
{{ ((bundleName ~'.customerRegistration.registeredCustomer.contentText') |trans) |trademark }}
{% endif %}
</div>
<div class=\"card-content-form\">
{{ pimcore_input(\"LoginFormText\") }}
{{ form_start(form) }}
<div class=\"form-field\">
{{ form_label(form._username) }}
{{ form_widget(form._username) }}
</div>
<div class=\"form-field\">
{{ form_label(form._password) }}
{{ form_widget(form._password) }}
</div>
<div class=\"button-row\">
<div class=\"button-wrapper\">
{{ form_row(form.submit, { 'label': 'login' |trans }) }}
</div>
<div class=\"link-wrapper\">
<a href=\"{{ pimcore_url({},\"requestPasswordReset\") }}\">
{{ (bundleName~'.customerRegistration.password.reset.link') |trans }}
</a>
</div>
</div>
{{ form_end(form) }}
</div>
</div>
</div>
</div>
<div class=\"col xs-12 m-6\">
<div class=\"customer-account-card register-container\">
<div class=\"card-head\">
<h2>
{{ ((bundleName ~'.customerRegistration.newCustomer.headline') |trans) |trademark }}
</h2>
</div>
<div class=\"card-content\">
<div class=\"card-content-text\">
{{ ((bundleName ~'.customerRegistration.newCustomer.contentText') |trans) |trademark }}
</div>
<a class=\"button btn-default\" href=\"{{ pimcore_url({},\"register\") }}\">
{{ ((bundleName ~'.customerRegistration.register') |trans) }}
</a>
</div>
</div>
</div>
</div>
</div>
{% endblock %}
", "CoreBundle:Account:login.html.twig", "/var/www/share/test.develey/src/CoreBundle/Resources/views/Account/login.html.twig");
}
}