feat(demo): 初始化审核智能体演示基线

This commit is contained in:
2026-06-04 23:42:37 +08:00
commit 84e045f5ab
23 changed files with 1571 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
{% extends "base.html" %}
{% block title %}登录 - DEMO-AGENT V2{% endblock %}
{% block content %}
<main class="login-page">
<section class="login-card" aria-labelledby="login-title">
<p class="eyebrow">DEMO-AGENT V2</p>
<h1 id="login-title">登录系统</h1>
<p class="muted">请输入账号和密码进入 Django 基础后台。</p>
{% if form.errors %}
<div class="alert" role="alert">用户名或密码不正确,请重新输入。</div>
{% endif %}
<form method="post" novalidate>
{% csrf_token %}
<input type="hidden" name="next" value="{{ next }}">
<label for="{{ form.username.id_for_label }}">用户名</label>
{{ form.username }}
<label for="{{ form.password.id_for_label }}">密码</label>
{{ form.password }}
<button class="button" type="submit">登录</button>
</form>
</section>
</main>
{% endblock %}

View File

@@ -0,0 +1,31 @@
{% extends "base.html" %}
{% block title %}修改密码 - DEMO-AGENT V2{% endblock %}
{% block content %}
<main class="login-page">
<section class="login-card">
<p class="eyebrow">审核智能体</p>
<h1>修改密码</h1>
<p class="muted">输入当前密码,并设置新的登录密码。</p>
<form method="post">
{% csrf_token %}
{% if form.non_field_errors %}
<div class="alert" role="alert">{{ form.non_field_errors }}</div>
{% endif %}
{% for field in form %}
<label for="{{ field.id_for_label }}">{{ field.label }}</label>
{{ field }}
{% if field.errors %}
<div class="alert" role="alert">{{ field.errors }}</div>
{% endif %}
{% endfor %}
<button class="button" type="submit">保存密码</button>
</form>
</section>
</main>
{% endblock %}