diff --git a/Palto/Palto/static/Palto/css/profile.css b/Palto/Palto/static/Palto/css/profile.css
new file mode 100644
index 0000000..cb30ff5
--- /dev/null
+++ b/Palto/Palto/static/Palto/css/profile.css
@@ -0,0 +1,32 @@
+#user-informations {
+ text-align: center;
+ margin: 5% auto;
+}
+
+#user-name {
+ font-size: 200%;
+ font-weight: bold;
+ text-decoration: underline;
+}
+
+#user-relations {
+ border-collapse: collapse;
+ margin: auto;
+ text-align: center;
+}
+
+#user-relations > tbody > tr > td, #user-relations > tbody > tr > th {
+ border: 1px solid black;
+ padding: 4px;
+}
+
+.user-relation {
+ border-style: hidden;
+ border-collapse: collapse;
+ width: 100%;
+}
+
+.user-relation > tbody > tr > td, .user-relation > tbody > tr > th {
+ border: 1px solid black;
+ padding: 4px;
+}
\ No newline at end of file
diff --git a/Palto/Palto/templates/Palto/profile.html b/Palto/Palto/templates/Palto/profile.html
index 3c8397e..02ed096 100644
--- a/Palto/Palto/templates/Palto/profile.html
+++ b/Palto/Palto/templates/Palto/profile.html
@@ -1,78 +1,94 @@
{% extends "Palto/base/base-features.html" %}
+{% load static %}
{% load dict_tags %}
+{% block style %}
+ {{ block.super }}
+
+{% endblock %}
+
{% block body %}
{{ block.super }}
- {{ profile.username }}
- {{ profile.email }}
- {% if profile.is_superuser %}Administrator{% endif %}
+ {# user informations #}
+
{# user related departments table #}
-
- {% for department, profile_department_data in profile_departments_data.items %}
-
- {# department name #}
- {{ department.name }} |
- {# relation information #}
-
-
- {# user managing the department #}
- {% if profile_department_data|dict_get:"is_manager" %}
-
- Responsable de Département |
- / |
-
- {% endif %}
- {# user managing units #}
- {% with managing_units=profile_department_data|dict_get:"managing_units" %}
- {% if managing_units|length > 0 %}
+
+
+ {% for department, profile_department_data in profile_departments_data.items %}
+
+ {# department name #}
+ {{ department.name }} |
+ {# relation information #}
+
+
+
+ {# user managing the department #}
+ {% if profile_department_data|dict_get:"is_manager" %}
- Responsable d'UE |
-
- {% for managing_unit in managing_units %}
-
- {{ managing_unit.name }}
-
- {% if not forloop.last %} {% endif %}
- {% endfor %}
- |
+ Responsable de Département |
+ / |
- {% endif %}
- {% endwith %}
- {# user teaching units #}
- {% with teaching_units=profile_department_data|dict_get:"teaching_units" %}
- {% if teaching_units|length > 0 %}
-
- Enseignant |
-
- {% for teaching_unit in teaching_units %}
-
- {{ teaching_unit.name }}
-
- {% if not forloop.last %} {% endif %}
- {% endfor %}
- |
-
- {% endif %}
- {% endwith %}
- {# user studying groups #}
- {% with student_groups=profile_department_data|dict_get:"student_groups" %}
- {% if student_groups|length > 0 %}
-
- Groupe Étudiant |
-
- {% for student_group in student_groups %}
- {{ student_group.name }}
- {% if not forloop.last %} {% endif %}
- {% endfor %}
- |
-
- {% endif %}
- {% endwith %}
-
- |
-
- {% endfor %}
+ {% endif %}
+ {# user managing units #}
+ {% with managing_units=profile_department_data|dict_get:"managing_units" %}
+ {% if managing_units|length > 0 %}
+
+ Responsable d'UE |
+
+ {% for managing_unit in managing_units %}
+
+ {{ managing_unit.name }}
+
+ {% if not forloop.last %} {% endif %}
+ {% endfor %}
+ |
+
+ {% endif %}
+ {% endwith %}
+ {# user teaching units #}
+ {% with teaching_units=profile_department_data|dict_get:"teaching_units" %}
+ {% if teaching_units|length > 0 %}
+
+ Enseignant |
+
+ {% for teaching_unit in teaching_units %}
+
+ {{ teaching_unit.name }}
+
+ {% if not forloop.last %} {% endif %}
+ {% endfor %}
+ |
+
+ {% endif %}
+ {% endwith %}
+ {# user studying groups #}
+ {% with student_groups=profile_department_data|dict_get:"student_groups" %}
+ {% if student_groups|length > 0 %}
+
+ Groupe Étudiant |
+
+ {% for student_group in student_groups %}
+ {{ student_group.name }}
+ {% if not forloop.last %} {% endif %}
+ {% endfor %}
+ |
+
+ {% endif %}
+ {% endwith %}
+
+
+
+
+ {% endfor %}
+
{% endblock %}
|