power_list.html
5.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
{% extends 'admin/admin.html' %}
{% import 'common/admin_page.html' as pg %}
{% block css %}
<style>
* {
font-family: "Microsoft YaHei";
}
.table > tbody > tr > td, .table > tbody > tr > th, .table > tfoot > tr > td, .table > tfoot > tr > th, .table > thead > tr > td, .table > thead > tr > th {
vertical-align: middle;
text-align: center;
}
</style>
{% endblock %}
{% block content %}
<!--内容-->
<section class="content-header">
<h1>安监物联管理系统</h1>
<ol class="breadcrumb">
<li><a href="#"><i class="fa fa-dashboard"></i> 权限管理</a></li>
<li class="active">权限列表</li>
</ol>
</section>
<section class="content" id="showcontent">
<div class="row">
<div class="col-md-12">
<div class="box box-primary">
<div class="box-header">
<h3 class="box-title">权限列表</h3>
<div >
<span class="input-group-btn">
<a href="{{url_for('admin.power_add')}}" class="label label-info">
<button type="button" class="btn btn-info btn-flat"><i class="fa fa-plus"></i>
添加
</button>
</a>
</span>
</div>
<div class="box-tools">
<form action="" method="GET">
<div class="input-group input-group-sm" style="width: 150px;">
<input type="text" name="keywords" class="form-control pull-right"
placeholder="请输入关键字...">
<div class="input-group-btn">
<button type="submit" class="btn btn-default"><i class="fa fa-search"></i>
</button>
</div>
</div>
</form>
</div>
</div>
<div class="box-body table-responsive no-padding">
{% for msg in get_flashed_messages(category_filter=["ok"]) %}
<div class="alert alert-success alert-dismissible">
<button type="button" class="close" data-dismiss="alert" aria-hidden="true">×
</button>
<h4><i class="icon fa fa-check"></i> 操作成功</h4>
{{ msg }}
</div>
{% endfor %}
<table class="table table-hover">
<tbody>
<tr>
<th>编号</th>
<th>权限名称</th>
<th>添加时间</th>
<th>操作事项</th>
</tr>
{% for v in page_data.items %}
<tr>
<td>{{ v.id }}</td>
<td>{{ v.name }}</td>
<td>{{ v.addtime }}</td>
<td>
<a href="{{url_for('admin.power_edit', id=v.id)}}"
class="label label-success">编辑</a>
<a href="{{url_for('admin.power_del',id=v.id)}}" class="label label-danger">删除</a>
</td>
</tr>
{% endfor %}
</tbody>
</table>
</div>
<div class="box-footer clearfix">
{# <ul class="pagination pagination-sm no-margin pull-right">#}
{# <li><a href="#">首页</a></li>#}
{# <li><a href="#">上一页</a></li>#}
{# <li><a href="#">1</a></li>#}
{# <li><a href="#">2</a></li>#}
{# <li><a href="#">3</a></li>#}
{# <li><a href="#">下一页</a></li>#}
{# <li><a href="#">尾页</a></li>#}
{# </ul>#}
{{ pg.page(page_data,'admin.power_list') }}
</div>
</div>
</div>
</div>
</section>
<!--内容-->
{% endblock %}
{% block js %}
<script>
$(document).ready(function () {
$("#g-3").addClass("active");
$("#g-3-1").addClass("active");
});
</script>
{% endblock %}