Преглед на файлове

[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 преди 8 години
committed by Faris Ansari
родител
ревизия
4f7feddb6a
променени са 1 файла, в които са добавени 2 реда и са изтрити 2 реда
  1. +2
    -2
      frappe/templates/print_formats/standard.html

+ 2
- 2
frappe/templates/print_formats/standard.html Целия файл

@@ -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">


Зареждане…
Отказ
Запис