Update template to show table of CCPO users
This commit is contained in:
parent
90ae235cd0
commit
083896a689
@ -135,7 +135,8 @@ def activity_history():
|
|||||||
@bp.route("/ccpo-users")
|
@bp.route("/ccpo-users")
|
||||||
@user_can(Permissions.VIEW_CCPO_USER, message="view ccpo users")
|
@user_can(Permissions.VIEW_CCPO_USER, message="view ccpo users")
|
||||||
def ccpo_users():
|
def ccpo_users():
|
||||||
return render_template("ccpo/users.html")
|
users = Users.get_ccpo_users()
|
||||||
|
return render_template("ccpo/users.html", users=users)
|
||||||
|
|
||||||
|
|
||||||
@bp.route("/about")
|
@bp.route("/about")
|
||||||
|
@ -2,8 +2,26 @@
|
|||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class='col'>
|
<div class='col'>
|
||||||
|
<div class="h2">
|
||||||
CCPO Stuff goes here
|
CCPO Users
|
||||||
|
</div>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th>Name</th>
|
||||||
|
<th>Email</th>
|
||||||
|
<th>DoD ID</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
{% for user in users %}
|
||||||
|
<tr>
|
||||||
|
<td>{{ user.full_name }}</td>
|
||||||
|
<td>{{ user.email }}</td>
|
||||||
|
<td>{{ user.dod_id }}</td>
|
||||||
|
</tr>
|
||||||
|
{% endfor %}
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
</div>
|
</div>
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user