# HG changeset patch # User rougeronj # Date 1418315662 -3600 # Node ID 9b290d5c11d8826b754be7412f6b58b964e729bf # Parent 44d627c3a9fba28f3037e1586e6ef8cfd9f4d2d8 Changes profil page and access to admin part (renkan and django). Update interface to be more lisible diff -r 44d627c3a9fb -r 9b290d5c11d8 src/hdalab/static/hdalab/css/profile.css --- a/src/hdalab/static/hdalab/css/profile.css Thu Dec 11 15:46:44 2014 +0100 +++ b/src/hdalab/static/hdalab/css/profile.css Thu Dec 11 17:34:22 2014 +0100 @@ -1,5 +1,9 @@ -#container p, p{ +p{ font-size: 16px; + margin: 10px 10px 0; +} +h2{ + font-size:18px } table{ font-size: 14px; @@ -56,4 +60,8 @@ } li.edito{ margin-top: 10px; +} +.sub-content{ + padding: 20px 0; + border-top: 1px solid #b0b0b0; } \ No newline at end of file diff -r 44d627c3a9fb -r 9b290d5c11d8 src/hdalab/templates/profile_home.html --- a/src/hdalab/templates/profile_home.html Thu Dec 11 15:46:44 2014 +0100 +++ b/src/hdalab/templates/profile_home.html Thu Dec 11 17:34:22 2014 +0100 @@ -32,68 +32,80 @@

{% trans 'Mon profil' %}

-

Modification du mot de passe

-
-

- Nouveau Renkan - {% if user.is_staff %} / Administrer les Renkan{% endif %} - {% if user.is_superuser %} / Administrer Hdabo{% endif %} -

-

 

-

Mes renkans :

-

{% if page.has_previous %}{% trans 'Previous' %}{% endif %} - {% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}{% trans 'Next' %}{% endif %}

-

{% if page.has_previous or page.has_next %} - {% endif %}{% trans 'Filter' %} : - {% trans 'Advanced search' %}

-
-

{% trans 'Title' %} :

-

{% trans 'Modification date' %} : {% trans 'begin' %} - - {% trans 'end' %} :

-

{% trans 'State' %} : - -

-

-
- - - - - - - - - - - - {% for hr in page.object_list %} - {% with hr.renkan as r %} - - - - - - - - {% endwith %} - {% endfor %} - -
{% trans 'Title' %} - {% if sort_param == 'title' %}{% endif %}{% trans 'Modification date' %} - {% if sort_param == 'date' %}{% endif %}{% trans 'Preview' %}{% trans 'State' %} - {% if sort_param == 'state' %}{% endif %}{% trans 'Actions' %}
{{ r.title }}{{ r.modification_date|date:"Y-m-d H:i" }}{% thumbnail r.image 100x100 as thumb %}{{ hr.state|state_to_str }} - {% if hr.state == 1 %} - {% else %}{% endif %} - - - - {% if hr.state == 1 %} - {% else %}{% endif %} -
-

{% if page.has_previous %}{% trans 'Previous' %}{% endif %} - {% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}{% trans 'Next' %}{% endif %}

+ {% if user.is_staff %} +
+

/ {% trans 'Adminsitration du Site' %}

+

+ Administrer les Renkan + / Administrer Hdabo +

+
+ {% endif %} +
+

/ {% trans 'Modifier mon profil' %}

+

+ Modification du mot de passe +

+
+
+

/ {% trans 'Gerer mes Renkan' %}

+

+ {% trans 'Nouveau Renkan' %} +

+

{% if page.has_previous %}{% trans 'Previous' %}{% endif %} + {% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}{% trans 'Next' %}{% endif %}

+

{% if page.has_previous or page.has_next %} - {% endif %}{% trans 'Filter' %} : - {% trans 'Advanced search' %}

+
+

{% trans 'Title' %} :

+

{% trans 'Modification date' %} : {% trans 'begin' %} - + {% trans 'end' %} :

+

{% trans 'State' %} : + +

+

+
+ + + + + + + + + + + + {% for hr in page.object_list %} + {% with hr.renkan as r %} + + + + + + + + {% endwith %} + {% endfor %} + +
{% trans 'Title' %} + {% if sort_param == 'title' %}{% endif %}{% trans 'Modification date' %} + {% if sort_param == 'date' %}{% endif %}{% trans 'Preview' %}{% trans 'State' %} + {% if sort_param == 'state' %}{% endif %}{% trans 'Actions' %}
{{ r.title }}{{ r.modification_date|date:"Y-m-d H:i" }}{% thumbnail r.image 100x100 as thumb %}{{ hr.state|state_to_str }} + {% if hr.state == 1 %} + {% else %}{% endif %} + + + + {% if hr.state == 1 %} + {% else %}{% endif %} +
+

{% if page.has_previous %}{% trans 'Previous' %}{% endif %} + {% if page.has_previous and page.has_next %} - {% endif %}{% if page.has_next %}{% trans 'Next' %}{% endif %}

+
{% endblock %} \ No newline at end of file diff -r 44d627c3a9fb -r 9b290d5c11d8 src/hdalab/templates/registration/registration_form.html --- a/src/hdalab/templates/registration/registration_form.html Thu Dec 11 15:46:44 2014 +0100 +++ b/src/hdalab/templates/registration/registration_form.html Thu Dec 11 17:34:22 2014 +0100 @@ -17,7 +17,7 @@ {% if form.errors %}

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

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