modal test
This commit is contained in:
@@ -5,6 +5,8 @@ from server.views import *
|
||||
urlpatterns = [
|
||||
path('', to_list), # 跳转列表界面
|
||||
path('detail', to_detail), # 跳转详情界面
|
||||
path('modal', to_modal), #
|
||||
path('dashboard', to_dashboard), #
|
||||
path('create', JsMindView.as_view()), # 创建思维导图
|
||||
path('delete', JsMindView.as_view()), # 删除思维导图
|
||||
path('list', JsMindView.as_view()), # 查询思维导图
|
||||
|
||||
@@ -11,6 +11,20 @@ from server.util.mix_util import build_response
|
||||
from server.util.pagination import NewPagination
|
||||
|
||||
|
||||
def to_dashboard(request):
|
||||
"""
|
||||
界面
|
||||
"""
|
||||
return render(request, "html/dashboard.html")
|
||||
|
||||
|
||||
def to_modal(request):
|
||||
"""
|
||||
界面
|
||||
"""
|
||||
return render(request, "html/modal.html")
|
||||
|
||||
|
||||
def to_list(request):
|
||||
"""
|
||||
列表界面
|
||||
|
||||
+42
-26
@@ -3,53 +3,60 @@
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
||||
<meta name="description" content="">
|
||||
<meta name="author" content="Mark Otto, Jacob Thornton, and Bootstrap contributors">
|
||||
<meta name="generator" content="Hugo 0.88.1">
|
||||
<title>Dashboard Template · Bootstrap v4.6</title>
|
||||
|
||||
<!-- Bootstrap core CSS
|
||||
<link href="../assets/dist/css/bootstrap.min.css" rel="stylesheet">
|
||||
-->
|
||||
|
||||
<link rel="shortcut icon" href="/static/abl1b-qks1b-001.ico"/>
|
||||
<link rel="stylesheet" type="text/css" href="/static/css/dashboard.css">
|
||||
<link rel="stylesheet" type="text/css" href="/static/bootstrap-4.6.1-dist/css/bootstrap.css">
|
||||
|
||||
<style>
|
||||
.bd-placeholder-img {
|
||||
font-size: 1.125rem;
|
||||
text-anchor: middle;
|
||||
-webkit-user-select: none;
|
||||
-moz-user-select: none;
|
||||
-ms-user-select: none;
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
@media (min-width: 768px) {
|
||||
.bd-placeholder-img-lg {
|
||||
font-size: 3.5rem;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
||||
<!--script start-->
|
||||
<script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/popper.js@1.16.1/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/feather-icons@4.28.0/dist/feather.min.js"></script>
|
||||
<script src="https://cdn.jsdelivr.net/npm/chart.js@2.9.4/dist/Chart.min.js"></script>
|
||||
<script>
|
||||
$(function () {
|
||||
|
||||
})
|
||||
</script>
|
||||
<!--script end-->
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<button type="button" class="btn btn-primary" data-toggle="modal" data-target="#exampleModal">Primary</button>
|
||||
<!-- Modal start-->
|
||||
<div class="modal fade" id="exampleModal" aria-labelledby="exampleModalLabel" aria-hidden="true">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
...
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button type="button" class="btn btn-secondary" data-dismiss="modal">Close</button>
|
||||
<button type="button" class="btn btn-primary">Save changes</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Modal end-->
|
||||
|
||||
<nav class="navbar navbar-dark sticky-top bg-dark flex-md-nowrap p-0 shadow">
|
||||
<a class="navbar-brand col-md-2 col-lg-2 mr-0 px-3" href="#">协作思维导图</a>
|
||||
<ul class="navbar-nav px-3">
|
||||
<li class="nav-item text-nowrap">
|
||||
<a class="nav-link" href="#">Sign out</a>
|
||||
<a class="nav-link" href="#">登录/注册</a>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
|
||||
<div class="container-fluid">
|
||||
|
||||
<div class="row">
|
||||
<!-- 左侧菜单 -->
|
||||
<nav id="sidebarMenu" class="col-md-2 col-lg-2 d-md-block bg-light">
|
||||
@@ -90,7 +97,9 @@
|
||||
</div>
|
||||
</nav>
|
||||
|
||||
<!-- 右侧内容 -->
|
||||
<main role="main" class="col-md-10 ml-sm-auto col-lg-10 px-md-4">
|
||||
|
||||
<div class="d-flex justify-content-between flex-wrap flex-md-nowrap align-items-center pt-3 pb-2 mb-3 border-bottom">
|
||||
<h1 class="h2">全部文件</h1>
|
||||
</div>
|
||||
@@ -112,12 +121,19 @@
|
||||
<a href="#" class="btn btn-info">编辑</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</main>
|
||||
</div>
|
||||
</div>
|
||||
<script src="/static/js/dashboard.js"></script>
|
||||
|
||||
<script>
|
||||
if (window.feather) {
|
||||
window.feather.replace();
|
||||
}
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<title>Title</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user