mirror of
https://gitlab.com/Chill-Projet/chill-bundles.git
synced 2025-06-14 06:14:23 +00:00
Only display custom fields that are active
This commit is contained in:
parent
6acba49f38
commit
426849f169
@ -4,7 +4,7 @@
|
|||||||
#}"{{ 'Date'|trans }}",{#
|
#}"{{ 'Date'|trans }}",{#
|
||||||
#}"{{ 'User'|trans }}",{#
|
#}"{{ 'User'|trans }}",{#
|
||||||
#}"{{ 'Report type'|trans }}",{#
|
#}"{{ 'Report type'|trans }}",{#
|
||||||
#}{% for customField in cf_group.customFields %}{#
|
#}{% for customField in cf_group.activeCustomFields %}{#
|
||||||
#}"{{ chill_custom_field_label(customField) }}"{% if not loop.last %},{% endif %}{#
|
#}"{{ chill_custom_field_label(customField) }}"{% if not loop.last %},{% endif %}{#
|
||||||
#}{% endfor %}{#
|
#}{% endfor %}{#
|
||||||
|
|
||||||
@ -16,7 +16,7 @@
|
|||||||
#}"{{ report.date|localizeddate('short', 'none') }}",{#
|
#}"{{ report.date|localizeddate('short', 'none') }}",{#
|
||||||
#}"{{ report.user|csv_cell }}",{#
|
#}"{{ report.user|csv_cell }}",{#
|
||||||
#}"{{ report.cFGroup.getName(app.request.locale)|csv_cell }}",{#
|
#}"{{ report.cFGroup.getName(app.request.locale)|csv_cell }}",{#
|
||||||
#}{% for customField in report.cFGroup.customFields %}{#
|
#}{% for customField in report.cFGroup.activeCustomFields %}{#
|
||||||
#}{% if customField.type == 'title' %}{#
|
#}{% if customField.type == 'title' %}{#
|
||||||
#}""{#
|
#}""{#
|
||||||
#}{% else %}{#
|
#}{% else %}{#
|
||||||
|
@ -39,14 +39,7 @@
|
|||||||
<dt class="inline">{{ 'Report type'|trans }}</dt>
|
<dt class="inline">{{ 'Report type'|trans }}</dt>
|
||||||
<dd>{{ entity.cFGroup.getName(app.request.locale) }}</dd>
|
<dd>{{ entity.cFGroup.getName(app.request.locale) }}</dd>
|
||||||
|
|
||||||
{% for customField in entity.cFGroup.customFields %}
|
{{ chill_custom_fields_group_widget(entity.cFData, entity.cFGroup) }}
|
||||||
{% if customField.type == 'title' %}
|
|
||||||
{{ chill_custom_field_widget(entity.cFData , customField) }}
|
|
||||||
{% else %}
|
|
||||||
<dt>{{ chill_custom_field_label(customField) }}</dt>
|
|
||||||
<dd>{{ chill_custom_field_widget(entity.cFData , customField) }}</dd>
|
|
||||||
{% endif %}
|
|
||||||
{% endfor %}
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report' | trans }}</a>
|
<a href="{{ path('report_edit', { 'person_id': entity.person.id, 'report_id': entity.id }) }}"><i class="fa fa-pencil"></i> {{ 'Update the report' | trans }}</a>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user