Files
luntan/app/templates/admin/sub_admin.html

21 lines
823 B
HTML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
{% extends 'base.html' %}
{% block title %}副管理员{% endblock %}
{% block content %}
<h3 class="mb-3">副管理员管理</h3>
<form class="card p-3 mb-3" method="post">
<input type="hidden" name="csrf_token" value="{{ csrf_token }}">
<div class="mb-2"><input class="form-control" name="email" placeholder="邮箱" required></div>
<div class="mb-2"><input class="form-control" name="username" placeholder="用户名" required></div>
<div class="mb-2"><input class="form-control" name="password" type="password" placeholder="密码" required></div>
<button class="btn btn-brand" type="submit">创建副管理员</button>
</form>
<div class="card p-3">
<h5>现有副管理员</h5>
<ul>
{% for u in users %}
<li>{{ u.username }}{{ u.email }}</li>
{% endfor %}
</ul>
</div>
{% endblock %}