{% extends 'preinscription/profil/profil_base.html' %}
{% load static %}

{% block profil_content %}
<div class="row">
    <div class="col-lg-12"><br/>
        <h3><i class="bi bi-person-fill"></i> Profil candidat</h3><hr/>
    </div>
</div>
<div class="row col-lg-11">
    <h3 class="ptitle">INFORMATIONS PERSONNELLES</h3>
    <table class="info-tb">
        <tr>
            <td class="p-label">N<sup>o</sup> d'Inscription</td>
            <td><span class="txt-red">: {% if not etudiant.nce %}{% else %} {{etudiant.nce}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Nom</td>
            <td><span>: {% if not etudiant.nom %}{% else %} {{etudiant.nom}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Prénoms</td>
            <td><span>: {% if not etudiant.prenoms %}{% else %} {{etudiant.prenoms}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Sexe</td>
            <td><span>: {% if not etudiant.sexe %}{% else %} {{etudiant.sexe}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Date de naissance</td>
            <td><span>: {% if not etudiant.datenaiss %}{% else %} {{etudiant.datenaiss|date:'d-m-Y'}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Lieu de naissance</td>
            <td><span>: {% if not etudiant.lieunaiss %}{% else %} {{etudiant.lieunaiss}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Email</td>
            <td><span>: {% if not etudiant.email %}{% else %} {{etudiant.email}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Telephone</td>
            <td><span>: {% if not etudiant.phone %} {% else %} {{etudiant.phone}}{% endif %}</span></td>
        </tr>
    </table>
    <br/><br/>

    <h3 class="ptitle">INFORMATIONS PARENTS/TUTEUR</h3>
    <table class="info-tb">
        <tr>
            <td class="p-label">Nom et prénoms du père</td>
            <td><span>: {% if not etudiant.nom_pere %}{% else %} {{etudiant.nom_pere}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Contact du père</td>
            <td><span>: {% if not etudiant.contact_pere %}{% else %} {{etudiant.contact_pere}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Nom et prénoms de la mère</td>
            <td><span>: {% if not etudiant.nom_mere %}{% else %} {{etudiant.nom_mere}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Contact de la mère</td>
            <td><span>: {% if not etudiant.contact_mere %}{% else %} {{etudiant.contact_mere}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Contact téléphonique en cas d'urgence</td>
            <td><span>: {% if not etudiant.contact_urgence %}{% else %} {{etudiant.contact_urgence}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Domicile de la personne à contacter</td>
            <td><span>: {% if not etudiant.habitation_contact_urgence %}{% else %} {{etudiant.habitation_contact_urgence}}{% endif %}</span></td>
        </tr>
    </table>

    <h3 class="ptitle">INFORMATIONS RELATIVES AU BAC</h3>
    <table class="info-tb">
        <tr>
            <td class="p-label">Année du BAC</td>
            <td><span>: {% if not etudiant.annee_bac %}{% else %} {{etudiant.annee_bac}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Numéro du BAC</td>
            <td><span>: {% if not etudiant.numero_bac %}{% else %} {{etudiant.numero_bac}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Série du BAC</td>
            <td><span>: {% if not etudiant.serie_bac %}{% else %} {{etudiant.serie_bac}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Mention</td>
            <td><span>: {% if not etudiant.mention_bac %}{% else %} {{etudiant.mention_bac}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Matricule</td>
            <td><span>: {% if not etudiant.matricule %}{% else %} {{etudiant.matricule}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Centre d'obtention (BAC)</td>
            <td><span>: {% if not etudiant.centre_compo_bac %}{% else %} {{etudiant.centre_compo_bac}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Ecole d'origine</td>
            <td><span>: {% if not etudiant.etablissement_bac %}{% else %} {{etudiant.etablissement_bac}}{% endif %}</span></td>
        </tr>
        <tr>
            <td class="p-label">Type de l'école</td>
            <td><span>: {% if not etudiant.type_etablissement %}{% else %} {{etudiant.type_etablissement}}{% endif %}</span></td>
        </tr>

    </table>

   <center>
       <div>
           <a class="btn btn-primary" href="{% url 'Scolarite:edit_profil' etudiant.id %}"><i class="bi bi-pen-fill"></i> Modifier le profil</a>
           <br/><br/>
       </div>
   </center>
</div>
{% endblock profil_content %}