{% load json %}
{% load variable_types %}
{% load string_formating %}
{% for key, value in dict.items %}
{% with 'display_'|add:key|dashes_and_spaces_to_underscore as key_display %}
+-
{{ key|underscores_to_spaces|title }}
{% if value|is_dict %}
{
{% include 'spire/ai/forms/elements/dict_element.html' with dict=value %}
}
{% elif value|is_list_or_tuple %}
[
{% include 'spire/ai/forms/elements/list_element.html' with list=value %}
[
{% else %}
{% include 'spire/ai/forms/elements/value_element.html' with value=value %}
{% endif %}