aboutsummaryrefslogtreecommitdiffstats
path: root/templates/login.html
blob: 3cad5c700103699cf1bad380ba580709e84183ab (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
{% extends "layout.html" %}
{%block title %}Connexion{% endblock %}
{% block body %}
<div style="margin:10em auto;width:200px">
  <form class="pure-form pure-form-stacked" id = "connection" action="{{ url_for('login') }}" method="post">
    <fieldset>
      <legend>Connexion</legend>
	  <label for="name">Nom : </label>
	  <input type="text" id="name" placeholder="Prénom" name="username" />
	  <label for="password">Mot de passe : </label>
	  <input type="password" id="password" placeholder="Mot de passe" name="password" />
      <br/>
      <button type="submit" class="pure-button pure-button-primary">Se connecter</button>
      {% if error %}<p class=error><strong>Erreur:</strong> {{ error }}</p>{% endif %}
    </fieldset>
  </form>
</div>
  {% endblock %}