From 5f95d59f2eef010c0753b5d46ab98c570ad8db80 Mon Sep 17 00:00:00 2001 From: Mikkel <4072916+Mikk3@users.noreply.github.com> Date: Tue, 31 May 2022 17:59:31 +0200 Subject: [PATCH] Bruger info dump --- aula/templates/account.html | 78 ++++++++++++++++++++++++++++++++++++- 1 file changed, 76 insertions(+), 2 deletions(-) diff --git a/aula/templates/account.html b/aula/templates/account.html index f441fcc..b5ecf6a 100644 --- a/aula/templates/account.html +++ b/aula/templates/account.html @@ -1,4 +1,78 @@ {% extends "layout.html" %} {% block content %} -

{{ current_user.name }}

-{% endblock content %} +

Bruger Information

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Attributeværdi
user_id{{ current_user.user_id }}
first_name{{ current_user.first_name }}
last_name{{ current_user.last_name }}
email{{ current_user.email }}
address{{ current_user.address }}
role{{ current_user.role }}
+ +

Grupper

+ + + + + + + + + + {% for group in current_user.get_groups() %} + + + + + + {% endfor %} + +
group_idnamemandatory
{{ group.group_id }}{{ group.name }}{{ group.mandatory }}
+ +

Tråde

+ + + + + + + + + + {% for thread in current_user.get_threads() %} + + + + + + {% endfor %} + +
thread_idtitlegroup_id
{{ thread.thread_id }}{{ thread.title }}{{ thread.group_id }}
+{% endblock content %} \ No newline at end of file