aboutsummaryrefslogtreecommitdiffstats
path: root/templates/login.html
blob: f0de9809dd7c7dcdd2a1d7525050fd6d586c15ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
{% extends "layout.html" %}
{%block title %}Connexion{% endblock %}
{% block body %}
<div class="row login">
    <form id = "connection" action="{{ url_for('login') }}" role="form"
          class="form-horizontal" method="post">
      <h4 class="form-control-static col-md-offset-4">Connexion</h4>
      <div class="form-group">
	    <label for="name" class="col-md-4 control-label">Nom :</label>
        <div class="col-md-8">
	      <input type="text" id="name" class="form-control"
                 name="username" placeholder="Prénom"/>
        </div>
      </div>
      <div class="form-group">
	    <label for="password" class="col-md-4 control-label">Mot de passe :</label>
        <div class="col-md-8">
	      <input type="password" id="password" class="form-control"
                 name="password" placeholder="Mot de passe"/>
        </div>
      </div>
      <div class="form-group">
        <div class="col-md-offset-4 col-md-8">
          <button type="submit" class="btn btn-primary" name="login">
            Se Connecter
          </button>
        </div>
      </div>
      {% if error %}
      <p class=error><strong>Erreur :</strong> {{ error }}</p>{% endif %}
    </form>
</div>
  {% endblock %}