<form name="gestion_rappel_form" method="post">
<div class="row pl-3 pt-5">
    <div class="col-12">
        <h5 class="wp-heading-inline">Rappel de connexion</h5>
    </div>
    <div class="col-3">
        <div class="form-group">
            <label for="nbJour">Nombre de jour avant rappel:</label>
            <input class="form-control" id="nbJour" type="text" size="10" name="nbJour" value="<?php if(get_option('rappel_nbJour')){ echo get_option('rappel_nbJour');}; ?>"  />
        </div>
    </div>
    <div class="col-3">
        <div class="form-group">
            <label for="rappelJournalier">Renvoyer un mail de rappel tous les jours?</label>
            <select class="form-control" id="rappelJournalier" name="rappelJournalier">
                <option value="0" <?php if(get_option('rappel_journalier') == false || get_option('rappel_journalier') == 0){ echo 'selected="selected"';}; ?>>Non</option>
                <option value="1" <?php if(get_option('rappel_journalier') == 1){ echo 'selected="selected"';}; ?>>Oui</option>
            </select>
        </div>
    </div>
</div>
<div class="row pl-3 pt-2">
    <div class="col-6">
        <div class="form-group">
            <label for="subjectMail">Sujet du mail</label>
            <input class="form-control" id="subjectMail" type="text" name="subjectMail" size="64" value="<?php if(get_option('rappel_subjectMail')){ echo get_option('rappel_subjectMail');}; ?>" />
        </div>
    </div>
    <div class="col-8">
    <div class="form-group">
            <label for="contentMail">Contenu du mail</label>
            <?php

            $params = array('textarea_name' => 'contentMail');
            wp_editor(stripslashes(get_option('rappel_contentMail')), 'contentMail', $params);

            ?>
        </div>
    </div>
    <div class="col-6">
        <fieldset>
            <input type="submit" name="saveMail" class="button button-primary button-large" value="Enregistrer" />
        </fieldset>
    </div>
                    <?php
                        global $msg;
                        if (isset($msg) && !empty($msg)){
                            echo $msg;
                        }

                    DashboardAtelier111::checkRappel();

                    ?>
</div>
</form>
<div class="clearfix"></div>