2024-07-12 20:32:33 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
<head>
|
2024-07-13 20:33:20 +08:00
|
|
|
<meta charset="utf-8">
|
2024-07-12 20:32:33 +08:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2024-07-13 20:33:20 +08:00
|
|
|
<link rel="shortcut icon" href="/static/img/favicon.ico">
|
2024-07-12 20:32:33 +08:00
|
|
|
<link href="/static/css/bootstrap.min.css" rel="stylesheet">
|
2024-07-14 20:31:27 +08:00
|
|
|
<link href="/static/css/sweetalert.css" rel="stylesheet">
|
|
|
|
<script src="/static/js/jquery-3.3.1.min.js"></script>
|
|
|
|
<script src="/static/js/popper.min.js"></script>
|
|
|
|
<script src="/static/js/bootstrap.min.js"></script>
|
|
|
|
<script src="/static/js/sweetalert.min.js"></script>
|
|
|
|
<script src="/static/js/common.js"></script>
|
|
|
|
{{template "style" .}}
|
2024-07-13 20:33:20 +08:00
|
|
|
<title>{{.Title}}</title>
|
2024-07-12 20:32:33 +08:00
|
|
|
</head>
|
|
|
|
<body>
|
2024-07-13 20:33:20 +08:00
|
|
|
<div class="container-fluid bg-dark" style="padding-left: 0; padding-right: 0">
|
|
|
|
<div class="container" style="padding-left: 0; padding-right: 0">
|
|
|
|
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
|
|
|
|
<a class="navbar-brand" href="/">后台管理</a>
|
2024-07-16 20:32:22 +08:00
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav"
|
|
|
|
aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
2024-07-13 20:33:20 +08:00
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse pl-5" id="navbarNav">
|
|
|
|
<ul class="navbar-nav">
|
2024-07-16 20:32:22 +08:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link {{if eq .Active "/"}}active{{end}}" href="/">图片上传</a>
|
2024-07-12 20:32:33 +08:00
|
|
|
</li>
|
2024-07-16 20:32:22 +08:00
|
|
|
{{ if .IsSuper }}
|
2024-07-13 20:33:20 +08:00
|
|
|
<li class="nav-item">
|
2024-07-16 20:32:22 +08:00
|
|
|
<a class="nav-link {{if eq .Active "/user"}}active{{end}}" href="/user">用户管理</a>
|
2024-07-12 20:32:33 +08:00
|
|
|
</li>
|
2024-07-13 20:33:20 +08:00
|
|
|
<li class="nav-item">
|
2024-07-16 20:32:22 +08:00
|
|
|
<a class="nav-link {{if eq .Active "/domain"}}active{{end}}" href="/domain">域名管理</a>
|
2024-07-12 20:32:33 +08:00
|
|
|
</li>
|
2024-07-13 20:33:20 +08:00
|
|
|
<li class="nav-item">
|
2024-07-16 20:32:22 +08:00
|
|
|
<a class="nav-link {{if eq .Active "/picture"}}active{{end}}" href="/picture">图片管理</a>
|
2024-07-12 20:32:33 +08:00
|
|
|
</li>
|
2024-07-16 20:32:22 +08:00
|
|
|
{{ end }}
|
2024-07-12 20:32:33 +08:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-16 20:32:22 +08:00
|
|
|
<div class="container" style="padding: 20px">
|
2024-07-14 20:31:27 +08:00
|
|
|
{{ .csrfField }}
|
2024-07-13 20:33:20 +08:00
|
|
|
{{template "content" .}}
|
|
|
|
</div>
|
2024-07-21 20:31:04 +08:00
|
|
|
<!-- 弹出表单模态框 -->
|
|
|
|
<div class="modal fade" id="genericFormModal" tabindex="-1" aria-labelledby="genericFormModalLabel" aria-hidden="true">
|
|
|
|
<div class="modal-dialog">
|
|
|
|
<div class="modal-content">
|
|
|
|
<div class="modal-header">
|
2024-07-23 20:39:02 +08:00
|
|
|
<h5 class="modal-title" id="genericFormModalLabel">标题</h5>
|
2024-07-21 20:31:04 +08:00
|
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
<div class="modal-body">
|
|
|
|
<form id="genericForm">
|
|
|
|
<!-- 动态表单内容 -->
|
|
|
|
</form>
|
|
|
|
</div>
|
|
|
|
<div class="modal-footer">
|
|
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">关闭</button>
|
|
|
|
<button type="button" class="btn btn-primary" id="genericFormSubmit">提交</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2024-07-14 20:31:27 +08:00
|
|
|
{{template "script" .}}
|
2024-07-12 20:32:33 +08:00
|
|
|
</body>
|
|
|
|
</html>
|