Only display active custom fields in form & view

This commit is contained in:
Marc Ducobu
2015-09-30 13:32:24 +02:00
parent 9f98c4e7e6
commit 101783b9f1
4 changed files with 126 additions and 4 deletions

View File

@@ -0,0 +1,8 @@
{% for customField in cFGroup.activeCustomFields %}
{% if customField.type == 'title' %}
{{ chill_custom_field_widget(cFData , customField) }}
{% else %}
<dt>{{ chill_custom_field_label(customField) }}</dt>
<dd>{{ chill_custom_field_widget(cFData , customField) }}</dd>
{% endif %}
{% endfor %}