seitime-frappe/frappe/templates/print_format/print_header.html
Faris Ansari 4bdacf7d81 feat: Better Letterhead editing
- Image resize and align
2021-10-03 14:42:45 +05:30

24 lines
586 B
HTML

<style>
{% include "templates/print_format/print_format_font.css" %}
@media print {
header {
position: fixed;
top: 0;
left: 0;
width: {{ body_width | int }}mm;
padding-top: {{ print_format.margin_top | int }}mm;
padding-left: {{ print_format.margin_left | int }}mm;
padding-right: {{ print_format.margin_right | int }}mm;
}
}
</style>
<header>
{%- if letterhead -%}
{{ frappe.render_template(letterhead.content, {'doc': doc}) }}
{%- endif -%}
{%- if layout.header -%}
{{ frappe.render_template(layout.header, {'doc': doc}) }}
{%- endif -%}
</header>