IDDRS/templates/App/pdf-output.html

79 lines
2.0 KiB
HTML
Raw Permalink Normal View History

2022-07-25 10:03:35 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.1.3/dist/css/bootstrap.min.css"
integrity="sha384-1BmE4kWBq78iYhFldvKuhfTAU6auU8tT94WrHftjDbrCEXSU1oBoqyl2QvZ6jIW3" crossorigin="anonymous">
<title>PDF Output</title>
<style>
@page {
size: "A4";
margin: 2.5cm 1.5cm 2.5cm 1.5cm;
@bottom-right{
content: "page " counter(page)" of " counter(pages);
font-size: 10px;
}
@bottom-left{
content: attr(data-date)
}
@top-left{
content: "{{ phrase }}";
font-size: 10px;
color: #a4a4a4;
}
}
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>
{% 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.pageNumber }} </span>
<br>{{ result.paragraph|safe|linebreaks }} </p>
<hr>
{% endfor %}
</body>
</html>