|
@@ -9,14 +9,57 @@
|
|
|
<link rel="stylesheet" href="/lib/bootstrap/css/bootstrap.min.css">
|
|
|
<link rel="stylesheet" href="/web/maintain/bills_lib/css/main.css">
|
|
|
<link rel="stylesheet" href="/lib/font-awesome/font-awesome.min.css">
|
|
|
+ <style>
|
|
|
+ .avatar {
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ height: 38px;
|
|
|
+ cursor: pointer;
|
|
|
+ padding: 0 20px;
|
|
|
+ }
|
|
|
+ .avatar:hover {
|
|
|
+ text-decoration: none;
|
|
|
+ box-shadow: inset 0 3px 5px rgb(0 0 0 / 13%);
|
|
|
+ }
|
|
|
+ .avatar .dropdown-menu a {
|
|
|
+ display: block;
|
|
|
+ padding: 3px 20px;
|
|
|
+ clear: both;
|
|
|
+ font-weight: 400;
|
|
|
+ line-height: 1.42857143;
|
|
|
+ color: #333;
|
|
|
+ white-space: nowrap;
|
|
|
+ }
|
|
|
+ </style>
|
|
|
+ <script>
|
|
|
+ const isTemporary = '<%- manager.isTemporary %>';
|
|
|
+ </script>
|
|
|
</head>
|
|
|
|
|
|
<body>
|
|
|
<div class="header">
|
|
|
- <nav class="navbar navbar-toggleable-lg navbar-light bg-faded p-0 ">
|
|
|
+ <nav class="navbar navbar-toggleable-lg navbar-light bg-faded p-0 " style="display: flex; justify-content: space-between;">
|
|
|
<span class="header-logo px-2">清单规则编辑器</span>
|
|
|
- <div class="navbar-text"></div>
|
|
|
+ <% if (manager.isTemporary) { %>
|
|
|
+ <div style="cursor: pointer;">
|
|
|
+ <a href="/billsGuidance/main">
|
|
|
+ <span>切换到清单精灵编辑器</span>
|
|
|
+ </a>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
+ <% if (manager.isTemporary) { %>
|
|
|
+ <div class="avatar btn-group">
|
|
|
+ <a class="dropdown-toggle" data-toggle="dropdown">
|
|
|
+ <span><%= manager.username %></span>
|
|
|
+ </a>
|
|
|
+ <ul class="dropdown-menu dropdown-menu-right">
|
|
|
+ <li><a href="/login/logout">退出登录</a></li>
|
|
|
+ </ul>
|
|
|
+ </div>
|
|
|
+ <% } %>
|
|
|
</nav>
|
|
|
+
|
|
|
+ <% if (!manager.isTemporary) { %>
|
|
|
<nav class="navbar navbar-toggleable-lg justify-content-between navbar-light p-0">
|
|
|
<ul class="nav navbar-nav px-1">
|
|
|
<li class="nav-item">
|
|
@@ -24,7 +67,9 @@
|
|
|
</li>
|
|
|
</ul>
|
|
|
</nav>
|
|
|
+ <% } %>
|
|
|
</div>
|
|
|
+
|
|
|
<div class="main">
|
|
|
<div class="content">
|
|
|
<div class="container-fluid">
|
|
@@ -38,8 +83,8 @@
|
|
|
<th>清单规则类型</th>
|
|
|
<th width="160">添加时间</th>
|
|
|
<th width="70">操作</th>
|
|
|
- <th width="90">导入</th>
|
|
|
- <th width="90">复制</th>
|
|
|
+ <% if (!manager.isTemporary) { %><th width="90" >导入</th> <% } %>
|
|
|
+ <% if (!manager.isTemporary) { %><th width="90">复制</th><% } %>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
<tbody id="showArea">
|