diff --git a/app/flask-postgres/app/app.py b/app/flask-postgres/app/app.py index be194e4..5e675eb 100644 --- a/app/flask-postgres/app/app.py +++ b/app/flask-postgres/app/app.py @@ -436,8 +436,19 @@ def profil(): cur = conn.cursor() cur.execute(""" - SELECT u.id, u.email, u.name, u.mandant_id, u.last_login, u.status, - m.name AS mandant_name, m.kuerzel AS mandant_kuerzel + SELECT + u.id, + u.email, + u.name, + u.mandant_id, + u.last_login, + u.status, + + m.name AS mandant_name, + m.kuerzel AS mandant_kuerzel, + m.kontakt_email AS mandant_email, + m.level AS mandant_level + FROM app_user u JOIN mandant m ON m.id = u.mandant_id WHERE u.id = %s diff --git a/app/flask-postgres/app/templates/profil.html b/app/flask-postgres/app/templates/profil.html index 4fcc55e..5c86bb1 100644 --- a/app/flask-postgres/app/templates/profil.html +++ b/app/flask-postgres/app/templates/profil.html @@ -49,6 +49,18 @@ Mandant{{ profile.mandant_name }} ({{ profile.mandant_kuerzel }}) Status{{ profile.status }} Letzter Login{{ profile.last_login }} + + Mandant{{ profile.mandant_name }} ({{ profile.mandant_kuerzel }}) + + + Mandant E-Mail + {{ profile.mandant_email }} + + + + Mandant Level + {{ profile.mandant_level }} + diff --git a/app/flask-postgres/styles/site.css b/app/flask-postgres/styles/site.css index e0194b5..4c7eb21 100644 --- a/app/flask-postgres/styles/site.css +++ b/app/flask-postgres/styles/site.css @@ -345,7 +345,8 @@ p { display: none; position: absolute; right: 0; - top: calc(100% + 4px); + top: 100%; + margin-top: 0; min-width: 180px; background: #ffffff; border-radius: 12px;