Bruger info dump
This commit is contained in:
@ -1,4 +1,78 @@
|
||||
{% extends "layout.html" %}
|
||||
{% block content %}
|
||||
<h1>{{ current_user.name }}</h1>
|
||||
{% endblock content %}
|
||||
<h1>Bruger Information</h1>
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">Attribute</th>
|
||||
<th scope="col">værdi</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<th scope="row">user_id</th>
|
||||
<td>{{ current_user.user_id }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">first_name</th>
|
||||
<td>{{ current_user.first_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">last_name</th>
|
||||
<td>{{ current_user.last_name }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">email</th>
|
||||
<td>{{ current_user.email }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">address</th>
|
||||
<td>{{ current_user.address }}</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">role</th>
|
||||
<td>{{ current_user.role }}</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><b>Grupper</b></p>
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">group_id</th>
|
||||
<th scope="col">name</th>
|
||||
<th scope="col">mandatory</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for group in current_user.get_groups() %}
|
||||
<tr>
|
||||
<td><a href="{{ url_for('Group.show', group_id = group.group_id) }}">{{ group.group_id }}</a></td>
|
||||
<td>{{ group.name }}</td>
|
||||
<td>{{ group.mandatory }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<p><b>Tråde</b></p>
|
||||
<table class="table table-striped table-sm">
|
||||
<thead>
|
||||
<tr>
|
||||
<th scope="col">thread_id</th>
|
||||
<th scope="col">title</th>
|
||||
<th scope="col">group_id</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
{% for thread in current_user.get_threads() %}
|
||||
<tr>
|
||||
<td><a href="{{ url_for('Threads.show', thread_id = thread.thread_id) }}">{{ thread.thread_id }}</a></td>
|
||||
<td>{{ thread.title }}</td>
|
||||
<td>{{ thread.group_id }}</td>
|
||||
</tr>
|
||||
{% endfor %}
|
||||
</tbody>
|
||||
</table>
|
||||
{% endblock content %}
|
Reference in New Issue
Block a user