forked from jjhyphen/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
delete.html
56 lines (45 loc) · 1.1 KB
/
delete.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
<!DOCTYPE html>
<html>
<body>
{% extends "layout.html" %}
{% block content %}
<style>
table, th, td {
border: 1px solid black;
border-collapse: collapse;
}
th, td {
padding: 5px;
text-align: left;
}
</style>
<table style="width:100%">
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Author</th>
<th>Publisher</th>
<th>Year</th>
<th>Description</th>
</tr>
</thead>
<tbody>
{% for row in value %}
<tr>
<td>{{row[5]}}</td>
<td>{{row[0]}}</td>
<td>{{row[1]}}</td>
<td>{{row[2]}}</td>
<td>{{row[3]}}</td>
<td>{{row[4]}}</td>
<form action="{{url_for('deletebooks', id=row[5])}}" method="post">
<input type="submit" value="DELETE">
</form>
</tr>
{% endfor %}
</tbody>
</table>
</body>
</html>
{% endblock %}