Files
DEMO-AGENT/templates/registration/login.html

31 lines
905 B
HTML

{% 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 %}