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

Admin Settings

Platform administration. Stats show aggregate counts only — workspace content is not exposed here.

Overview Workspaces Users
{% if tab == 'overview' %}
{{ stats.platform.workspace_count }}

Workspaces ({{ stats.platform.workspace_archived }} archived)

{{ stats.platform.user_count }}

Users ({{ stats.platform.user_active }} active)

{{ stats.platform.audit_run_total }}

Runs ({{ stats.platform.audit_run_active }} active · {{ stats.platform.audit_run_failed }} failed)

{{ stats.platform.audit_run_completed }}

Completed runs

{{ stats.platform.scenario_count }}

Scenarios ({{ stats.platform.scenario_set_count }} sets)

{{ stats.platform.model_connection_count }}

Connections

Per-workspace usage

{% for ws in workspaces %} {% empty %} {% endfor %}
Workspace Status Members Runs Completed Failed Scenarios Connections Created
{{ ws.name }} {% if ws.archived %}Archived{% else %}Active{% endif %} {{ ws.member_count }} {{ ws.audit_run_count }} {{ ws.audit_completed }} {{ ws.audit_failed }} {{ ws.scenario_count }} {{ ws.model_connection_count }} {{ ws.created_at|date:"Y-m-d" }}
No workspaces yet.
{% endif %} {% if tab == 'workspaces' %}

All workspaces

{% for ws in workspaces %} {% empty %} {% endfor %}
Workspace Status Members Runs Scenarios Actions
{{ ws.name }} /{{ ws.slug }} {% if ws.archived %}Archived{% else %}Active{% endif %} {{ ws.member_count }} {{ ws.audit_run_count }} {{ ws.scenario_count }}
Members {% if ws.archived %} {% elif ws.has_content %} {% else %} {% endif %}
No workspaces yet.
{% if manage_id %}

Members — workspace #{{ manage_id }}

Close
{% for m in managed_members %} {% empty %} {% endfor %}
User Email Role Actions
{{ m.user.username }} {{ m.user.email }}
No members.
{% endif %} {% endif %} {% if tab == 'users' %}

Create user

All users ({{ users|length }})

{% for u in users %} {% endfor %}
Username Name Email Status Role Joined Actions
{{ u.username }} {% if u.id == request.user.id %}(you){% endif %} {{ u.first_name }} {{ u.last_name }} {{ u.email }} {% if u.is_active %}Active{% else %}Inactive{% endif %} {% if u.is_superuser %}Super admin{% else %}User{% endif %} {{ u.date_joined|date:"Y-m-d" }}
{% if u.id != request.user.id %} {% if u.is_superuser %} {% else %} {% endif %} {% if u.is_active %} {% else %} {% endif %} {% endif %}
{% endif %} {% endblock %}