97 lines
1.9 KiB
HTML
97 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<style>
|
|
@page {
|
|
size: {{ page_width }} {{ page_height }};
|
|
margin: {{ margin_top }}px {{ margin_right }}px {{ margin_bottom }}px {{ margin_left }}px;
|
|
{{ page_number_css|safe }}
|
|
}
|
|
* {
|
|
margin: 0;
|
|
padding: 0;
|
|
box-sizing: border-box;
|
|
}
|
|
body {
|
|
font-family: {{ font_family|safe }};
|
|
font-size: 12pt;
|
|
line-height: 1.6;
|
|
color: #333;
|
|
}
|
|
.document-body {
|
|
width: 100%;
|
|
position: relative;
|
|
}
|
|
.element {
|
|
margin-bottom: 5px;
|
|
}
|
|
.element-text {
|
|
white-space: pre-wrap;
|
|
}
|
|
.element-field {
|
|
display: inline-block;
|
|
}
|
|
.element-field .label {
|
|
font-weight: normal;
|
|
}
|
|
.element-field .value {
|
|
border-bottom: 1px solid #333;
|
|
min-width: 100px;
|
|
display: inline-block;
|
|
padding: 0 5px;
|
|
}
|
|
.element-table, .info-table, .detail-table, .info-row {
|
|
width: 100%;
|
|
border-collapse: collapse;
|
|
}
|
|
.element-table th,
|
|
.element-table td {
|
|
border: 1px solid #333;
|
|
padding: 8px;
|
|
text-align: left;
|
|
}
|
|
.element-table th {
|
|
background-color: #f5f5f5;
|
|
font-weight: bold;
|
|
}
|
|
.element-image {
|
|
max-width: 100%;
|
|
}
|
|
.element-signature {
|
|
max-width: 150px;
|
|
max-height: 60px;
|
|
}
|
|
.element-qrcode,
|
|
.element-barcode,
|
|
.element-image {
|
|
width: 100%;
|
|
}
|
|
.element-divider {
|
|
border-top: 1px solid #333;
|
|
margin: 10px 0;
|
|
}
|
|
h1 {
|
|
margin: 15px 0;
|
|
}
|
|
.doc-header {
|
|
margin-bottom: 10px;
|
|
}
|
|
.doc-footer {
|
|
margin-top: 30px;
|
|
padding-top: 10px;
|
|
border-top: 1px solid #ddd;
|
|
}
|
|
.approval-area {
|
|
margin: 20px 0;
|
|
}
|
|
{{ custom_css|safe }}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="document-body">
|
|
{{ content }}
|
|
</div>
|
|
</body>
|
|
</html>
|