{% extends "base.html" %} {% block content %} {{ __tera_context }}
État civil
Genre

{% if errors is containing('firstname') %}{{ errors["firstname"][0].message}}{% endif %}

{% if errors is containing('lastname') %}{{ errors["lastname"][0].message}}{% endif %}

Boursier

{% if errors is containing('bea_number') %}{{ errors["bea_number"][0].message}}{% endif %}

Coordonnées

Ces coordonnées seront utilisées pour toute correspondance concernant le concours

{% if errors is containing('mobile_phone') %}{{ errors["mobile_phone"][0].message}}{% endif %}

{% if errors is containing('email') %}{{ errors["email"][0].message}}{% endif %}

Scolarité {% for year in [1,2,3,4] %}
Année scolaire {{ now() | date(format="%Y") | int - year }}/{{ now() | date(format="%Y") | int - (year-1) }}

{% endfor %}
Niveau de langue {% for language in ["anglais", "allemand", "espagnol", "fle"] %}
{{ language | capitalize}}
{% endfor %}
Vœux des écoles {% for wish_number in [1, 2, 3] %}

{% endfor %}
Présentation autre concours
{%endblock content %} {% block css %} /* * { border: 1px dashed orange; } */ .invalid { background-color: ivory; border: none; outline: 1px solid red; } #inscription { width: 1000px; } #inscription p { display: flex; align-items: center; flex-direction: row; } #inscription p label { flex: 1; } #inscription p > span { flex: 1; display: flex; flex-direction: column; } form p:nth-child(odd) { background-color: #eeeeee; } form p:nth-child(even) { background-color: #ffffff; } {% endblock css %} {% block js %} function handleRadioClick() { console.log(this.value); radioValue = document.querySelectorAll( 'input[value="'+this.value+'"]',); radioValue.forEach(radio => { if (this !== radio && radio.checked) { radioName = document.querySelector( 'input[name="'+radio.name+'"][value="aucune"]',); radioName.checked = true; } }); } const radioButtons = document.querySelectorAll( 'input[name^="wish-"]',); radioButtons.forEach(radio => { radio.addEventListener('click', handleRadioClick); }); {% endblock js %}