PHRAS-2816 #comment add attribute gui_visible to show fields on roll over and detailled view #time 2h

This commit is contained in:
Harrys Ravalomanana
2019-11-12 18:13:05 +04:00
parent beb57b3af2
commit 5f2617e5f7
14 changed files with 63 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
{% macro caption(record, can_see_business, display_exif, limitedWidth = false) %}
<dl class="{% if limitedWidth %}{% else %}dl-horizontal{% endif %}">
{% for name, value in record.getCaption(caption_field_order(record, can_see_business)) %}
{% if caption_field_gui_editable(record, name) == 1 %}
{% if caption_field_gui_visible(record, name) == 1 %}
<dt>{{ caption_field_label(record, name) }}</dt>
<dd>{{ caption_field(record, name, value)|e|highlight|linkify|parseColor }}</dd>
{% endif %}