blob: 0a65b2a9263bb54008b5da065e89952c002c2b5b (
plain) (
blame)
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
|
<html>
<head>
<style>
body {
{{ print_options.grayscale }};
padding: 0;
margin: 0;
font-size: {{ template_options.font_size }}vw;
line-height: {{ template_options.line_spacing }};
font-family: {{ template_options.font }};
}
h1 {
float: left;
font-size: {{ template_options.font_size }}vw;
}
th {
font-size: {{ template_options.font_size }}vw;
page-break-inside: avoid;
-webkit-column-break-inside: avoid;
padding-top: 1vh;
padding-bottom: 1vh;
-webkit-box-sizing: border-box;
box-sizing: border-box;
border:max(1px, 0.1vw);
border-style:solid;
border-color: {{ template_options.color6 }};
}
#body_div {
background-color: {{ template_options.color1 }};
}
.mainContainer {
width: 99%;
height: 100%;
margin-left: 0.5%;
margin-right: 0.5%;
margin-top: 0%;
margin-bottom: 0%;
overflow: hidden;
border-width: 0;
page-break-inside: avoid;
}
.table_class {
overflow: hidden;
width: 100%;
margin: 0%;
}
</style>
</head>
<body data-numberofdives = 0>
<div id="body_div">
<table class="table_class">
<tr style="background-color: {{ template_options.color2 }}; color: {{ template_options.color4 }}">
<th>Dive #</th>
<th>Date</th>
<th>Time</th>
<th>Depth</th>
<th>Duration</th>
<th>Master</th>
<th>Location</th>
</tr>
{% block main_rows %}
{% for dive in dives %}
<tr style="background-color: {{ template_options.color3 }}; color: {{ template_options.color5 }};">
<th>{{ dive.number }}</th>
<th>{{ dive.date }}</th>
<th>{{ dive.time }}</th>
<th>{{ dive.depth }}</th>
<th>{{ dive.duration }}</th>
<th>{{ dive.divemaster }}</th>
<th>{{ dive.location }}</th>
</tr>
{% endfor %}
{% endblock %}
</table>
</div>
</body>
</html>
|