mirror of
https://github.com/hequan2017/seal.git
synced 2026-05-11 11:06:41 +08:00
v0.1 基础版本
v0.1 基础版本
This commit is contained in:
24
templates/system/index.html
Normal file
24
templates/system/index.html
Normal file
@@ -0,0 +1,24 @@
|
||||
{% extends "base/base.html" %}
|
||||
{% load static %}
|
||||
{% block title %} 海豹 | 首页{% endblock %}
|
||||
|
||||
|
||||
{% block header-css %}
|
||||
|
||||
{% endblock %}
|
||||
|
||||
|
||||
{% block page-content %}
|
||||
<div class="wrapper wrapper-content">
|
||||
|
||||
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
{% endblock %}
|
||||
|
||||
{% block footer-js %}
|
||||
|
||||
{% endblock %}
|
||||
57
templates/system/login.html
Normal file
57
templates/system/login.html
Normal file
@@ -0,0 +1,57 @@
|
||||
{% load static %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<title>海豹 | 登录</title>
|
||||
<link href=" {% static "css/bootstrap.min.css" %}" rel="stylesheet">
|
||||
<link href="{% static "font-awesome/css/font-awesome.css" %}" rel="stylesheet">
|
||||
|
||||
<link href="{% static "css/animate.css" %}" rel="stylesheet">
|
||||
<link href="{% static "css/style.css" %} " rel="stylesheet">
|
||||
|
||||
|
||||
</head>
|
||||
|
||||
<body class="gray-bg">
|
||||
|
||||
<div class="middle-box text-center loginscreen animated fadeInDown">
|
||||
<div>
|
||||
<div>
|
||||
</div>
|
||||
<h3>欢迎登录 海豹 系统</h3>
|
||||
<form class="m-t" role="form" action="{% url "system:login" %}" method="POST">
|
||||
{% csrf_token %}
|
||||
<div class="form-group">
|
||||
<input type="text" name="username" class="form-control" placeholder="用户名" required="">
|
||||
</div>
|
||||
<div class="form-group">
|
||||
<input type="password" name="password" class="form-control" placeholder="密码" required="">
|
||||
</div>
|
||||
<button type="submit" class="btn btn-primary block full-width m-b">登录</button>
|
||||
|
||||
<a href="#">
|
||||
<span style="color: red;"> {{ error_msg }}</span><br>
|
||||
不推荐使用IE/360浏览器(兼容模式)浏览!<br />
|
||||
|
||||
</a>
|
||||
<div id="login_container"></div>
|
||||
|
||||
|
||||
</form>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<script src="{% static "js/jquery-3.1.1.min.js" %}"></script>
|
||||
<script src="{% static "js/bootstrap.min.js" %}"></script>
|
||||
|
||||
|
||||
</body>
|
||||
|
||||
</html>
|
||||
66
templates/system/password.html
Normal file
66
templates/system/password.html
Normal file
@@ -0,0 +1,66 @@
|
||||
{% extends "base/base.html" %}
|
||||
{% load bootstrap4 %}
|
||||
{% block title %}海豹 | 修改密码{% endblock %}
|
||||
|
||||
{% block header-css %}
|
||||
{% endblock %}
|
||||
|
||||
{% block page-content %}
|
||||
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<div class="row">
|
||||
<div class="col-sm-12">
|
||||
<div class="ibox float-e-margins">
|
||||
<div class="panel-options">
|
||||
<ul class="nav nav-tabs">
|
||||
|
||||
<li class="active">
|
||||
<a href="" class="text-center">密码 </a>
|
||||
</li>
|
||||
|
||||
</ul>
|
||||
</div>
|
||||
<div class="tab-content" style="background-color: #ffffff">
|
||||
<div class="wrapper wrapper-content animated fadeInRight">
|
||||
<form method="post" class="form-horizontal" action="" enctype="multipart/form-data">
|
||||
{% csrf_token %}
|
||||
|
||||
{% if form.non_field_errors %}
|
||||
<div class="alert alert-danger" style="margin: 20px auto 0px">
|
||||
{{ form.non_field_errors }}
|
||||
</div>
|
||||
{% endif %}
|
||||
<div class="form-group">
|
||||
<div class="col-sm-10 col-sm-offset-0"> {{ msg }}
|
||||
{% bootstrap_field form.old_password layout="horizontal" %}
|
||||
{% bootstrap_field form.new_password layout="horizontal" %}
|
||||
{% bootstrap_field form.confirm_password layout="horizontal" %}</div>
|
||||
</div>
|
||||
|
||||
<div class="hr-line-dashed"></div>
|
||||
<div class="form-group">
|
||||
<div class="col-sm-4 col-sm-offset-3">
|
||||
|
||||
<button id="submit_button" class="btn btn-primary" type="submit">提交</button>
|
||||
<button class="btn btn-white" type="reset">重置</button>
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{% endblock %}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
{% block footer-js %}
|
||||
{% endblock %}
|
||||
Reference in New Issue
Block a user