<?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;
/* @FOSUser/Registration/register_content.html.twig */
class __TwigTemplate_646256bbe57d70b0cd16dd5a437a570e1d27005c241dae59c4256753ef15a4ac extends \Twig\Template
{
private $source;
private $macros = [];
public function __construct(Environment $env)
{
parent::__construct($env);
$this->source = $this->getSourceContext();
$this->parent = false;
$this->blocks = [
'javascripts' => [$this, 'block_javascripts'],
];
}
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", "@FOSUser/Registration/register_content.html.twig"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "@FOSUser/Registration/register_content.html.twig"));
// line 3
echo $this->env->getRuntime('Symfony\Bridge\Twig\Extension\HttpKernelRuntime')->renderFragment(Symfony\Bridge\Twig\Extension\HttpKernelExtension::controller("App\\Controller\\Front\\SponsorshipController::_displaySponsorshipOnRegisterPage"));
// line 5
echo "
<!-- Error Form -->
";
// line 8
if ((array_key_exists("error", $context) && (isset($context["error"]) || array_key_exists("error", $context) ? $context["error"] : (function () { throw new RuntimeError('Variable "error" does not exist.', 8, $this->source); })()))) {
// line 9
echo " <div class=\"alert alert-danger alert-dismissable\">
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-hidden=\"true\"></button>
";
// line 11
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.', 11, $this->source); })()), "messageKey", [], "any", false, false, false, 11), 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.', 11, $this->source); })()), "messageData", [], "any", false, false, false, 11), "security"), "html", null, true);
echo "
</div>
";
}
// line 14
echo "<!-- End Error Form -->
<!-- Form -->
<div class=\"form-horizontal\">
";
// line 18
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.', 18, $this->source); })()), 'form_start', ["method" => "post", "action" => $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_registration_register"), "attr" => ["class" => "fos_user_registration_register"]]);
echo "
<div class=\"row\">
<div class=\"col-12 col-md-6\">
";
// line 21
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.', 21, $this->source); })()), "lastname", [], "any", false, false, false, 21), 'row');
echo "
</div>
<div class=\"col-12 col-md-6\">
";
// line 24
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.', 24, $this->source); })()), "firstname", [], "any", false, false, false, 24), 'row');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-md-6\">
";
// line 29
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.', 29, $this->source); })()), "email", [], "any", false, false, false, 29), 'row');
echo "
</div>
<div class=\"col-12 col-md-6\">
";
// 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); })()), "phoneNumber", [], "any", false, false, false, 32), 'row');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-md-6\">
";
// line 37
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 37, $this->source); })()), "administrator", [], "any", false, false, false, 37), "name", [], "any", false, false, false, 37), 'row');
echo "
</div>
<div class=\"col-12 col-md-6\">
";
// line 40
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 40, $this->source); })()), "administrator", [], "any", false, false, false, 40), "siretNumber", [], "any", false, false, false, 40), 'row');
echo "
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
";
// line 45
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock(twig_get_attribute($this->env, $this->source, 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.', 45, $this->source); })()), "administrator", [], "any", false, false, false, 45), "businessSoftware", [], "any", false, false, false, 45), 'row');
echo "
</div>
</div>
<div class=\"row\">
";
// line 49
$context['_parent'] = $context;
$context['_seq'] = twig_ensure_traversable(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.', 49, $this->source); })()), "plainPassword", [], "any", false, false, false, 49));
foreach ($context['_seq'] as $context["_key"] => $context["passwordField"]) {
// line 50
echo " <div class=\"col-12 col-md-6\">
";
// line 51
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($context["passwordField"], 'row');
echo "
</div>
";
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['passwordField'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 54
echo " </div>
";
// line 56
echo "
<div class=\"my-2\">
";
// line 58
ob_start();
echo "<a title=\"Lire les Conditions Générales de Vente\" href=\"";
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("cgv");
echo "\" target=\"_blank\">
Conditions Générales de Vente</a>";
$context["terms_link"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 60
echo " ";
ob_start();
echo $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("J'ai lu et j'accepte les %general_terms_and_conditions%.", ["%general_terms_and_conditions%" => (isset($context["terms_link"]) || array_key_exists("terms_link", $context) ? $context["terms_link"] : (function () { throw new RuntimeError('Variable "terms_link" does not exist.', 60, $this->source); })())], "FOSUserBundle");
$context["general_terms_and_conditions"] = ('' === $tmp = ob_get_clean()) ? '' : new Markup($tmp, $this->env->getCharset());
// line 61
echo " ";
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.', 61, $this->source); })()), "cgv", [], "any", false, false, false, 61), 'errors');
echo "
<span class=\"d-inline-block\">
";
// line 64
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.', 64, $this->source); })()), "cgv", [], "any", false, false, false, 64), 'widget');
echo "
</span>
<label class=\"form-check-label\"
for=\"";
// line 67
echo twig_escape_filter($this->env, twig_get_attribute($this->env, $this->source, twig_get_attribute($this->env, $this->source, 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.', 67, $this->source); })()), "cgv", [], "any", false, false, false, 67), "vars", [], "any", false, false, false, 67), "id", [], "any", false, false, false, 67), "html", null, true);
echo "\">";
echo (isset($context["general_terms_and_conditions"]) || array_key_exists("general_terms_and_conditions", $context) ? $context["general_terms_and_conditions"] : (function () { throw new RuntimeError('Variable "general_terms_and_conditions" does not exist.', 67, $this->source); })());
echo "</label>
</div>
<div class=\"form-group form-row mt-5\">
<div class=\"col-12 text-right order-first\">
";
// line 72
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.', 72, $this->source); })()), "submit", [], "any", false, false, false, 72), 'row');
echo "
</div>
</div>
";
// line 75
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 75, $this->source); })()), 'rest');
echo "
";
// line 76
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.', 76, $this->source); })()), 'form_end');
echo "
<div class=\"text-center small\">
<small>Vous avez déjà un compte ? <a class=\"link cursor-pointer\" href=\"";
// line 79
echo $this->extensions['Symfony\Bridge\Twig\Extension\RoutingExtension']->getPath("fos_user_security_login");
echo "\">Connectez-vous</a></small>
</div>
<small class=\"text-secondary\" style=\"font-size: 10px;\">(*) Champs obligatoires</small>
</div>
<!-- End Form -->
";
// line 86
$this->displayBlock('javascripts', $context, $blocks);
// line 120
echo "
";
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
}
// line 86
public function block_javascripts($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", "javascripts"));
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02 = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->enter($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "block", "javascripts"));
// line 87
echo " <script
src=\"https://code.jquery.com/jquery-3.7.1.min.js\"
integrity=\"sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=\"
crossorigin=\"anonymous\"></script>
";
// line 92
echo $this->extensions['Symfony\WebpackEncoreBundle\Twig\EntryFilesTwigExtension']->renderWebpackScriptTags("cleave");
echo "
<script>
function \$_GET(param) {
var vars = {};
window.location.href.replace(location.hash, '').replace(
/[?&]+([^=&]+)=?([^&]*)?/gi, // regexp
function (m, key, value) { // callback
vars[key] = value !== undefined ? value : '';
}
);
if (param) {
return vars[param] ? vars[param] : null;
}
return vars;
}
if (\$_GET('email') != null) {
document.getElementById('fos_user_registration_form_email').value = decodeURIComponent(\$_GET('email'));
}
if (\$_GET('phoneNumber') != null) {
document.getElementById('fos_user_registration_form_phoneNumber').value = decodeURIComponent(\$_GET('phoneNumber'));
}
</script>
";
$__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02->leave($__internal_319393461309892924ff6e74d6d6e64287df64b63545b994e100d4ab223aed02_prof);
$__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e->leave($__internal_085b0142806202599c7fe3b329164a92397d8978207a37e79d70b8c52599e33e_prof);
}
public function getTemplateName()
{
return "@FOSUser/Registration/register_content.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 238 => 92, 231 => 87, 221 => 86, 210 => 120, 208 => 86, 198 => 79, 192 => 76, 188 => 75, 182 => 72, 172 => 67, 166 => 64, 159 => 61, 154 => 60, 147 => 58, 143 => 56, 140 => 54, 131 => 51, 128 => 50, 124 => 49, 117 => 45, 109 => 40, 103 => 37, 95 => 32, 89 => 29, 81 => 24, 75 => 21, 69 => 18, 63 => 14, 57 => 11, 53 => 9, 51 => 8, 46 => 5, 44 => 3,);
}
public function getSourceContext()
{
return new Source("{% trans_default_domain 'FOSUserBundle' %}
{# display sponsorship template #}
{{ render(controller(
'App\\\\Controller\\\\Front\\\\SponsorshipController::_displaySponsorshipOnRegisterPage'
)) }}
<!-- Error Form -->
{% if error is defined and error %}
<div class=\"alert alert-danger alert-dismissable\">
<button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"alert\" aria-hidden=\"true\"></button>
{{ error.messageKey|trans(error.messageData, 'security') }}
</div>
{% endif %}
<!-- End Error Form -->
<!-- Form -->
<div class=\"form-horizontal\">
{{ form_start(form, {'method': 'post', 'action': path('fos_user_registration_register'), 'attr': {'class': 'fos_user_registration_register'}}) }}
<div class=\"row\">
<div class=\"col-12 col-md-6\">
{{ form_row(form.lastname) }}
</div>
<div class=\"col-12 col-md-6\">
{{ form_row(form.firstname) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-md-6\">
{{ form_row(form.email) }}
</div>
<div class=\"col-12 col-md-6\">
{{ form_row(form.phoneNumber) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12 col-md-6\">
{{ form_row(form.administrator.name) }}
</div>
<div class=\"col-12 col-md-6\">
{{ form_row(form.administrator.siretNumber) }}
</div>
</div>
<div class=\"row\">
<div class=\"col-12\">
{{ form_row(form.administrator.businessSoftware) }}
</div>
</div>
<div class=\"row\">
{% for passwordField in form.plainPassword %}
<div class=\"col-12 col-md-6\">
{{ form_row(passwordField) }}
</div>
{% endfor %}
</div>
{# {{ form_row(form.plainPassword) }}#}
<div class=\"my-2\">
{% set terms_link %}<a title=\"Lire les Conditions Générales de Vente\" href=\"{{ path('cgv') }}\" target=\"_blank\">
Conditions Générales de Vente</a>{% endset %}
{% set general_terms_and_conditions %}{{ 'J\\'ai lu et j\\'accepte les %general_terms_and_conditions%.'|trans({ '%general_terms_and_conditions%': terms_link })|raw }}{% endset %}
{{ form_errors(form.cgv) }}
<span class=\"d-inline-block\">
{{ form_widget(form.cgv) }}
</span>
<label class=\"form-check-label\"
for=\"{{ form.cgv.vars.id }}\">{{ general_terms_and_conditions|raw }}</label>
</div>
<div class=\"form-group form-row mt-5\">
<div class=\"col-12 text-right order-first\">
{{ form_row(form.submit) }}
</div>
</div>
{{ form_rest(form) }}
{{ form_end(form) }}
<div class=\"text-center small\">
<small>Vous avez déjà un compte ? <a class=\"link cursor-pointer\" href=\"{{ path('fos_user_security_login') }}\">Connectez-vous</a></small>
</div>
<small class=\"text-secondary\" style=\"font-size: 10px;\">(*) Champs obligatoires</small>
</div>
<!-- End Form -->
{% block javascripts %}
<script
src=\"https://code.jquery.com/jquery-3.7.1.min.js\"
integrity=\"sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo=\"
crossorigin=\"anonymous\"></script>
{{ encore_entry_script_tags('cleave') }}
<script>
function \$_GET(param) {
var vars = {};
window.location.href.replace(location.hash, '').replace(
/[?&]+([^=&]+)=?([^&]*)?/gi, // regexp
function (m, key, value) { // callback
vars[key] = value !== undefined ? value : '';
}
);
if (param) {
return vars[param] ? vars[param] : null;
}
return vars;
}
if (\$_GET('email') != null) {
document.getElementById('fos_user_registration_form_email').value = decodeURIComponent(\$_GET('email'));
}
if (\$_GET('phoneNumber') != null) {
document.getElementById('fos_user_registration_form_phoneNumber').value = decodeURIComponent(\$_GET('phoneNumber'));
}
</script>
{% endblock javascripts %}
", "@FOSUser/Registration/register_content.html.twig", "/var/www/hearing_store_locator/templates/bundles/FOSUserBundle/Registration/register_content.html.twig");
}
}