-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
51 lines (46 loc) · 1.14 KB
/
form.html
File metadata and controls
51 lines (46 loc) · 1.14 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
<!DOCTYPE html>
<html>
<head>
<meta charset='UTF-8'>
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
<title>Registration</title>
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' type='text/css' media ='screen' href='main.css'
<script src='main.js'></script>
</head>
<style>
table {
font-family: arial, sans-serif;
border-collapse: collapse;
}
td, th {
border: 1px solid #dddddd;
text-align: left;
padding: 8px;
}
tr:nth-child(even) {
background-color: #dddddd;
}
</style>
<body>
<table>
<th> ID </th>
<th> First Name </th>
<th> Last Name </th>
<th> Service Category </th>
<th> From </th>
<th> To </th>
{% for reg in regs %}
<tr>
<td> <a href = "{% url 'show' reg.id %}" class = "btn btn-warning btn-sm">{{reg.id}}</a></td>
<td> {{reg.first_name}}</td>
<td>{{reg.last_name}}</td>
<td>{{reg.service_category}}</td>
<td>{{reg.to_date}}
</td>
<td>{{reg.from_date}}</td>
</tr>
{% endfor %}
</table>
</body>
</html>