{% extends "base.html" %}
{% load rest_framework %}
{% block content %}
<h1>Création d'une nouvelle fiche d'inscription</h1>
<br>
<form action='{% url 'Subscriptions:nouvelEleve' %}' method="post">
    {% csrf_token %}
    <ul>
        <li style="margin-bottom: 15px"><strong>ELEVE</strong></li>
        <div class="input-group">
           <label for="nomEleve">Nom</label>
            <div class="input-wrapper">
                <input type="text" id="nomEleve" name="nomEleve">
            </div>
        </div>
        <div class="input-group">
           <label for="prenomEleve">Prénom</label>
            <div class="input-wrapper">
                <input type="text" id="prenomEleve" name="prenomEleve">
            </div>
        </div>
        <li style="margin-bottom: 15px"><strong>LISTE DES CONTACTS</strong></li>
        <div class="input-group">
           <label for="mail">Adresse e-mail </label>
            <div class="input-wrapper">
                <input type="text" id="mail" name="mailResponsable">
            </div>
        </div>
        <div class="input-group">
           <label for="telephone">Numéro de téléphone</label>
            <div class="input-wrapper">
                <input type="text" id="telephone" name="telephoneResponsable">
            </div>
        </div>
        <div class="input-group">
           <label for="nomContact">Nom</label>
            <div class="input-wrapper">
                <input type="text" id="nomContact" name="nomResponsable">
            </div>
        </div>
        <div class="input-group">
           <label for="prenomContact">Prénom</label>
            <div class="input-wrapper">
                <input type="text" id="prenomContact" name="prenomResponsable">
            </div>
        </div>
    </ul>
    <input  class="btn primary" type="submit" value="Créer" name="valider">
    <br>
    <input  class="btn" type="button" value="Annuler" name="cancel">
</form>
{% endblock %}