{% extends "base.html" %} {% block title %}Users{% endblock %} {% block page_title %}User Management{% endblock %} {% block topbar_actions %} + New User {% endblock %} {% block content %}
{% for u in users %} {% endfor %}
Username Role Employee Status Created API Key Actions
{{ u.username }} {% if u.role == 'admin' %}admin {% elif u.role == 'staff' %}staff {% else %}viewer{% endif %} {% if u.employee %} {{ u.employee.name }} {% else %} {% endif %} {% if u.is_active %}Active {% else %}Inactive{% endif %} {{ u.created_at | fmt_date }} {% if u.api_key %} {{ u.api_key[:12] }}… {% else %} None {% endif %}
{% if u.id != user.id %}
{% endif %}
API Access

Use your API key with the Authorization: Bearer <key> header or X-API-Key: <key> header. Interactive docs available at /api/docs.

{% if user.api_key %}
{{ user.api_key }}
{% else %}

You don't have an API key. Click "Regen Key" next to your username above.

{% endif %}
{% endblock %}