<?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;
/* lidkaart/renew-membership.html.twig */
class __TwigTemplate_297c34b826f797eb2d2fb17bfbf5ddc7 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 $this->loadTemplate($this->extensions['App\Twig\Extension\WebsiteExtension']->getBaseLayout(), "lidkaart/renew-membership.html.twig", 1);
}
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", "lidkaart/renew-membership.html.twig"));
$__internal_6f47bbe9983af81f1e7450e9a3e3768f = $this->extensions["Symfony\\Bridge\\Twig\\Extension\\ProfilerExtension"];
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->enter($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof = new \Twig\Profiler\Profile($this->getTemplateName(), "template", "lidkaart/renew-membership.html.twig"));
$this->getParent($context)->display($context, array_merge($this->blocks, $blocks));
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
}
// line 3
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 4
echo " <div class=\"row\">
<div class=\"col-8 mx-auto\">
<h1 class=\"py-5\">";
// line 6
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Nieuwe lidkaart aanmaken"), "html", null, true);
echo "</h1>
";
// line 7
$this->env->getRuntime("Symfony\\Component\\Form\\FormRenderer")->setTheme((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 7, $this->source); })()), [0 => "bootstrap_5_layout.html.twig"], true);
// line 8
echo "
";
// line 9
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 9, $this->source); })()), 9, $this->source), 'form_start', ["attr" => ["class" => "form", "id" => "membership_form"]]);
echo "
<div class=\"row\">
<div class=\"col-lg-3\">
";
// line 12
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 12, $this->source); })()), "club", [], "any", false, false, true, 12), 12, $this->source), 'row', ["attr" => ["required" => "required"]]);
echo "
";
// line 13
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 13, $this->source); })()), "membershipType", [], "any", false, false, true, 13), 13, $this->source), 'row', ["attr" => ["required" => "required"]]);
echo "
</div>
<div class=\"col-lg-7\">
<div class=\"p-3 m-3\" style=\"width: 18rem;\">
<div class=\"d-flex justify-content-between\">
<button type=\"button\" class=\"btn btn-secondary\" id=\"add_member\" disabled>";
// line 18
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Lid Toevoegen"), "html", null, true);
echo "</button>
<button type=\"submit\" class=\"btn btn-primary\" id=\"submit_button\" disabled>";
// line 19
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Volgende"), "html", null, true);
echo "</button>
</div>
</div>
</div>
</div>
<hr>
<div id=\"members\" class=\"row\" data-prototype=\"";
// line 25
echo twig_escape_filter($this->env, $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed(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.', 25, $this->source); })()), "members", [], "any", false, false, true, 25), "vars", [], "any", false, false, true, 25), "prototype", [], "any", false, false, true, 25), 25, $this->source), 'widget'));
echo "\">
";
// line 26
$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.', 26, $this->source); })()), "members", [], "any", false, false, true, 26));
$context['loop'] = [
'parent' => $context['_parent'],
'index0' => 0,
'index' => 1,
'first' => true,
];
if (is_array($context['_seq']) || (is_object($context['_seq']) && $context['_seq'] instanceof \Countable)) {
$length = count($context['_seq']);
$context['loop']['revindex0'] = $length - 1;
$context['loop']['revindex'] = $length;
$context['loop']['length'] = $length;
$context['loop']['last'] = 1 === $length;
}
foreach ($context['_seq'] as $context["_key"] => $context["MembershipFormType"]) {
// line 27
echo " <div class=\"col-lg-6 mb-4\" id=\"member_";
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 27), 27, $this->source), "html", null, true);
echo "\">
";
// line 28
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->searchAndRenderBlock($this->sandbox->ensureToStringAllowed($context["MembershipFormType"], 28, $this->source), 'row');
echo "
<button type=\"button\" class=\"btn btn-danger delete-member\" data-index=\"";
// line 29
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(twig_get_attribute($this->env, $this->source, $context["loop"], "index", [], "any", false, false, true, 29), 29, $this->source), "html", null, true);
echo "\">
";
// line 30
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Remove Member"), "html", null, true);
echo "
</button>
</div>
";
++$context['loop']['index0'];
++$context['loop']['index'];
$context['loop']['first'] = false;
if (isset($context['loop']['length'])) {
--$context['loop']['revindex0'];
--$context['loop']['revindex'];
$context['loop']['last'] = 0 === $context['loop']['revindex0'];
}
}
$_parent = $context['_parent'];
unset($context['_seq'], $context['_iterated'], $context['_key'], $context['MembershipFormType'], $context['_parent'], $context['loop']);
$context = array_intersect_key($context, $_parent) + $_parent;
// line 34
echo " </div>
";
// line 35
echo $this->env->getRuntime('Symfony\Component\Form\FormRenderer')->renderBlock($this->sandbox->ensureToStringAllowed((isset($context["form"]) || array_key_exists("form", $context) ? $context["form"] : (function () { throw new RuntimeError('Variable "form" does not exist.', 35, $this->source); })()), 35, $this->source), 'form_end');
echo "
</div>
</div>
<script>
const sportChoices = {
'sailing': [
'Zwaardboten',
'Kitesurfen',
'Yachting',
],
'surfing': [
'Windsurfen',
'SUP',
'Wingfoil',
'Kitesurfen',
]
}
function repopulateSportFields() {
const clubValue = \$('#";
// line 55
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 55, $this->source); })()), "club", [], "any", false, false, true, 55), "vars", [], "any", false, false, true, 55), "id", [], "any", false, false, true, 55), 55, $this->source), "html", null, true);
echo "').val();
const sportOptions = sportChoices[clubValue] || [];
// Iterate over all sport1 and sport2 selectors
\$('.sport1_selector').each(function(index, sport1Selector) {
const \$sport1Selector = \$(sport1Selector);
const currentSport1Selection = \$sport1Selector.val();
// Reset the field options
\$sport1Selector.empty();
// Appending the default options
sportOptions.forEach((element) => {
const optionValue = element.toLowerCase();
\$sport1Selector.append(\$('<option>', {value: optionValue}).text(element));
});
// Reapply the previous selection if it is still valid
if (sportOptions.map(e => e.toLowerCase()).includes(currentSport1Selection)) {
\$sport1Selector.val(currentSport1Selection);
}
});
\$('.sport2_selector').each(function(index, sport2Selector) {
const \$sport2Selector = \$(sport2Selector);
const currentSport2Selection = \$sport2Selector.val();
// Reset the field options
\$sport2Selector.empty();
// Setting the n.v.t. on the sport2 selector
\$sport2Selector.append(\$('<option>', {value: 'N.V.T'}).text('N.V.T.'));
// Appending the default options
sportOptions.forEach((element) => {
const optionValue = element.toLowerCase();
\$sport2Selector.append(\$('<option>', {value: optionValue}).text(element));
});
// Reapply the previous selection if it is still valid
if (sportOptions.map(e => e.toLowerCase()).includes(currentSport2Selection)) {
\$sport2Selector.val(currentSport2Selection);
} else {
\$sport2Selector.val('N.V.T');
}
});
}
// Function to enable/disable buttons based on form completion
function toggleButtons() {
const clubFilled = document.querySelector('#";
// line 105
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 105, $this->source); })()), "club", [], "any", false, false, true, 105), "vars", [], "any", false, false, true, 105), "id", [], "any", false, false, true, 105), 105, $this->source), "html", null, true);
echo "').value.trim() !== '';
const membershipType = document.querySelector('#";
// line 106
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 106, $this->source); })()), "membershipType", [], "any", false, false, true, 106), "vars", [], "any", false, false, true, 106), "id", [], "any", false, false, true, 106), 106, $this->source), "html", null, true);
echo "').value.trim();
const addParticipantButton = document.getElementById('add_member');
const submitButton = document.getElementById('submit_button');
const membersCount = document.querySelectorAll('#members .mb-4').length;
addParticipantButton.disabled = !(clubFilled && validateMembershipType(membershipType, membersCount));
submitButton.disabled = !(clubFilled && membershipType !== '' && membersCount >= 1);
}
// Validate membership type and number of members based on selected type
function validateMembershipType(type, count) {
const allowedMembers = {
'jeugdlid': 1, // Limit for Jeugdlid - 22 j
'volwassen': 1, // Limit for Volwassen
'familie': 6, // Limit for Volwassen
};
if (type in allowedMembers) {
if (count >= allowedMembers[type]) {
return false;
}
}
return true;
}
// Add Participant button functionality
document.getElementById('add_member').addEventListener('click', function () {
const collectionHolder = document.getElementById('members');
const prototype = collectionHolder.getAttribute('data-prototype');
const membershipType = document.querySelector('#";
// line 135
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 135, $this->source); })()), "membershipType", [], "any", false, false, true, 135), "vars", [], "any", false, false, true, 135), "id", [], "any", false, false, true, 135), 135, $this->source), "html", null, true);
echo "').value.trim();
const membersCount = document.querySelectorAll('#members .mb-4').length;
if (!validateMembershipType(membershipType, membersCount)) {
return;
}
const index = collectionHolder.children.length;
const newForm = prototype.replace(/__name__/g, index);
const tempDiv = document.createElement('div');
tempDiv.innerHTML = newForm.trim();
const element = tempDiv.firstChild;
element.classList.add('col-lg-3', 'mb-4');
collectionHolder.appendChild(element);
const deleteButton = document.createElement('button');
deleteButton.setAttribute('type', 'button');
deleteButton.setAttribute('class', 'btn btn-danger delete-member my-2');
deleteButton.setAttribute('data-index', index);
deleteButton.innerHTML = '<i class=\"fa-solid fa-trash text-white\"></i>';
deleteButton.addEventListener('click', function () {
if (confirm(\"";
// line 155
echo twig_escape_filter($this->env, $this->extensions['Symfony\Bridge\Twig\Extension\TranslationExtension']->trans("Are you sure you want to remove this member?"), "html", null, true);
echo "\")) {
element.parentNode.removeChild(element);
toggleButtons(); // Recheck form completion on member removal
}
});
element.prepend(deleteButton);
toggleButtons(); // Recheck form completion on member addition
repopulateSportFields(); // Repopulate the sport fields based on the club entry
});
// Client-side form validation and button toggling
const form = document.getElementById('membership_form');
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
});
// Control buttons activation based on input changes
document.querySelectorAll('input, select').forEach(input => {
input.addEventListener('input', toggleButtons);
});
toggleButtons(); // Initially check form completion on page load
\$('#";
// line 187
echo twig_escape_filter($this->env, $this->sandbox->ensureToStringAllowed(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.', 187, $this->source); })()), "club", [], "any", false, false, true, 187), "vars", [], "any", false, false, true, 187), "id", [], "any", false, false, true, 187), 187, $this->source), "html", null, true);
echo "').on('change', function() {
repopulateSportFields(); // Repopulate the sport fields
});
</script>
";
$__internal_6f47bbe9983af81f1e7450e9a3e3768f->leave($__internal_6f47bbe9983af81f1e7450e9a3e3768f_prof);
$__internal_5a27a8ba21ca79b61932376b2fa922d2->leave($__internal_5a27a8ba21ca79b61932376b2fa922d2_prof);
}
public function getTemplateName()
{
return "lidkaart/renew-membership.html.twig";
}
public function isTraitable()
{
return false;
}
public function getDebugInfo()
{
return array ( 338 => 187, 303 => 155, 280 => 135, 248 => 106, 244 => 105, 191 => 55, 168 => 35, 165 => 34, 147 => 30, 143 => 29, 139 => 28, 134 => 27, 117 => 26, 113 => 25, 104 => 19, 100 => 18, 92 => 13, 88 => 12, 82 => 9, 79 => 8, 77 => 7, 73 => 6, 69 => 4, 59 => 3, 37 => 1,);
}
public function getSourceContext()
{
return new Source("{% extends base_layout() %}
{% block content %}
<div class=\"row\">
<div class=\"col-8 mx-auto\">
<h1 class=\"py-5\">{{ 'Nieuwe lidkaart aanmaken'|trans }}</h1>
{% form_theme form 'bootstrap_5_layout.html.twig' %}
{{ form_start(form, {'attr': {'class': 'form', 'id': 'membership_form'}}) }}
<div class=\"row\">
<div class=\"col-lg-3\">
{{ form_row(form.club, {'attr': {'required': 'required'}}) }}
{{ form_row(form.membershipType, {'attr': {'required': 'required'}}) }}
</div>
<div class=\"col-lg-7\">
<div class=\"p-3 m-3\" style=\"width: 18rem;\">
<div class=\"d-flex justify-content-between\">
<button type=\"button\" class=\"btn btn-secondary\" id=\"add_member\" disabled>{{ 'Lid Toevoegen'|trans }}</button>
<button type=\"submit\" class=\"btn btn-primary\" id=\"submit_button\" disabled>{{ 'Volgende'|trans }}</button>
</div>
</div>
</div>
</div>
<hr>
<div id=\"members\" class=\"row\" data-prototype=\"{{ form_widget(form.members.vars.prototype)|e }}\">
{% for MembershipFormType in form.members %}
<div class=\"col-lg-6 mb-4\" id=\"member_{{ loop.index }}\">
{{ form_row(MembershipFormType) }}
<button type=\"button\" class=\"btn btn-danger delete-member\" data-index=\"{{ loop.index }}\">
{{ 'Remove Member'|trans }}
</button>
</div>
{% endfor %}
</div>
{{ form_end(form) }}
</div>
</div>
<script>
const sportChoices = {
'sailing': [
'Zwaardboten',
'Kitesurfen',
'Yachting',
],
'surfing': [
'Windsurfen',
'SUP',
'Wingfoil',
'Kitesurfen',
]
}
function repopulateSportFields() {
const clubValue = \$('#{{ form.club.vars.id }}').val();
const sportOptions = sportChoices[clubValue] || [];
// Iterate over all sport1 and sport2 selectors
\$('.sport1_selector').each(function(index, sport1Selector) {
const \$sport1Selector = \$(sport1Selector);
const currentSport1Selection = \$sport1Selector.val();
// Reset the field options
\$sport1Selector.empty();
// Appending the default options
sportOptions.forEach((element) => {
const optionValue = element.toLowerCase();
\$sport1Selector.append(\$('<option>', {value: optionValue}).text(element));
});
// Reapply the previous selection if it is still valid
if (sportOptions.map(e => e.toLowerCase()).includes(currentSport1Selection)) {
\$sport1Selector.val(currentSport1Selection);
}
});
\$('.sport2_selector').each(function(index, sport2Selector) {
const \$sport2Selector = \$(sport2Selector);
const currentSport2Selection = \$sport2Selector.val();
// Reset the field options
\$sport2Selector.empty();
// Setting the n.v.t. on the sport2 selector
\$sport2Selector.append(\$('<option>', {value: 'N.V.T'}).text('N.V.T.'));
// Appending the default options
sportOptions.forEach((element) => {
const optionValue = element.toLowerCase();
\$sport2Selector.append(\$('<option>', {value: optionValue}).text(element));
});
// Reapply the previous selection if it is still valid
if (sportOptions.map(e => e.toLowerCase()).includes(currentSport2Selection)) {
\$sport2Selector.val(currentSport2Selection);
} else {
\$sport2Selector.val('N.V.T');
}
});
}
// Function to enable/disable buttons based on form completion
function toggleButtons() {
const clubFilled = document.querySelector('#{{ form.club.vars.id }}').value.trim() !== '';
const membershipType = document.querySelector('#{{ form.membershipType.vars.id }}').value.trim();
const addParticipantButton = document.getElementById('add_member');
const submitButton = document.getElementById('submit_button');
const membersCount = document.querySelectorAll('#members .mb-4').length;
addParticipantButton.disabled = !(clubFilled && validateMembershipType(membershipType, membersCount));
submitButton.disabled = !(clubFilled && membershipType !== '' && membersCount >= 1);
}
// Validate membership type and number of members based on selected type
function validateMembershipType(type, count) {
const allowedMembers = {
'jeugdlid': 1, // Limit for Jeugdlid - 22 j
'volwassen': 1, // Limit for Volwassen
'familie': 6, // Limit for Volwassen
};
if (type in allowedMembers) {
if (count >= allowedMembers[type]) {
return false;
}
}
return true;
}
// Add Participant button functionality
document.getElementById('add_member').addEventListener('click', function () {
const collectionHolder = document.getElementById('members');
const prototype = collectionHolder.getAttribute('data-prototype');
const membershipType = document.querySelector('#{{ form.membershipType.vars.id }}').value.trim();
const membersCount = document.querySelectorAll('#members .mb-4').length;
if (!validateMembershipType(membershipType, membersCount)) {
return;
}
const index = collectionHolder.children.length;
const newForm = prototype.replace(/__name__/g, index);
const tempDiv = document.createElement('div');
tempDiv.innerHTML = newForm.trim();
const element = tempDiv.firstChild;
element.classList.add('col-lg-3', 'mb-4');
collectionHolder.appendChild(element);
const deleteButton = document.createElement('button');
deleteButton.setAttribute('type', 'button');
deleteButton.setAttribute('class', 'btn btn-danger delete-member my-2');
deleteButton.setAttribute('data-index', index);
deleteButton.innerHTML = '<i class=\"fa-solid fa-trash text-white\"></i>';
deleteButton.addEventListener('click', function () {
if (confirm(\"{{ 'Are you sure you want to remove this member?'|trans }}\")) {
element.parentNode.removeChild(element);
toggleButtons(); // Recheck form completion on member removal
}
});
element.prepend(deleteButton);
toggleButtons(); // Recheck form completion on member addition
repopulateSportFields(); // Repopulate the sport fields based on the club entry
});
// Client-side form validation and button toggling
const form = document.getElementById('membership_form');
form.addEventListener('submit', function (event) {
if (!form.checkValidity()) {
event.preventDefault();
event.stopPropagation();
}
form.classList.add('was-validated');
});
// Control buttons activation based on input changes
document.querySelectorAll('input, select').forEach(input => {
input.addEventListener('input', toggleButtons);
});
toggleButtons(); // Initially check form completion on page load
\$('#{{ form.club.vars.id }}').on('change', function() {
repopulateSportFields(); // Repopulate the sport fields
});
</script>
{% endblock %}
", "lidkaart/renew-membership.html.twig", "/var/www/clients/client2/web45/web/pc/templates/lidkaart/renew-membership.html.twig");
}
public function checkSecurity()
{
static $tags = array("form_theme" => 7, "for" => 26);
static $filters = array("escape" => 6, "trans" => 6, "e" => 25);
static $functions = array("form_start" => 9, "form_row" => 12, "form_widget" => 25, "form_end" => 35, "base_layout" => 1);
try {
$this->sandbox->checkSecurity(
['form_theme', 'for'],
['escape', 'trans', 'e'],
['form_start', 'form_row', 'form_widget', 'form_end', 'base_layout']
);
} 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;
}
}
}