profil ergänzt
This commit is contained in:
parent
d429ff85b2
commit
70f8cfd68a
@ -436,8 +436,19 @@ def profil():
|
|||||||
cur = conn.cursor()
|
cur = conn.cursor()
|
||||||
|
|
||||||
cur.execute("""
|
cur.execute("""
|
||||||
SELECT u.id, u.email, u.name, u.mandant_id, u.last_login, u.status,
|
SELECT
|
||||||
m.name AS mandant_name, m.kuerzel AS mandant_kuerzel
|
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
|
FROM app_user u
|
||||||
JOIN mandant m ON m.id = u.mandant_id
|
JOIN mandant m ON m.id = u.mandant_id
|
||||||
WHERE u.id = %s
|
WHERE u.id = %s
|
||||||
|
|||||||
@ -49,6 +49,18 @@
|
|||||||
<tr><th>Mandant</th><td>{{ profile.mandant_name }} ({{ profile.mandant_kuerzel }})</td></tr>
|
<tr><th>Mandant</th><td>{{ profile.mandant_name }} ({{ profile.mandant_kuerzel }})</td></tr>
|
||||||
<tr><th>Status</th><td>{{ profile.status }}</td></tr>
|
<tr><th>Status</th><td>{{ profile.status }}</td></tr>
|
||||||
<tr><th>Letzter Login</th><td>{{ profile.last_login }}</td></tr>
|
<tr><th>Letzter Login</th><td>{{ profile.last_login }}</td></tr>
|
||||||
|
|
||||||
|
<tr><th>Mandant</th><td>{{ profile.mandant_name }} ({{ profile.mandant_kuerzel }})</td></tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>Mandant E-Mail</th>
|
||||||
|
<td>{{ profile.mandant_email }}</td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th>Mandant Level</th>
|
||||||
|
<td>{{ profile.mandant_level }}</td>
|
||||||
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
</section>
|
</section>
|
||||||
</main>
|
</main>
|
||||||
|
|||||||
@ -345,7 +345,8 @@ p {
|
|||||||
display: none;
|
display: none;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
right: 0;
|
right: 0;
|
||||||
top: calc(100% + 4px);
|
top: 100%;
|
||||||
|
margin-top: 0;
|
||||||
min-width: 180px;
|
min-width: 180px;
|
||||||
background: #ffffff;
|
background: #ffffff;
|
||||||
border-radius: 12px;
|
border-radius: 12px;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user