
<!-- Modal Create / Edit Type Document Dossier Administratif -->
<div class="modal-overlay" id="formModal">

    <div class="modal-content">

        <div class="modal-header">

            <h2 id="modalTitle">Nouveau Type de Document Administratif</h2>

            <button type="button"
                    class="modal-close"
                    onclick="closeModal()">
                &times;
            </button>

        </div>

        <div class="modal-body">

            <form id="typeDocumentForm">

                <input type="hidden"
                       id="typeDocumentId">

                <div class="form-group">

                    <label for="libelle">
                        Libellé
                        <span class="required">*</span>
                    </label>

                    <input
                        type="text"
                        id="libelle"
                        placeholder="Ex : Attestation"
                        required>

                </div>

                <div class="form-group">

                    <label for="code">
                        Code
                        <span class="required">*</span>
                    </label>

                    <input
                        type="text"
                        id="code"
                        placeholder="Ex : ATT"
                        required>

                </div>

                <div class="form-group">

                    <label for="description">
                        Description
                    </label>

                    <textarea
                        id="description"
                        rows="5"
                        placeholder="Description..."></textarea>

                </div>

                <div class="form-actions">

                    <button
                        type="button"
                        class="btn btn-secondary"
                        onclick="closeModal()">

                        <i class="fas fa-times"></i>

                        Annuler

                    </button>

                    <button
                        type="button"
                        class="btn btn-primary"
                        onclick="saveTypeDocument()">

                        <i class="fas fa-save"></i>

                        Enregistrer

                    </button>

                </div>

            </form>

        </div>

    </div>

</div>