allowing csv rendering for custom fields

This commit is contained in:
Marc Ducobu
2015-02-17 15:01:12 +01:00
parent 77247de990
commit 47a9a29236
7 changed files with 27 additions and 9 deletions

View File

@@ -0,0 +1,13 @@
{% if selected|length > 0 %}
{%- for choice in choices -%}
{% if choice['slug'] in selected %}
{%- if choice['slug'] is not same as('_other') -%}
{{ choice['name']|localize_translatable_string }}
{%- else -%}
{{ choice['name'] }}
{%- endif -%}
{% endif %}
{%- endfor -%}
{% else %}
{{ 'None'|trans }}
{% endif %}