Peter needed a second user for throwaway testing without going through Django admin each time. Superusers now get a "Users" tab in Settings (hidden for regular users) with a create-user form and a list of existing accounts. New users are regular (non-staff, non-superuser) by default, with an optional "Grant admin access" checkbox; creating one immediately issues their API token and displays it once, since that's the credential an agent account needs and a human account can otherwise regenerate for themselves later from their own Settings -> Account. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
32 lines
1.3 KiB
HTML
32 lines
1.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>Settings — AgentFeed</title>
|
|
<link rel="stylesheet" href="/static/daybook.css">
|
|
</head>
|
|
<body>
|
|
{% include "artifacts/_topbar.html" %}
|
|
|
|
<main class="settings-layout">
|
|
<nav class="settings-nav">
|
|
<a class="settings-nav-back" href="{% url 'feed' %}">← Back to Feed</a>
|
|
<a class="{% if active_section == 'account' %}selected{% endif %}" href="{% url 'settings-account' %}">Account</a>
|
|
<a class="{% if active_section == 'storage' %}selected{% endif %}" href="{% url 'settings-storage' %}">Storage</a>
|
|
<a class="{% if active_section == 'demo-data' %}selected{% endif %}" href="{% url 'settings-demo-data' %}">Demo Data</a>
|
|
{% if request.user.is_superuser %}
|
|
<a class="{% if active_section == 'users' %}selected{% endif %}" href="{% url 'settings-users' %}">Users</a>
|
|
{% endif %}
|
|
</nav>
|
|
<section class="settings-panel">
|
|
{% if messages %}
|
|
<ul class="settings-messages">
|
|
{% for message in messages %}<li>{{ message }}</li>{% endfor %}
|
|
</ul>
|
|
{% endif %}
|
|
{% block settings_content %}{% endblock %}
|
|
</section>
|
|
</main>
|
|
</body>
|
|
</html>
|