MrDoc/template/app_admin/admin_base.html

84 lines
3.4 KiB
HTML
Raw Normal View History

2019-07-21 22:08:04 +08:00
{% load staticfiles %}
<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta charset="UTF-8">
<title>{% block title %}{% endblock %} - 后台管理 - MrDoc</title>
2019-12-01 20:44:16 +08:00
<link rel="icon" href="{% static 'favicon_16.png' %}"/>
2019-07-21 22:08:04 +08:00
<link href="{% static 'layui/css/layui.css' %}" rel="stylesheet">
2019-07-23 10:57:42 +08:00
<style>
.logo img{
height: 30px;
}
</style>
2019-07-21 22:08:04 +08:00
</head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
<div class="layui-header">
2019-07-23 10:57:42 +08:00
<div class="layui-logo">
<a class="logo" href="{% url 'pro_list' %}">
2019-07-25 15:25:27 +08:00
{# <img src="/media/logo-white.png" />#}
<h1 style="color: white;">
<strong>MrDoc</strong>
2019-11-03 20:36:34 +08:00
<span style="font-size: 14px;" class="layui-badge-rim">后台管理</span>
2019-07-25 15:25:27 +08:00
</h1>
2019-07-23 10:57:42 +08:00
</a>
</div>
2019-07-21 22:08:04 +08:00
<ul class="layui-nav layui-layout-right">
<li class="layui-nav-item">
2019-07-25 15:25:27 +08:00
<a href="javascript:void(0);">
2019-07-21 22:08:04 +08:00
<i class="layui-icon layui-icon-username"></i> {{request.user.username}}
</a>
<dl class="layui-nav-child">
<!-- <dd><a href="">基本资料</a></dd> -->
<dd><a href="{% url 'manage_project' %}">个人中心</a></dd>
2019-07-21 22:08:04 +08:00
<dd><a href="{% url 'logout' %}">退出登录</a></dd>
</dl>
</li>
</ul>
</div>
<div class="layui-side layui-bg-black">
<div class="layui-side-scroll">
<!-- 左侧导航区域可配合layui已有的垂直导航 -->
<ul class="layui-nav layui-nav-tree" lay-filter="test">
<li class="layui-nav-item layui-nav-itemed">
2019-07-25 15:25:27 +08:00
<a href="{% url 'project_manage' %}"><i class="layui-icon layui-icon-list"></i> 文集管理</a>
2019-07-21 22:08:04 +08:00
</li>
<li class="layui-nav-item layui-nav-itemed">
2019-07-25 15:25:27 +08:00
<a href="{% url 'doc_manage' %}"><i class="layui-icon layui-icon-file-b"></i> 文档管理</a>
2019-07-21 22:08:04 +08:00
</li>
2019-07-23 10:57:42 +08:00
<li class="layui-nav-item layui-nav-itemed">
2019-07-25 15:25:27 +08:00
<a href="{% url 'doctemp_manage' %}"><i class="layui-icon layui-icon-template"></i> 文档模板管理</a>
2019-07-23 10:57:42 +08:00
</li>
{% if request.user.is_superuser %}
<li class="layui-nav-item layui-nav-itemed">
<a href="{% url 'user_manage' %}"><i class="layui-icon layui-icon-user"></i> 用户管理</a>
</li>
2019-12-01 20:44:16 +08:00
<li class="layui-nav-item layui-nav-itemed">
<a href="{% url 'sys_setting' %}"><i class="layui-icon layui-icon-set-sm"></i> 站点设置</a>
</li>
<li class="layui-nav-item layui-nav-itemed">
<a href="{% url 'register_code_manage' %}"><i class="layui-icon layui-icon-engine"></i> 注册码管理</a>
2019-12-01 20:44:16 +08:00
</li>
2019-07-23 10:57:42 +08:00
{% endif %}
2019-07-21 22:08:04 +08:00
</ul>
</div>
</div>
<div class="layui-body">
<!-- 内容主体区域 -->
<div style="padding: 15px;">{% block content %}{% endblock %}</div>
</div>
<div class="layui-footer" style="text-align:center;">
<!-- 底部固定区域 -->
2019-12-01 20:44:16 +08:00
© 2019 <a href="http://mrdoc.zmister.com" target="_blank">MrDoc</a> - 一个简单的文档系统
2019-07-21 22:08:04 +08:00
</div>
</div>
<script src="https://cdn.bootcss.com/jquery/3.1.1/jquery.min.js"></script>
<script src="{% static 'layui/layui.all.js' %}"></script>
{% block custom_script %}
{% endblock %}
</body>
</html>