TasksManager/templates/tasks/login.html

91 lines
3.0 KiB
HTML

{% load static %}
<!DOCTYPE html>
<html lang="zh-hans">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>任务管理系统</title>
<!-- Google Font: Source Sans Pro -->
<link rel="stylesheet" href="{% static 'tasks/dist/css/googlefont.css' %}">
<!-- Font Awesome Icons -->
<link rel="stylesheet" href="{% static 'tasks/plugins/fontawesome-free/css/all.min.css' %}">
<!-- icheck bootstrap -->
<link rel="stylesheet" href="{% static 'tasks/plugins/icheck-bootstrap/icheck-bootstrap.min.css' %}">
<!-- Theme style -->
<link rel="stylesheet" href="{% static 'tasks/dist/css/adminlte.min.css' %}">
</head>
<body class="hold-transition login-page">
<div class="login-box">
<!-- /.login-logo -->
<div class="card card-outline card-primary">
<div class="card-header text-center">
<a href="{% url 'tasks:index' %}" class="h1"><b>任务</b>管理系统</a>
</div>
<div class="card-body">
<p class="login-box-msg">登录以继续</p>
<form action="" method="post">
<div class="input-group mb-3">
<input type="text" class="form-control" name="username" placeholder="用户名">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-user"></span>
</div>
</div>
</div>
<div class="input-group mb-3">
<input type="password" class="form-control" name="password" placeholder="密码">
<div class="input-group-append">
<div class="input-group-text">
<span class="fas fa-lock"></span>
</div>
</div>
</div>
<div class="row">
<div class="col-8">
<div class="icheck-primary">
<input type="checkbox" id="remember">
<label for="remember">
记住我
</label>
</div>
</div>
<!-- /.col -->
<div class="col-4">
<button id="alert-target" type="submit" class="btn btn-primary btn-block">登录</button>
<script>
{% if messages %}
{% for msg in messages %}
toastr.{{ msg.tags }}("{{ msg }}");
{% endfor %}
{% endif %}
</script>
</div>
<!-- /.col -->
</div>
{% csrf_token %}
</form>
{# <p class="mb-1">#}
{# <a href="#">无法登录?</a>#}
{# </p>#}
</div>
<!-- /.card-body -->
</div>
<!-- /.card -->
</div>
<!-- /.login-box -->
<!-- jQuery -->
<script src="{% static 'tasks/plugins/jquery/jquery.min.js' %}"></script>
<!-- Bootstrap 4 -->
<script src="{% static 'tasks/plugins/bootstrap/js/bootstrap.bundle.min.js' %}"></script>
<!-- AdminLTE App -->
<script src="{% static 'tasks/dist/js/adminlte.min.js' %}"></script>
<!-- toastr -->
<script src="{% static 'tasks/plugins/toastr/toastr.min.js' %}"></script>
</body>
</html>