# HG changeset patch # User rougeronj # Date 1418207694 -3600 # Node ID 83adb3fd0efde72984897bf84189e21ebea5ee7e # Parent 58bc48201d0ed2043aa2e85326a033064743e618 Update login (and ajax login), and registration pages diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/static/hdalab/css/login.css --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/hdalab/static/hdalab/css/login.css Wed Dec 10 11:34:54 2014 +0100 @@ -0,0 +1,94 @@ +.register{ + width: 500px; + padding: 10px; + background-color: rgb(230, 230, 230); + border-radius: 2px; + margin: auto; +} +.register p { + color: #4f5451; + font-size: 14px; + font-size: 1.4rem; + margin: 10px 30px; + clear: right; +} +.register label{ + font-size: 14px; + font-size: 1.4rem; + line-height: 3.4; +} +.register .error input, .register .error select { + border: 2px red solid; +} +.register input[type="text"], +.register input[type="password"], +.register input[type="email"] { +/* background-color: rgba(255, 255, 255, 0.90); */ + border:0; + box-sizing: border-box; + color: #4f5451; + font-size: 12px; + font-size: 1.2rem; + font-weight: 300; + height: 50px; + padding: 0 20px; + width: 100%; + border-radius: 2px; +} +.register input[type="text"]:focus, +.register input[type="password"]:focus, +.register input[type="email"]:focus { + background-color: rgba(255, 255, 255, 1); + border:1px solid #7cb0bd; +} +.register input[type="submit"] { + content: " "; + height: 30px; + border: 0; + color: #fff; + font-size: 14px; + font-size: 1.4rem; + font-weight: 300; + background-color: #7cb0bd; + border-radius: 2px; + transition: background-color 0.3s ease; + cursor:pointer; + margin: 10px 0; +/* float: right; */ +} +.register input[type="submit"]:hover { + background-color: #4f5451; +} + +.register h1:before{ + content: "/ "; +} + +.register h1{ + margin: 10px 19px; +} + +.register .btn-submit{ + text-align: right; +} + +.btn-previous{ + margin-right:10px; +} + +/* MODAL POPUP */ + +.ui-dialog { + border:none; + border-radius:0px; + box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.5); +} + +.ui-dialog-titlebar-close, +.ui-dialog-titlebar{ + display:none; +} + +.ui-dialog .ui-dialog-content { + padding:0; +} \ No newline at end of file diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/ajax_identification/ajax_login.html --- a/src/hdalab/templates/ajax_identification/ajax_login.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/ajax_identification/ajax_login.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,16 +1,28 @@ +{% load static %} {% load i18n %} + + +
- {% if form.errors %} -

{% trans "Sorry, that's not a valid username or password." %}

- {% endif %} -
- {% csrf_token %} - - {{form.as_p}} - -
-

 

-

{% trans "Still not a user ? Create an account" %} -

{% trans "Forgot password ?" %} +

{% trans "Identifiants" %}

+ {% if form.errors %} +

{% trans "Sorry, that's not a valid username or password." %}

+ {% endif %} +
+ {% csrf_token %} + +

+ + {{form.username}} +

+

+ + {{form.password}} +

+ +
+

{% trans "Forgot password ?" %}

+

{% trans "Still not a user ? Create an account" %}

- diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/activate.html --- a/src/hdalab/templates/registration/activate.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/activate.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,6 +1,14 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Registration - Activated" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}
{% if account %} diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/activation_complete.html --- a/src/hdalab/templates/registration/activation_complete.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/activation_complete.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,6 +1,14 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Registration - Complete" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}

{% trans "Your account is now activated." %}

diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/login.html --- 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}} + +{% endblock %} + +{% block login_actif %}actif{% endblock %} + {% block main_content %}
+

{% trans "Identifiants" %}

{% if form.errors %}

{% trans "Sorry, that's not a valid username or password." %}

{% endif %}
{% csrf_token %} - {{form.as_p}} - +

+ + {{form.username}} +

+

+ + {{form.password}} +

+
+

+
-

 

-

{% trans "Still not a user ? Create an account" %} -

{% trans "Forgot password ?" %} -

+

{% trans "Forgot password ?" %}

+

{% trans "Still not a user ? Create an account" %}

+
{% endblock %} - - - diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/password_change_done.html --- a/src/hdalab/templates/registration/password_change_done.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/password_change_done.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,6 +1,14 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Password change - Done" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}

{% trans "Password changed" %}

diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/password_change_form.html --- a/src/hdalab/templates/registration/password_change_form.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/password_change_form.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,12 +1,30 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Password change" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}
+

{% trans "Changer le mot de passe" %}

- {% csrf_token %} - {{ form.as_p }} - + {% csrf_token %} +

+ + {{form.password1}} +

+

+ + {{form.password2}} +

+
{% endblock %} diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/password_reset_complete.html --- a/src/hdalab/templates/registration/password_reset_complete.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/password_reset_complete.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,6 +1,14 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Password Reset - Complete" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}

{% trans "Password reset successfully" %}

diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/password_reset_confirm.html --- a/src/hdalab/templates/registration/password_reset_confirm.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/password_reset_confirm.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,13 +1,23 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Password reset - Confirm" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}
{% if validlink %}
{% csrf_token %} {{ form.as_p }} - +
+

+
{% else %}

{% trans "Password reset failed" %}

diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/password_reset_done.html --- a/src/hdalab/templates/registration/password_reset_done.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/password_reset_done.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,6 +1,14 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Password reset - Done" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}

{% trans "Email with password reset instructions has been sent." %}

diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/password_reset_form.html --- a/src/hdalab/templates/registration/password_reset_form.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/password_reset_form.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,12 +1,34 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Password reset" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + +{% block login_actif %}actif{% endblock %} + {% block main_content %} -
-
- {% csrf_token %} - {{ form.as_p }} - -
-
+
+

{% trans "Recuperation du Mot de Passe" %}

+ {% if form.errors %} +

{% trans "Sorry, that's not a valid username or password." %}

+ {% endif %} +
+ {% csrf_token %} +

+ + {{form.email}} +

+ +
+
{% endblock %} + + + diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/registration_complete.html --- a/src/hdalab/templates/registration/registration_complete.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/registration_complete.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,6 +1,14 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Registration - Complete" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + {% block main_content %}

{% trans "You are now registered. Activation email sent." %}

diff -r 58bc48201d0e -r 83adb3fd0efd src/hdalab/templates/registration/registration_form.html --- a/src/hdalab/templates/registration/registration_form.html Mon Dec 01 10:34:53 2014 +0100 +++ b/src/hdalab/templates/registration/registration_form.html Wed Dec 10 11:34:54 2014 +0100 @@ -1,12 +1,47 @@ {% extends "base.html" %} +{% load static %} {% load i18n %} +{% block title %}{% trans "Registration" %}{% endblock %} + +{% block css_import %} +{{block.super}} + +{% endblock %} + +{% block login_actif %}actif{% endblock %} + {% block main_content %}
-
- {% csrf_token %} - {{ form.as_p }} - +

{% trans "Nouvel Utilisateur" %}

+ {% if form.errors %} +

{% trans "Oups ! Il y a un problème dans les données du nouvel utilisateur" %}

+ {% endif %} + + {% csrf_token %} + +

+ + {{form.username}} +

+

+ + {{form.email}} +

+

+ + {{form.password1}} +

+

+ + {{form.password2}} +

+
{% endblock %} + + +