Quellcode durchsuchen

[Print format] Translate section headings, hide sections with no data (#3697)

* Section label set as translatable

* Show section title if hase data in section other
version-14
Mainul Islam vor 8 Jahren
committed by Faris Ansari
Ursprung
Commit
4f7feddb6a
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. +2
    -2
      frappe/templates/print_formats/standard.html

+ 2
- 2
frappe/templates/print_formats/standard.html Datei anzeigen

@@ -23,8 +23,8 @@
{% for section in page %}
<div class="row section-break">
{%- if doc._line_breaks and loop.index != 1 -%}<hr>{%- endif -%}
{%- if doc._show_section_headings and section.label -%}
<h4 class='col-sm-12'>{{ section.label }}</h4>
{%- if doc._show_section_headings and section.label and section.has_data -%}
<h4 class='col-sm-12'>{{ _(section.label) }}</h4>
{%- endif -%}
{% for column in section.columns %}
<div class="col-xs-{{ (12 / section.columns|len)|int }} column-break">


Laden…
Abbrechen
Speichern