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 }}",{#
|
||||
#}"{{ 'User'|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 %}{#
|
||||
#}{% endfor %}{#
|
||||
|
||||
@ -16,7 +16,7 @@
|
||||
#}"{{ report.date|localizeddate('short', 'none') }}",{#
|
||||
#}"{{ report.user|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' %}{#
|
||||
#}""{#
|
||||
#}{% else %}{#
|
||||
|
@ -39,14 +39,7 @@
|
||||
<dt class="inline">{{ 'Report type'|trans }}</dt>
|
||||
<dd>{{ entity.cFGroup.getName(app.request.locale) }}</dd>
|
||||
|
||||
{% for customField in entity.cFGroup.customFields %}
|
||||
{% 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 %}
|
||||
{{ chill_custom_fields_group_widget(entity.cFData, entity.cFGroup) }}
|
||||
</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>
|
||||
|
Loading…
x
Reference in New Issue
Block a user