44 lines
1.4 KiB
Plaintext
44 lines
1.4 KiB
Plaintext
@using RazorLight
|
|
@inherits TemplatePage<Elwig.Documents.Document>
|
|
@model Elwig.Documents.Document
|
|
<!DOCTYPE html>
|
|
<html lang="de-AT">
|
|
<head>
|
|
<title>@Model.Title</title>
|
|
<meta name="author" value="@Model.Author"/>
|
|
<meta charset="UTF-8"/>
|
|
<script>
|
|
const heightA4 = 297, widhtA4 = 210, heightFooter = 35, heightHeader = 25;
|
|
const heightMain = heightA4 - heightFooter - heightHeader;
|
|
function px2mm(px1, px2) {
|
|
return (px2 - px1 + 1) * 2.54 / 96 * window.devicePixelRatio * 10;
|
|
}
|
|
</script>
|
|
<link rel="stylesheet" href="file:///@Raw(Model.DataPath)\resources\style.css"/>
|
|
<link rel="stylesheet" href="file:///@Raw(Model.DataPath)\resources\style-page.css"/>
|
|
</head>
|
|
<body>
|
|
@if (Model.ShowFoldMarks) {
|
|
<div class="m1"></div>
|
|
<div class="m2"></div>
|
|
<div class="m3"></div>
|
|
<div class="m1 r"></div>
|
|
<div class="m2 r"></div>
|
|
<div class="m3 r"></div>
|
|
}
|
|
<div class="footer-wrapper">
|
|
<div class="pre-footer">
|
|
<span class="date">@($"{Model.Date:dddd, d. MMMM yyyy}")</span>
|
|
<span class="doc-id">@Model.DocumentId</span>
|
|
<span class="page"></span>
|
|
</div>
|
|
<footer>@Raw(Model.Footer)</footer>
|
|
</div>
|
|
<header>@Raw(Model.Header)</header>
|
|
<div class="spacing"></div>
|
|
<div class="main-wrapper">
|
|
@RenderBody()
|
|
</div>
|
|
</body>
|
|
</html>
|