69 lines
1.5 KiB
HTML
Executable File
69 lines
1.5 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<!-- Required meta tags -->
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
|
|
<!-- Bootstrap CSS -->
|
|
|
|
<title>{{ phrase }}</title>
|
|
<style>
|
|
@media print {
|
|
body{
|
|
width: 21cm;
|
|
height: 29.7cm;
|
|
margin: 15mm 15mm 15mm 15mm;
|
|
/* change the margins as you want them to be. */
|
|
}
|
|
}
|
|
p{
|
|
font-family: Arial, Helvetica, sans-serif;
|
|
font-size: 12px !important;
|
|
}
|
|
.indent{
|
|
margin-left: 15px;
|
|
}
|
|
.level{
|
|
font-size: 14px !important;
|
|
}
|
|
.level-text-1 {
|
|
color: #F07F4E;
|
|
}
|
|
|
|
.level-text-2 {
|
|
color: #008DCA;
|
|
}
|
|
|
|
.level-text-3 {
|
|
color: #00A554;
|
|
}
|
|
|
|
.level-text-4 {
|
|
color: #7366A3;
|
|
}
|
|
|
|
.level-text-5 {
|
|
color: #D10007;
|
|
}
|
|
|
|
.level-text-6 {
|
|
color: #CF7AB2;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<h1>{{ phrase }}</h1>
|
|
{% for result in results %}
|
|
<p>
|
|
<span class="level level-text-{{result.Level}}">Level {{ result.Level }} {{ result.LevelName }}</span>
|
|
<br />
|
|
IDDRS {{ result.Module }} <br /><span class="indent">{{ result.Heading1 }}
|
|
</span>
|
|
<br /><span class="indent">Page: {{ result.PageNum }} </span> <br />{{result.Paragraph|safe|linebreaks }}
|
|
</p>
|
|
<hr />
|
|
{% endfor %}
|
|
</body>
|
|
</html>
|