-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathcards_set_template.html
79 lines (75 loc) · 2.51 KB
/
cards_set_template.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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
<!DOCTYPE html>
<html lang="it">
<head>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO" crossorigin="anonymous">
<style>
body {
margin: 5px;
margin-top: 2px;
margin-bottom: 1px;
}
h3 {
border-radius: 5px;
}
table {
border-collapse: separate;
border-spacing: 0;
min-width: 350px;
}
table tr td {
border-right: 1px solid #bbb;
border-bottom: 1px solid #bbb;
padding: 5px;
}
table tr td:first-child {
border-left: 1px solid #bbb;
}
/* top-left border-radius */
table tr:first-child td:first-child {
border-top-left-radius: 6px;
}
/* top-right border-radius */
table tr:first-child td:last-child {
border-top-right-radius: 6px;
}
/* bottom-left border-radius */
table tr:last-child td:first-child {
border-bottom-left-radius: 6px;
}
/* bottom-right border-radius */
table tr:last-child td:last-child {
border-bottom-right-radius: 6px;
}
</style>
</head>
<body>
{% for i, card in enumerate(cards_set) %}
{% if i == 4 %}
<div class="col-7 border border-dark mb-5 mt-1" style="page-break-inside: avoid; transform: rotate(90deg);position: absolute;top: 150px;right: -10%;">
{% elif i == 5 %}
<div class="col-7 border border-dark mb-5 mt-1" style="page-break-inside: avoid; transform: rotate(90deg);position: absolute;top: 800px;right: -10%;">
{% else %}
<div class="col-7 border border-dark mb-3 mt-1" style="page-break-inside: avoid;">
{% endif %}
<ul class="d-flex justify-content-between list-group-horizontal mb-1">
<li class="list-group-item border-0 pb-1"><img class="rounded" src="{{ logo_filename }}" height="50px"/></li>
<li class="list-group-item border-0 pb-1"><h3 class="border border-secondary mr-5 p-2"> {{ card.set_id }}.{{ card.id }} </h3></li>
</ul>
<table class="table">
<tbody>
{% for row in card.content %}
<tr>
{% for number in row %}
<td class="text-center">{{ number if number != -1 else ' ' }}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
<p class="text-center">
{{ bottom_text }}
</p>
</div>
{% endfor %}
</body>
</html>