<article class="generic-viewercontent">
    <div class="m-2">
        <h2 class="mb-3">Connectez-vous</h2>

        <form id="yc-form" method="post" class="form-small form-login">
            <input type="hidden" name="type" value="admin">
            <input type="hidden" name="action" value="login">
            <input type="hidden" name="callback" value="yc_filldestination">

            <?php
            if($site->get("param_mode_visiteur") == "fullopen"){
                echo "<input type=\"hidden\" name=\"endaction\" value=\"yc_reloadadmin\">";
            } else {
                echo "<input type=\"hidden\" name=\"endaction\" value=\"yc_reloadpage\">";
            }
            ?>

            <fieldset class="mb-3 sfw-form" id="login">
                <div class="mb-3">
                    <label class="fs-regular ff-bold-primary pb-0" for="login">Login</label>
                    <input class="" name="login" value="" type="text">
                </div>
                <div class="mb-3">
                    <label class="fs-regular ff-bold-primary pb-0" for="pwd">Password</label>
                    <input class="" name="pwd" value="" type="password">
                </div>
                <div class="">
                    <input type="submit" class="btn btn-ok text-light" name="submit" value="Go">
                </div>
            </fieldset>
        </form>
    </div>
</article>
