{% extends "base.html" %} {% block title %}{{ h.dataset_display_name(package)}}—{{ h.resource_display_name(resource)}} - {{ super() }}{% endblock %} {% block bodytag %} {{- super() -}} class="dt-view" {%- endblock -%} {%- block page -%} {#- pass the datadictionary to javascript, so we can init columns there -#} {%- set datadictionary = h.datastore_dictionary(resource.id) -%} {%- set nbspval = " "|safe -%}
_id | {% for field in datadictionary -%} {% if 'show_fields' not in resource_view or field.id in resource_view.show_fields -%}{%- if data_dictionary_labels and field.info is defined and field.info.label|length -%} {{ field.info.label|replace(" ", nbspval) }} {%- else -%} {{ field.id|replace(" ", nbspval) }} {%- endif -%} {%- if data_dictionary_labels and field.info is defined and (field.info.label|length or field.info.notes|length)-%} {%- endif -%} | {%- endif %} {% endfor -%}colspacer |
---|---|---|
{% for field in datadictionary -%} {% if 'show_fields' not in resource_view or field.id in resource_view.show_fields -%} | {{- field.id -}} | {% endif -%} {% endfor -%}