From aa56e275c34b40ac9e1fd282245161e5d902e360 Mon Sep 17 00:00:00 2001 From: yomguy Date: Fri, 27 Apr 2012 22:33:08 +0200 Subject: [PATCH] fix student profile --- .../templates/telemeta/inc/user_list.html | 9 ++--- .../templates/telemeta/profile_detail.html | 34 +++++++++++-------- 2 files changed, 22 insertions(+), 21 deletions(-) diff --git a/teleforma/templates/telemeta/inc/user_list.html b/teleforma/templates/telemeta/inc/user_list.html index 11c4902c..d84d8a4a 100644 --- a/teleforma/templates/telemeta/inc/user_list.html +++ b/teleforma/templates/telemeta/inc/user_list.html @@ -5,19 +5,14 @@ -
diff --git a/teleforma/templates/telemeta/profile_detail.html b/teleforma/templates/telemeta/profile_detail.html index 5cbd8b91..4ff8079d 100644 --- a/teleforma/templates/telemeta/profile_detail.html +++ b/teleforma/templates/telemeta/profile_detail.html @@ -9,7 +9,7 @@ {% endblock %} {% block content %} -
+
{% block modules %}
@@ -34,10 +34,9 @@ {% trans "Send a message" %}
{% endif %} -
-
+

{% trans "User profile" %} : {{ usr.username }} @@ -56,20 +55,27 @@
{% trans "First Name" %}
{{ usr.first_name }}
{% trans "Last Name" %}
{{ usr.last_name }}
+ + {% if usr.student.get %} +
{% trans "IEJ" %}
{{ usr.student.get.iej }}
+
{% trans "Training" %}
{{ usr.student.get.training }}
+
{% trans "Procedure"%}
{{ usr.student.get.procedure.code }}
+
{% trans "Oral spe"%}
{{ usr.student.get.oral_speciality.code }}
+
{% trans "Written spe"%}
{{ usr.student.get.written_speciality.code }}
+
{% trans "Oral 1"%}
{{ usr.student.get.oral_2.code }}
+
{% trans "Oral 2"%}
{{ usr.student.get.oral_1.code }}
+ {% endif %} + + {% if user.is_staff or user.is_superuser %}
{% trans "Email" %}
{{ usr.email }}
+
{% trans "Address" %}
{{ usr.profile.get.address }} {{ usr.profile.get.postal_code }} {{ usr.profile.get.city }}
+
{% trans "Telephone" %}
{{ usr.profile.get.telephone }}
+ {% endif %} -
{% trans "Institution" %}
{% if profile %}{{ profile.institution }}{% endif %}
-
{% trans "Department" %}
{% if profile %}{{ profile.department }}{% endif %}
-
{% trans "Function" %}
{% if profile %}{{ profile.function }}{% endif %}
-
{% trans "Attachment" %}
{% if profile %}{{ profile.attachment }}{% endif %}
-
{% trans "Address" %}
{% if profile %}{{ profile.address }}{% endif %}
-
{% trans "Telephone" %}
{% if profile %}{{ profile.telephone }}{% endif %}
-
{% trans "Expiration date" %}
{% if profile %}{{ profile.expiration_date }}{% endif %}
- -
{% trans "Is staff" %}
{{ usr.is_staff }}
-
{% trans "Is superuser" %}
{{ usr.is_superuser }}
-
{% blocktrans count user.groups.all.count as counter %}Group{% plural %}Groups{% endblocktrans %}
{% for group in usr.groups.all %}{{ group }} {% endfor %}
+
{% trans "Join date" %}
{{ usr.date_joined }}
+
{% trans "Expiration date" %}
{{ usr.profile.get.expiration_date }}
{% trans "Last login" %}
{{ usr.last_login }}
+ {% if user.is_authenticated and user.username == usr.username %}
{% trans "Language" %}
{% csrf_token %} -- 2.39.5