<!DOCTYPE html>
<html lang="fr">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Portail étudiant</title>
    <link rel="stylesheet" href="css/design.css">
</head>

<body>
    <div class="container">
    <h1 class="fancy-title">Stages GE : Portail de dépôt</h1>
        <div class="middle">
            <label for="username"><strong>Carte d'identité nationale :</strong></label>
            <input type="password" id="username" name="username">
            <br />
            <label for="password"><strong>Votre numéro d'inscription :</strong></label>
            <input type="password" id="password" name="password">
            <br />

            <label><strong>Classe<strong></label>
            <button id="openClasse">Liste des classes</button>
            <div id="popupClasse" class="popup">
                <h2>Choisissez une classe</h2>
                <select id="selectClasse"></select>
                <button id="saveClasse">Enregistrez</button>
            </div>
            <div id="classe" class="dynamic-label">INDÉFINI...</div>

            <div class="radio-group">
                <label>
                    <input type="radio" name="nature" value="initiation" checked>
                    Stage d'initiation
                </label>
                <label>
                    <input type="radio" name="nature" value="perfectionnement">
                    Stage de perfectionnement
                </label>
            </div>

            <label><strong>Société</strong></label>
            <div id="societe" class="dynamic-label">
                <input type="text" id="searchedSociete" class="dynamic-input" placeholder="Annuaire des entreprises">
                <div id="suggestedSociete" class="suggestions"></div>
            </div>
            <div id="selectedSociete" style="font-style: italic; color: red; font-size: 10px;"></div>

            <div class="radio-group">
                <label>
                    <input type="radio" name="attestation" value="manquante" checked>
                    Attestation manquante
                </label>
                <label>
                    <input type="radio" name="attestation" value="non-manquante">
                    Attestation présente
                </label>

                <!--
                <label>
                    <input type="checkbox" id="attestation" name="attestation" checked>
                    <span style="color: rgb(122, 30, 30);"><strong>Attestation</strong></span>
                </label>
                &emsp;
                <label>
                    <input type="checkbox" id="journal" name="journal" checked>
                    <span style="color: rgb(122, 30, 30);"><strong>Journal</strong></span>
                </label>
                -->

            </div>

            <form id="uploadData" action="/" method="post" enctype="multipart/form-data">

                <input type="hidden" id="hiddenUsername" name="username" value=" ">
                <input type="hidden" id="hiddenPassword" name="password" value=" ">
                <input type="hidden" id="hiddenNature" name="nature" value=" ">

                <label for="file"><strong>Chargez le rapport de stage :</strong></label><br />
                <div>
                    <input type="file" id="file" name="file" accept=".pdf" class="file-input" hidden>
                    <button type="button" onclick="document.getElementById('file').click()">
                        Parcourir...
                    </button>

                    <span class="file-name">Aucun fichier sélectionné !</span>
                </div>
                <button id="submitBtn" class="btn">Soumettez</button>
            </form>

        </div>
    </div>
</body>

<!-- script type="module" src="js/script.js" type="text/javascript"></script -->
<script src="dist/bundle.js"></script>

</html>