{% block dictionary_view %}

{{ _('Data Dictionary') }}

{% macro dictionary_field(label) %} {% set content = caller().strip() %} {% if content %}
{{ label }}
{{ content }}
{% endif %} {% endmacro %} {% for field in ddict %} {% set field_type %}{% block dictionary_field_type scoped %}{{ field.type }}{% endblock %}{% endset %} {% set extra_info -%} {% call dictionary_field(_('Label')) %} {{ h.get_translated(field.get('info', {}), 'label') }} {% endcall %} {% call dictionary_field(_('Description')) %} {{ h.render_markdown(h.get_translated( field.get('info', {}), 'notes')) }} {% endcall %} {% block dictionary_field_extras scoped %} {% endblock %} {%- endset %} {# render_markdown to strip snippet comments and whitespace #} {% set has_extra=h.render_markdown(extra_info) %}

{%- if has_extra -%}

{% if has_extra %}
{% block resource_data_dictionary_field scoped %} {% call dictionary_field(_('ID')) %}{{ field.id }}{% endcall %} {% call dictionary_field(_('Type')) %}{{ field_type }}{% endcall %} {{ extra_info }} {% endblock %}
{% endif %}
{% endfor %}
{% endblock %}