Update template to show table of CCPO users

This commit is contained in:
leigh-mil 2019-08-05 16:11:24 -04:00
parent 90ae235cd0
commit 083896a689
2 changed files with 23 additions and 4 deletions

View File

@ -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")

View File

@ -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 %}