{% extends "layout/base.html" %} {% block title %}{{ metadata_type.name }} definition{% endblock %} {% block panel %} {% endblock %} {% block content %} {% from "layout/macros.html" import show_raw_document %}

metadata type of {{ products_using_it | length }} products
{{ metadata_type.definition['description'] }}

Used by Products {{ hanchor('products') }}

{% if products_using_it %}
{% for product in products_using_it %}
{{ product.name | product_link }}
{% endfor %}
{% else %} None {% endif %}

Searchable Fields {{ hanchor('searchable-fields') }}

{% for key, field in metadata_type.dataset_fields | dictsort %}
{{ key }} {{- field.type_name -}} {%- if field.indexed is true %} {%- endif -%} {% if field.description and ('TODO' not in field.description) %} {{ field.description }} {% endif %}
{% endfor %}

Definition {{ hanchor('definition-doc') }}

View RAW
{{ show_raw_document(metadata_doc) }}
{% endblock %}