From 083896a689e6a6ad8995a0131e2008ae621586b0 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Mon, 5 Aug 2019 16:11:24 -0400 Subject: [PATCH] Update template to show table of CCPO users --- atst/routes/__init__.py | 3 ++- templates/ccpo/users.html | 24 +++++++++++++++++++++--- 2 files changed, 23 insertions(+), 4 deletions(-) diff --git a/atst/routes/__init__.py b/atst/routes/__init__.py index 9e138aca..0729d878 100644 --- a/atst/routes/__init__.py +++ b/atst/routes/__init__.py @@ -135,7 +135,8 @@ def activity_history(): @bp.route("/ccpo-users") @user_can(Permissions.VIEW_CCPO_USER, message="view 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") diff --git a/templates/ccpo/users.html b/templates/ccpo/users.html index 459d1554..f3d545de 100644 --- a/templates/ccpo/users.html +++ b/templates/ccpo/users.html @@ -2,8 +2,26 @@ {% block content %}
- - CCPO Stuff goes here - +
+ CCPO Users +
+ + + + + + + + + + {% for user in users %} + + + + + + {% endfor %} + +
NameEmailDoD ID
{{ user.full_name }}{{ user.email }}{{ user.dod_id }}
{% endblock %}