forked from iamzcr/dutyByPython
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmy_duty.html
60 lines (54 loc) · 1.73 KB
/
my_duty.html
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
{% extends "layout.html" %}
{% block body %}
<div class="container">
<div class="page-header">
<div class="list-group">
<a class="list-group-item active">
<h4 class="list-group-item-heading">Duty-list</h4>
</a>
</div>
</div>
</div>
<div class="container">
<form class="form-inline">
<div class="form-group">
<label for="exampleInputEmail2">Category</label>
<select class="form-control" name="name">
{% if category_list %}
{% for category in category_list %}
<option value="{{category.category_id}}">{{category.name}}</option>
{% endfor %}
{% endif %}
</select>
</div>
<button type="submit" class="btn btn-default">Search</button>
</form>
<a class="btn btn-danger" href="{{ url_for ('add_duty') }}">ADD</a><a class="btn btn-success" href="{{ url_for ('add_category') }}">Add Category</a>
</div>
<div class="container">
<table class=" table table-hover">
<thead>
<th class="active">ID</th>
<th class="active">Title</th>
<th class="active">Category</th>
<th class="active">是否公开</th>
<th class="active">是否完成</th>
<th class="active">创建时间</th>
</thead>
<tbody>
{% if duty_list %}
{% for duty in duty_list %}
<tr>
<td class="active">{{duty.duty_id}}</td>
<td class="success">{{duty.title}}</td>
<td class="warning">{{duty.name}}</td>
<td class="danger">{% if duty.is_show == 1 %}是{% else %}否{% endif %}</td>
<td class="info">{% if duty.status == 1 %}是{% else %}否{% endif %}</td>
<td class="info">{{duty.create_time}}</td>
</tr>
{% endfor %}
{% endif %}
</tbody>
</table>
</div>
{% endblock %}