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

{% block title %} Modifier le profil{% endblock title %}

{% block profil_content %}
<div class="row">
    <div class="col-lg-12"><br/>
        <h3><i class="bi bi-pen-fill"></i> Postuler aux concours</h3><hr/>
    </div>
</div>
<div class="row col-lg-10">
    <div class="row">
        <div class="col-lg-2"></div>
        <div class="col-lg-11"><br/>
            <center>{% include 'parts/message.html' %}</center><br/>
            <table class="info-tb" {% if hide_form %}hidden{% endif %}>
                <tr>
                    <td class="p-label">Année</td>
                    <td><span>: {% if not annee %}{% else %} {{annee}}{% endif %}</span></td>
                </tr>
                <tr>
                    <td class="p-label">N<sup>o</sup> Candidat</td>
                    <td><span>: {% if not candidat.nc %}{% else %} {{candidat.nc}}{% endif %}</span></td>
                </tr>
                <tr>
                    <td class="p-label">Nom et Prénoms</td>
                    <td><span>: {{candidat}}</span></td>
                </tr>
                <tr>
                    <td class="p-label">Type de concours</td>
                    <td><span style="color:red;font-weight:bold;">: {% if not concours %}{% else %} {{concours}}{% endif %}</span></td>
                </tr>

            </table>
            <form action="#" method="post" class="checkout-form" {% if hide_form %}hidden{% endif %}>
                    {% csrf_token %}
                <input type="text" name="x" value="1" hidden />
                         <div class="form-group">
                            <div class="col-lg-offset-2 col-lg-10">
                              <center><button type="submit" class="btn btn-success">Postuler</button></center>
                            </div>
                          </div>

                </form><br/><br/>
            <br/>
        </div>
        <div class="col-lg-2"></div>
    </div>
</div>
{% endblock profil_content %}