seitime-frappe/frappe/www/printview.html
Faris Ansari e72bb135e1 fix: Asset URLs
Helpers to get asset path
Python: frappe.utils.jinja_globals.bundled_asset
JS: frappe.assets.bundled_asset
2021-04-29 14:47:52 +05:30

40 lines
998 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>{{ title }}</title>
<meta name="generator" content="frappe">
{{ include_style('print.bundle.css') }}
{%- if has_rtl -%}
{{ include_style('frappe-rtl.bundle.css') }}
{%- endif -%}
<style>
{{ css }}
</style>
</head>
<body>
<div class="print-format-gutter">
<div class="print-format">
{{ body }}
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', () => {
const page_div = document.querySelector('.page-break');
page_div.style.display = 'flex';
page_div.style.flexDirection = 'column';
const footer_html = document.getElementById('footer-html');
footer_html.classList.add('hidden-pdf');
footer_html.classList.remove('visible-pdf');
footer_html.style.order = 1;
footer_html.style.marginTop = '20px';
});
</script>
</body>
{%- if comment -%}
<!-- {{ comment }} -->
{%- endif -%}
</html>