{% extends "base/base.jinja2" %} {% from "base/macros.jinja2" import badge %} {% macro body(element, trail) %}
{% if element.occurs[0] != 1 or element.occurs[1] != 1 %} {{ badge("secondary", element.occurs|occurs_text) }} {% endif %} {{ badge("secondary", "Type: " + element.type|name, "ms-2") }} {% if element.type.has_complex_content() %} {% for child in element.type.content|children %} {{ render(child, trail) }} {% endfor %} {% endif %} {% endmacro %} {% macro render(element, trail) %}