src/hdalab/templates/registration/login.html
changeset 384 83adb3fd0efd
parent 335 51225e522007
child 433 bffe8dfa3a7f
--- a/src/hdalab/templates/registration/login.html	Mon Dec 01 10:34:53 2014 +0100
+++ b/src/hdalab/templates/registration/login.html	Wed Dec 10 11:34:54 2014 +0100
@@ -4,22 +4,35 @@
 
 {% block title %}{% trans "Login" %}{% endblock %}
 
+{% block css_import %}
+{{block.super}}
+        <link rel="stylesheet" type="text/css" href="{% static 'hdalab/css/login.css' %}" />
+{% endblock %}
+
+{% block login_actif %}actif{% endblock %}
+
 {% block main_content %}
     <div class="register">
+    	<h1>{% trans "Identifiants" %}</h1>
         {% if form.errors %}
         <p class="error">{% trans "Sorry, that's not a valid username or password." %}</p>
         {% endif %}
         <form action="" method='post' id="login-form">
             {% csrf_token %}
             <input type="hidden" name="next" value="{% if next %}{{ next }}{% else %}{% url 'home' %}{% endif %}" />
-            {{form.as_p}}
-            <button class="button" type="submit" value="login">{% trans "login" %}</button>
+            <p>
+	            <label for="username">{% trans "Nom d'utilisateur" %}</label>
+	            {{form.username}}
+	        </p>
+	        <p>
+	            <label for="password">{% trans "Mot de passe" %}</label>
+	            {{form.password}}
+	        </p>
+	        <div class="btn-submit">
+	        	<p><input type="submit" value="{% trans 'Login' %}" /></p>
+		  	</div>
         </form>
-        <p>&nbsp;</p>
-        <p><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a>
-        <p><a href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a>
-    </div>
+        <p class="champs"><a href="{% url 'auth_password_reset' %}">{% trans "Forgot password ?" %}</a></p>
+        <p class="champs"><a href="{% url 'registration_register' %}">{% trans "Still not a user ? Create an account" %}</a></p>
+	</div>
 {% endblock %}
-
-
-