<%inherit file="jm2l:templates/layout.mako"/>
    <br>
    <div class="container">
    % if forgot:
      <form class="form-signin" action="/sign/forgot" method="post">
        <h3 class="form-signin-heading">Mes identifiants</h3>
        <hr>
        <input name="mail" type="text" class="input-block-level" placeholder="Mon adresse email">
        <button class="btn btn-primary btn-block" type="submit">Me renvoyer mes identifiants</button>
      </form>
    % else:
      <form class="form-signin" action="/sign/in" method="post">
        <h3 class="form-signin-heading">Me connecter</h3>
        <hr>
        <input name="username" type="text" class="input-block-level" placeholder="Nom">
        <input name="password" type="password" class="input-block-level" placeholder="Mot de passe">
        <input name="redirect" type="hidden" value="${comefrom}">
        <div class="center">
            <button class="btn btn-large btn-primary btn-block" type="submit">S'identifier</button>
        </div>
        <br>
        <a href="/sign/forgot">Je ne me souviens plus de mon mot de passe</a>
      </form>
    % endif
    </div>
