36 lines
1.2 KiB
HTML
36 lines
1.2 KiB
HTML
{% extends "authorized.html" %}
|
|
{% block title %}User Profile{% endblock %}
|
|
{% block center %}
|
|
<h1>User Profile</h1>
|
|
Full name: {{ user.name }}<br/>
|
|
Given name: {{ user.given_name }}<br/>
|
|
Family name: {{ user.family_name }}<br/>
|
|
Your email address: {{ user.email }}<br/>
|
|
<br/>
|
|
<h2>User Roles</h2>
|
|
<button type="button" class="btn btn-primary">Edit</button>
|
|
<button type="button" class="btn btn-primary">Add</button>
|
|
<table class="table table-striped table-bordered">
|
|
<thead>
|
|
<tr>
|
|
<th scope="col">Name</th>
|
|
<th scope="col">Action</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
{% for user_role in user_roles %}
|
|
<tr>
|
|
<td><a href="/roles/{{ user_role.role_id }}">{{ user_role.role_name }}</a></td>
|
|
<td><a href="/roles/{{ user_role.id }}/delete">Delete</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% for non_user_role in non_user_roles %}
|
|
<tr>
|
|
<td><a href="/roles/{{ non_user_role.role_id }}">{{ non_user_role.role_name }}</a></td>
|
|
<td><a href="/roles/{{ non_user_role.user_id }}/{{ non_user_role.role_id }}/add">Add</a></td>
|
|
</tr>
|
|
{% endfor %}
|
|
</tbody>
|
|
</table>
|
|
{% endblock center %}
|