forked from jjhyphen/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
movies.html
56 lines (49 loc) · 1.33 KB
/
movies.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>Director</th>
<th>Year</th>
<th>Genre</th>
<th>Description</th>
<th>Quantity</th>
<th> </th>
<th> </th>
</tr>
</thead>
<tbody>
{% for row in value %}
<tr>
<td>{{row[0]}}</td>
<td>{{row[1]}}</td>
<td>{{row[2]}}</td>
<td>{{row[3]}}</td>
<td>{{row[4]}}</td>
<td>{{row[5]}}</td>
<td>{{row[6]}}</td>
<td> <a href="{{ url_for('editmovie', id=row[0]) }}" > Edit </a></td>
<td><a href="{{ url_for('deletemovies', id=row[0]) }}" > Delete </a></td>
</tr>
{% endfor %}
</tbody>
</table>
<a href="{{ url_for('addmovies')}}">ADD MOVIES</a>
</body>
</html>
{% endblock %}