-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpdf_template.html
More file actions
92 lines (92 loc) · 3.76 KB
/
pdf_template.html
File metadata and controls
92 lines (92 loc) · 3.76 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Sample</title>
<style>
h1 {
font: 200% calibri;
}
</style>
</head>
<body>
<h1 style="text-align:center"><strong>Аналитика по зарплатам и городам для профессии {{name}}</strong></h1>
<img src="D:\PyCharm.Projects\pythonProject6\graph.png" width="800" align="center">
<h1 style="text-align:center; "><strong>Статистика по годам</strong></h1>
<table style="font-family: Verdana, Geneva, Tahoma, sans-serif; width: 100%; border-collapse:collapse;">
<thead>
<tr>
{% for column_cells in columns_1: %}
<th style="border: 1px solid black; font-size: 18px; padding: 5px; text-align:center">
{{column_cells}}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for row in statistics: %}
<tr>
{% for data in row: %}
<td style="padding: 5px; border: 1px solid black; font-size: 14px; font-weight: normal; text-align:center">
{{data}}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
<h1 style="text-align:center"><strong>Статистика по городам</strong></h1>
<table>
<tr>
<td>
<table style="font-family: Verdana, Geneva, Tahoma, sans-serif; width: 100%; border-collapse:collapse;" align="left">
<thead>
<tr>
{% for column_cells in ["Город", "Уровень зарплат"]: %}
<th style="border: 1px solid black; font-size: 18px; padding: 5px; text-align:center">
{{column_cells}}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for item in salary_by_cities.items(): %}
<tr>
{% for element in item: %}
<td style="padding: 5px; border: 1px solid black; font-size: 14px; font-weight: normal; text-align:center">
{{element}}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</td>
<td>
<table style="font-family: Verdana, Geneva, Tahoma, sans-serif; width: 100%; border-collapse:collapse;" align="right">
<thead>
<tr>
{% for column_cells in ["Город", "Доля вакансий"]: %}
<th style="border: 1px solid black; font-size: 18px; padding: 5px; text-align:center">
{{column_cells}}
</th>
{% endfor %}
</tr>
</thead>
<tbody>
{% for item in vacs_by_cities.items(): %}
<tr>
{% for element in item: %}
<td style="padding: 5px; border: 1px solid black; font-size: 14px; font-weight: normal; text-align:center">
{{element}}
</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</td>
</tr>
</table>
</body>
</html>