Fix print badge for elements no having this field
This commit is contained in:
parent
6262ac7889
commit
adb2170d47
@ -51,7 +51,9 @@
|
|||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro print(item, solo=false, last=false, header=false) %}
|
{% macro print(item, solo=false, last=false, header=false) %}
|
||||||
|
{% if item.fields.print %}
|
||||||
{{ badge(url=item.url_for_print(), solo=solo, last=last, color='light border', icon='paint-brush-line', collapsible='Print') }}
|
{{ badge(url=item.url_for_print(), solo=solo, last=last, color='light border', icon='paint-brush-line', collapsible='Print') }}
|
||||||
|
{% endif %}
|
||||||
{% endmacro %}
|
{% endmacro %}
|
||||||
|
|
||||||
{% macro set(set, solo=false, last=false, url=None, id=None) %}
|
{% macro set(set, solo=false, last=false, url=None, id=None) %}
|
||||||
|
Loading…
Reference in New Issue
Block a user