1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- {% extends "info/layout.html" %}
- {% load static %}
- {% block script %}{% endblock %}
- {% block body %}
- <div id="main" class="container-fluid">
- <form method="post">
- {% csrf_token %}
- <div class="mb-3 mt-3">
- <label for="name" class="form-label">姓名:</label>
- <input type="name" class="form-control" id="name" placeholder="输入姓名" name="name" required maxlength="64" />
- </div>
- <div class="mb-3">
- <label for="pwd" class="form-label">密码:</label>
- <input type="password" class="form-control" id="pwd" placeholder="输入密码" name="password" minlength="6"
- maxlength="32" required />
- </div>
- <!-- <div class="form-check mb-3">
- <label class="form-check-label">
- <input class="form-check-input" type="checkbox" name="remember"> Remember me
- </label>
- </div> -->
- <button type="submit" class="btn btn-primary">登录</button>
- <!-- <div id="form-button-area">
- <a href="/register">注册</a>
- <a href="/forgotPassword">忘记密码</a>
- </div> -->
- </form>
- </div>
- <style type="text/css">
- form {
- justify-content: center;
- margin: 20px;
- width: 500px;
- }
- #main {
- display: inline-flex;
- justify-content: center;
- }
- #form-button-area {
- display: flex;
- justify-content: space-around;
- margin-top: 10px;
- }
- </style>
- {% endblock body %}
|