- 新增 Pagination 通用组件:首页/上一页/页码/下一页/末页导航 - PickModal 和 SwapModal 集成分页功能,每页20项 - 搜索/筛选切换自动回到第1页 - 现代化CSS样式:hover浮起动效、主色高亮、移动端适配 - 新增 dashboard、admin 管理模板 - 菜系(cuisine)模型和迁移 - 构建脚本 build.py 支持 PyInstaller 打包 - 前端资源重新构建
35 lines
1.4 KiB
HTML
35 lines
1.4 KiB
HTML
{% extends "registration/base.html" %}
|
|
|
|
{% block title %}登录 | {{ jazzmin_settings.site_title }}{% endblock %}
|
|
|
|
{% block content %}
|
|
<p class="login-box-msg">请登录以继续操作</p>
|
|
<form action="{{ app_path }}" method="post" id="login-form">
|
|
{% csrf_token %}
|
|
<div class="input-group mb-3">
|
|
<input type="text" name="username" class="form-control" placeholder="用户名" value="{{ form.username.value|default:'' }}" autofocus required>
|
|
<div class="input-group-text"><span class="fas fa-user"></span></div>
|
|
</div>
|
|
{% if form.username.errors %}
|
|
<div class="text-danger mb-2" style="font-size:12px">{{ form.username.errors.0 }}</div>
|
|
{% endif %}
|
|
<div class="input-group mb-3">
|
|
<input type="password" name="password" class="form-control" placeholder="密码" required>
|
|
<div class="input-group-text"><span class="fas fa-lock"></span></div>
|
|
</div>
|
|
{% if form.password.errors %}
|
|
<div class="text-danger mb-2" style="font-size:12px">{{ form.password.errors.0 }}</div>
|
|
{% endif %}
|
|
<input type="hidden" name="next" value="{{ next }}">
|
|
{% if form.non_field_errors %}
|
|
{% for error in form.non_field_errors %}
|
|
<div class="text-danger mb-2" style="font-size:12px">{{ error }}</div>
|
|
{% endfor %}
|
|
{% endif %}
|
|
<div class="row">
|
|
<div class="col-12">
|
|
<button type="submit" class="btn btn-primary btn-block">登录</button>
|
|
</div>
|
|
</div>
|
|
</form>
|
|
{% endblock %} |