Project

General

Profile

« Previous | Next » 

Revision b0bcc5a3

Added by Frédéric Péters (de retour le 27 mai) over 11 years ago

login: update login page to match the mockup (#2130)

View differences:

calebasse/templates/registration/login.html
1 1
{% extends "calebasse/base.html" %}
2 2
{% load url from future %}
3 3

  
4
{% block wrapper %}
5
<div id="wrap">
6
{% endblock %}
7

  
4 8
{% block user-links %}
5 9
{% endblock %}
6 10

  
7 11
{% block content %}
8 12

  
13
<p>
14
  Bienvenue sur le logiciel de gestion de l'Association Prévention
15
  Soins.
16
</p>
17

  
18
<h2>Connexion</h2>
19

  
9 20
{% if form.errors %}
10 21
<p>Your username and password didn't match. Please try again.</p>
11 22
{% endif %}
12 23

  
13
<form method="post" action="{% url 'django.contrib.auth.views.login' %}">
24
<form method="post" id="login-form" action="{% url 'django.contrib.auth.views.login' %}">
14 25
{% csrf_token %}
15
<table>
16
<tr>
17
    <td>{{ form.username.label_tag }}</td>
18
    <td>{{ form.username }}</td>
19
</tr>
20
<tr>
21
    <td>{{ form.password.label_tag }}</td>
22
    <td>{{ form.password }}</td>
23
</tr>
24
</table>
25

  
26
<input type="submit" value="login" />
26

  
27
<p>
28
  <label for="id_username">{{ form.username.label_tag }}</label>
29
  {{ form.username }}
30
</p>
31
<p>
32
  <label for="id_password">{{ form.password.label_tag }}</label>
33
  {{ form.password }}
34
</p>
35

  
36
<input type="submit" value="Se connecter" class="submit" />
27 37
<input type="hidden" name="next" value="{{ next }}" />
28 38
</form>
29 39

  

Also available in: Unified diff