fix(print)!: Re-add labels on Text Editor fields

This commit is contained in:
Corentin Forler 2024-09-18 10:05:04 +02:00
parent fdd39b6a18
commit 0e5af04c10
No known key found for this signature in database

View file

@ -3,7 +3,7 @@
{{ render_table(df, doc) }}
{%- elif df.fieldtype=="HTML" and df.options -%}
<div>{{ frappe.render_template(df.options, {"doc": doc}) or "" }}</div>
{%- elif df.fieldtype in ("Text", "Text Editor", "Code", "Long Text") -%}
{%- elif df.fieldtype in ("Text", "Code", "Long Text") -%}
{{ render_text_field(df, doc) }}
{%- elif df.fieldtype in ("Image", "Attach Image")
and (