{% extends "base.html" %} {% block title %}Users — Admin{% endblock %} {% block content %}

User Management

+ Create a new user
{% for u in users %} {% endfor %}
Username Email Role Status Created Last login Actions
{{ u.username }} {{ u.email or '—' }} {% if u.role == 'admin' %} admin {% else %} user {% endif %} {% if u.is_active %} Active {% else %} Disabled {% endif %} {{ u.created_at.strftime('%Y-%m-%d') if u.created_at else '—' }} {{ u.last_login.strftime('%Y-%m-%d %H:%M') if u.last_login else 'Never' }}
{% endblock %}