Fix print badge for elements no having this field
This commit is contained in:
parent
68fd7abf2d
commit
26e3678c75
@ -51,7 +51,9 @@
|
||||
{% endmacro %}
|
||||
|
||||
{% 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') }}
|
||||
{% endif %}
|
||||
{% endmacro %}
|
||||
|
||||
{% macro set(set, solo=false, last=false, url=None, id=None) %}
|
||||
|
Loading…
Reference in New Issue
Block a user