{% set container_style = schema.get('style') %} {% set template_order_index = template_order_index + 1 if template_order_index else 1 %} {% set minItems = schema.get('minItems', 0) %} {% set maxItems = schema.get('maxItems', -1) %} {% set defaultItems = schema.get('defaultItems', minItems) %}
{% if schema.title %}{{ schema.title | get_translated_text }}{% if 'tooltip' in schema %} {% endif %}{% endif %}
{% set is_required = True %} {% if is_template and data is none %} {% set data = get_default_data(root_schema, property_path) %} {% endif %} {% if data is none %} {% set data = [] %} {% endif %} {% if diff is none %} {% set diff = [] %} {% endif %} {% if previous_schema %} {% set previous_schema = previous_schema.get('items') %} {% endif %} {% set parent_prefix = id_prefix %} {% for item, item_diff in (zip_longest(data, diff) | list) + [(None, None)] %} {% set schema = schema['items'] %} {% if loop.last %} {% set is_template = True %} {% set property_path = property_path + ('!index' ~ template_order_index ~ '!',) %} {% set item = get_default_data(root_schema, property_path) %} {% else %} {% set property_path = property_path + (loop.index0,) %} {% endif %} {% set id_prefix = id_prefix_for_property_path(property_path, id_prefix_root) %} {% set data = item %} {% set diff = item_diff %}
{% include "objects/forms/form_any.html" %}
{% endfor %}
{% if 'note' in schema['items'] %} {{ _('Note:') }} {{ schema['items']['note'] | get_translated_text }} {% endif %} {% if 'note' in schema %} {{ _('Note:') }} {{ schema['note'] | get_translated_text }} {% endif %}