<?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/register.html.twig */
class __TwigTemplate_0fcfbd64e1dda6f55e1b4720404fb46a extends Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->blocks = [
'content' => [$this, 'block_content'],
];
$this->sandbox = $this->env->getExtension('\Twig\Extension\SandboxExtension');
$this->checkSecurity();
}
protected function doGetParent(array $context)
{
// line 1
return "signin.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", "Account/register.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "Account/register.html.twig"));
$this->parent = $this->loadTemplate("signin.html.twig", "Account/register.html.twig", 1);
$this->parent->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 2
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 3
twig_get_attribute($this->env, $this->source, $this->env->getFunction('pimcore_head_link')->getCallable()(), "appendStylesheet", [$this->extensions['Symfony\Bridge\Twig\Extension\AssetExtension']->getAssetUrl("website/static/css/shop-homepage.css")], "method", false, false, true, 3);
// line 4
if ( !(isset($context["loggedin"]) || array_key_exists("loggedin", $context) ? $context["loggedin"] : (function () { throw new RuntimeError('Variable "loggedin" does not exist.', 4, $this->source); })())) {
// line 5
echo "<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
<script>
\tfunction onSubmit(token) {
\t\tdocument.getElementById(\"register-form\").submit();
\t}
</script>
<div class=\"container\">
\t<a href=\"/";
// line 12
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 12, $this->source); })()), 12, $this->source), "html", null, true);
echo "\"><img class=\"signin-logo\" src=\"/SA_logo_inst_Positive_RGB.png\" width=\"282\" alt=\"image description\"></a>
<div class=\"item-container login-form-wrapper register-form-wrapper\">
\t \t<div class=\"row form-container\">
\t \t\t<div class=\"form-info\">
\t \t\t\t<h1> ";
// line 16
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "headline");
echo "</h1>
\t\t\t\t<h2><em>";
// line 17
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "subline");
echo "</em></h2>
\t \t\t</div>
\t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">";
// line 19
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["errormessage"]) || array_key_exists("errormessage", $context) ? $context["errormessage"] : (function () { throw new RuntimeError('Variable "errormessage" does not exist.', 19, $this->source); })()), 19, $this->source), "html", null, true);
echo "</span></p>
\t\t\t<form id=\"register-form\" class=\"cart-form\" action=\"/";
// line 20
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["locale"]) || array_key_exists("locale", $context) ? $context["locale"] : (function () { throw new RuntimeError('Variable "locale" does not exist.', 20, $this->source); })()), 20, $this->source), "html", null, true);
echo "/account/register\" method=\"post\">
\t\t<label class=\"required\"><h4>";
// line 21
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.firstname"), "html", null, true);
echo "</h4>
\t\t\t\t \t<input type=\"text\" value=\"";
// line 22
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["firstname"]) || array_key_exists("firstname", $context) ? $context["firstname"] : (function () { throw new RuntimeError('Variable "firstname" does not exist.', 22, $this->source); })()), 22, $this->source), "html", null, true);
echo "\" name=\"firstname\" placeholder=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.firstname"), "html", null, true);
echo "\" required>
\t\t\t\t</label>
\t\t<label class=\"required\"><h4>";
// line 24
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.lastname"), "html", null, true);
echo "</h4>
\t\t\t\t \t<input type=\"text\" value=\"";
// line 25
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["lastname"]) || array_key_exists("lastname", $context) ? $context["lastname"] : (function () { throw new RuntimeError('Variable "lastname" does not exist.', 25, $this->source); })()), 25, $this->source), "html", null, true);
echo "\" name=\"lastname\" placeholder=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.lastname"), "html", null, true);
echo "\" required>
\t\t\t\t</label>
\t\t\t\t<label class=\"required\"><h4>";
// line 27
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.email"), "html", null, true);
echo "</h4>
\t\t\t\t \t<input type=\"email\" value=\"";
// line 28
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["email"]) || array_key_exists("email", $context) ? $context["email"] : (function () { throw new RuntimeError('Variable "email" does not exist.', 28, $this->source); })()), 28, $this->source), "html", null, true);
echo "\" name=\"email\" placeholder=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.email"), "html", null, true);
echo "\" required>
\t\t\t\t \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
\t\t";
// line 30
if (((isset($context["errorfield"]) || array_key_exists("errorfield", $context) ? $context["errorfield"] : (function () { throw new RuntimeError('Variable "errorfield" does not exist.', 30, $this->source); })()) == "email")) {
echo "<span class=\"error-icon\">⚠</span>";
}
// line 31
echo "\t\t\t\t</label>
\t\t<div class=\"spacer\"></div>
\t\t\t\t<label class=\"required\"><h4>";
// line 33
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.country"), "html", null, true);
echo "</h4>
\t\t\t\t\t<select name=\"country\" required>
\t\t\t\t\t\t";
// line 35
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable((isset($context["countries"]) || array_key_exists("countries", $context) ? $context["countries"] : (function () { throw new RuntimeError('Variable "countries" does not exist.', 35, $this->source); })()));
foreach ($context['_seq'] as $context["_key"] => $context["country"]) {
// line 36
echo "\t\t\t\t\t\t\t<option data-image=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["country"], "Icon", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
echo "\" value=\"";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["country"], "Value", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
echo "\" ";
if (twig_get_attribute($this->env, $this->source, $context["country"], "Selected", [], "any", true, true, true, 36)) {
echo " ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["country"], "Selected", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
echo " ";
}
echo "> ";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["country"], "Name", [], "any", false, false, true, 36), 36, $this->source), "html", null, true);
echo "</option>
\t\t\t\t\t\t";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['country'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 38
echo "\t\t\t\t\t</select>
\t\t\t\t</label>
\t\t\t\t<label class=\"required\"><h4>";
// line 40
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.company"), "html", null, true);
echo "</h4>
\t\t\t\t\t<input type=\"text\" value=\"";
// line 41
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed((isset($context["company"]) || array_key_exists("company", $context) ? $context["company"] : (function () { throw new RuntimeError('Variable "company" does not exist.', 41, $this->source); })()), 41, $this->source), "html", null, true);
echo "\" name=\"company\" placeholder=\"";
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.company"), "html", null, true);
echo "\" required>
\t\t\t\t\t";
// line 42
if (((isset($context["errorfield"]) || array_key_exists("errorfield", $context) ? $context["errorfield"] : (function () { throw new RuntimeError('Variable "errorfield" does not exist.', 42, $this->source); })()) == "companyName")) {
echo "<span class=\"error-icon\">⚠</span>";
}
// line 43
echo "\t\t\t\t</label>
\t\t<div class=\"spacer\"></div>
\t\t\t\t<label class=\"required\"><h4>";
// line 46
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.createpassword"), "html", null, true);
echo "</h4>
\t\t\t<div class=\"input-info\">";
// line 47
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.passwordrequirements"), "html", null, true);
echo "</div>
\t\t\t\t \t<input type=\"password\" name=\"createpassword\" placeholder=\"";
// line 48
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.createpassword"), "html", null, true);
echo "\" required>
\t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
\t\t\t";
// line 50
if (((isset($context["errorfield"]) || array_key_exists("errorfield", $context) ? $context["errorfield"] : (function () { throw new RuntimeError('Variable "errorfield" does not exist.', 50, $this->source); })()) == "password")) {
echo "<span class=\"error-icon\">⚠</span>";
}
// line 51
echo "\t\t\t\t</label>
\t\t\t\t<label class=\"required\"><h4>";
// line 52
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.verifypassword"), "html", null, true);
echo "</h4>
\t\t\t\t \t<input type=\"password\" name=\"verifypassword\" placeholder=\"";
// line 53
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("espirits.login.verifypassword"), "html", null, true);
echo "\" required>
\t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
\t\t\t\t</label>
\t\t\t\t<!--button name=\"continue\" class=\"btn g-recaptcha\" data-sitekey=\"6LcXqEQUAAAAABGksCu-WbBmhQgDdhtwOSnftsOS\" data-callback='onSubmit'>";
// line 56
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "register");
echo "</button-->
\t\t\t\t<button name=\"continue\" class=\"btn \" data-callback='onSubmit'>";
// line 57
echo $this->extensions['Pimcore\Twig\Extension\DocumentEditableExtension']->renderEditable($context, "input", "register");
echo "</button>
\t\t\t\t
\t\t\t</form>
\t \t</div>
\t</div>
</div>
";
}
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
/**
* @codeCoverageIgnore
*/
public function getTemplateName()
{
return "Account/register.html.twig";
}
/**
* @codeCoverageIgnore
*/
public function isTraitable()
{
return false;
}
/**
* @codeCoverageIgnore
*/
public function getDebugInfo()
{
return array ( 233 => 57, 229 => 56, 223 => 53, 219 => 52, 216 => 51, 212 => 50, 207 => 48, 203 => 47, 199 => 46, 194 => 43, 190 => 42, 184 => 41, 180 => 40, 176 => 38, 157 => 36, 153 => 35, 148 => 33, 144 => 31, 140 => 30, 133 => 28, 129 => 27, 122 => 25, 118 => 24, 111 => 22, 107 => 21, 103 => 20, 99 => 19, 94 => 17, 90 => 16, 83 => 12, 74 => 5, 72 => 4, 70 => 3, 60 => 2, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends 'signin.html.twig' %}
{% block content %}
{% do pimcore_head_link().appendStylesheet(asset('website/static/css/shop-homepage.css')) %}
{% if not loggedin %}
<script src=\"https://www.google.com/recaptcha/api.js\" async defer></script>
<script>
\tfunction onSubmit(token) {
\t\tdocument.getElementById(\"register-form\").submit();
\t}
</script>
<div class=\"container\">
\t<a href=\"/{{ locale }}\"><img class=\"signin-logo\" src=\"/SA_logo_inst_Positive_RGB.png\" width=\"282\" alt=\"image description\"></a>
<div class=\"item-container login-form-wrapper register-form-wrapper\">
\t \t<div class=\"row form-container\">
\t \t\t<div class=\"form-info\">
\t \t\t\t<h1> {{ pimcore_input(\"headline\") }}</h1>
\t\t\t\t<h2><em>{{ pimcore_input('subline') }}</em></h2>
\t \t\t</div>
\t\t\t<p class=\"error-message-wrapper\"><span class=\"error-message\">{{ errormessage }}</span></p>
\t\t\t<form id=\"register-form\" class=\"cart-form\" action=\"/{{ locale }}/account/register\" method=\"post\">
\t\t<label class=\"required\"><h4>{{ \"espirits.login.firstname\"|trans }}</h4>
\t\t\t\t \t<input type=\"text\" value=\"{{ firstname }}\" name=\"firstname\" placeholder=\"{{ \"espirits.login.firstname\"|trans }}\" required>
\t\t\t\t</label>
\t\t<label class=\"required\"><h4>{{ \"espirits.login.lastname\"|trans }}</h4>
\t\t\t\t \t<input type=\"text\" value=\"{{ lastname }}\" name=\"lastname\" placeholder=\"{{ \"espirits.login.lastname\"|trans }}\" required>
\t\t\t\t</label>
\t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.email\"|trans }}</h4>
\t\t\t\t \t<input type=\"email\" value=\"{{ email }}\" name=\"email\" placeholder=\"{{ \"espirits.login.email\"|trans }}\" required>
\t\t\t\t \t<img class=\"email-icon icon\" src=\"/website/static/images/email-icon.svg\" />
\t\t{% if errorfield == 'email' %}<span class=\"error-icon\">⚠</span>{% endif %}
\t\t\t\t</label>
\t\t<div class=\"spacer\"></div>
\t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.country\"|trans }}</h4>
\t\t\t\t\t<select name=\"country\" required>
\t\t\t\t\t\t{% for country in countries %}
\t\t\t\t\t\t\t<option data-image=\"{{ country.Icon }}\" value=\"{{ country.Value }}\" {% if country.Selected is defined %} {{ country.Selected }} {% endif %}> {{ country.Name }}</option>
\t\t\t\t\t\t{% endfor %}
\t\t\t\t\t</select>
\t\t\t\t</label>
\t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.company\"|trans }}</h4>
\t\t\t\t\t<input type=\"text\" value=\"{{ company }}\" name=\"company\" placeholder=\"{{ \"espirits.login.company\"|trans }}\" required>
\t\t\t\t\t{% if errorfield == 'companyName' %}<span class=\"error-icon\">⚠</span>{% endif %}
\t\t\t\t</label>
\t\t<div class=\"spacer\"></div>
\t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.createpassword\"|trans }}</h4>
\t\t\t<div class=\"input-info\">{{ \"espirits.login.passwordrequirements\"|trans }}</div>
\t\t\t\t \t<input type=\"password\" name=\"createpassword\" placeholder=\"{{ \"espirits.login.createpassword\"|trans }}\" required>
\t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
\t\t\t{% if errorfield == 'password' %}<span class=\"error-icon\">⚠</span>{% endif %}
\t\t\t\t</label>
\t\t\t\t<label class=\"required\"><h4>{{ \"espirits.login.verifypassword\"|trans }}</h4>
\t\t\t\t \t<input type=\"password\" name=\"verifypassword\" placeholder=\"{{ \"espirits.login.verifypassword\"|trans }}\" required>
\t\t\t\t \t<img class=\"lock-icon icon\" src=\"/website/static/images/lock-icon.svg\" />
\t\t\t\t</label>
\t\t\t\t<!--button name=\"continue\" class=\"btn g-recaptcha\" data-sitekey=\"6LcXqEQUAAAAABGksCu-WbBmhQgDdhtwOSnftsOS\" data-callback='onSubmit'>{{ pimcore_input(\"register\") }}</button-->
\t\t\t\t<button name=\"continue\" class=\"btn \" data-callback='onSubmit'>{{ pimcore_input(\"register\") }}</button>
\t\t\t\t
\t\t\t</form>
\t \t</div>
\t</div>
</div>
{% endif %}
{% endblock %}", "Account/register.html.twig", "/var/www/vhosts/centricdxb.com/pim2.centricdxb.com/templates/Account/register.html.twig");
}
public function checkSecurity()
{
static $tags = array("do" => 3, "if" => 4, "for" => 35);
static $filters = array("escape" => 12, "trans" => 21);
static $functions = array("pimcore_head_link" => 3, "asset" => 3, "pimcore_input" => 16);
try {
$this->sandbox->checkSecurity(
['do', 'if', 'for'],
['escape', 'trans'],
['pimcore_head_link', 'asset', 'pimcore_input']
);
} catch (SecurityError $e) {
$e->setSourceContext($this->source);
if ($e instanceof SecurityNotAllowedTagError && isset($tags[$e->getTagName()])) {
$e->setTemplateLine($tags[$e->getTagName()]);
} elseif ($e instanceof SecurityNotAllowedFilterError && isset($filters[$e->getFilterName()])) {
$e->setTemplateLine($filters[$e->getFilterName()]);
} elseif ($e instanceof SecurityNotAllowedFunctionError && isset($functions[$e->getFunctionName()])) {
$e->setTemplateLine($functions[$e->getFunctionName()]);
}
throw $e;
}
}
}