aboutsummaryrefslogtreecommitdiffstats
path: root/templates/login.html
blob: 46f38c2b269eda7de51d9c80503eacf0ddc50bfc (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
34
35
36
37
38
39
40
41
42
43
44
{% 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>Connexion</h4>
      <hr>
      <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>
      {% with messages = get_flashed_messages() %}
      {% if messages %}
      {% for message in messages %}
      <div class="alert alert-danger" role="alert">
        <span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true">
        </span>
        {{message}}
      </div>
      {% endfor %}
      {% endif %}
      {% endwith %}
      <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>
      <hr>
    </form>
</div>
  {% endblock %}