From 3f799fbadbce46c8524b216713ba05cca0618f7e Mon Sep 17 00:00:00 2001 From: Gertjan van den Burg Date: Tue, 26 Mar 2019 16:34:47 +0000 Subject: Add user table --- app/templates/admin/index.html | 4 ++++ app/templates/admin/manage_users.html | 30 ++++++++++++++++++++++++++++++ 2 files changed, 34 insertions(+) create mode 100644 app/templates/admin/manage_users.html (limited to 'app/templates') diff --git a/app/templates/admin/index.html b/app/templates/admin/index.html index 136d1d5..c5f5e6b 100644 --- a/app/templates/admin/index.html +++ b/app/templates/admin/index.html @@ -10,5 +10,9 @@ View and manage tasks +
  • + View and manage + users +
  • {% endblock %} diff --git a/app/templates/admin/manage_users.html b/app/templates/admin/manage_users.html new file mode 100644 index 0000000..fcfc86c --- /dev/null +++ b/app/templates/admin/manage_users.html @@ -0,0 +1,30 @@ +{% extends "base.html" %} + +{% block app_content %} +

    Manage Users

    +
    +

    User Overview

    +
    + + + + + + + + + + {% for user in users %} + + + + + + + + + {% endfor %} + +
    IDUsernameEmailConfirmedLast ActiveAdmin
    {{ user.id }}{{ user.username }}{{ user.email }}{% if user.is_confirmed %}Yes{% else %}No{% endif %}{{ user.last_active }}{% if user.is_admin %}Yes{% else %}{% endif %}
    +
    +{% endblock %} -- cgit v1.2.3