소스 검색

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


불러오는 중...
취소
저장