{% if schema["items"].properties[property_name].title %}{{ schema["items"].properties[property_name].title | get_translated_text }}{% endif %} | {% endif %} {% endfor %} {% for property_name in item_property_names %} {% if property_name not in property_order %}{% if schema["items"].properties[property_name].title %}{{ schema["items"].properties[property_name].title | get_translated_text }}{% endif %} | {% endif %} {% endfor %}||
---|---|---|---|
{% set name = property_name %} {% set schema = schema.properties[property_name] %} {% set z = schema.update({'parent_style': tmp_style}) %} {% set id_prefix = id_prefix + '_' + name + '_' %} {% if data is not none and property_name in data %} {% set data = data[property_name] %} {% else %} {% set data = none %} {% endif %} {% include "objects/forms/form_any.html" %} | {% endif %} {% endfor %} {% for property_name in item_property_names %} {% if property_name not in property_order %}{% set name = property_name %} {% set schema = schema.properties[property_name] %} {% set z = schema.update({'parent_style': tmp_style}) %} {% set id_prefix = id_prefix + '_' + name + '_' %} {% if data is not none and property_name in data %} {% set data = data[property_name] %} {% else %} {% set data = none %} {% endif %} {% include "objects/forms/form_any.html" %} | {% endif %} {% endfor %} {% if numItems > minItems %}{% else %} | {% endif %} |
{% endfor %} {% if maxItems is none or numItems < maxItems %} | {% else %} | {% endif %} |
{{ _('Field %(index)s', index=(i+1)) }} | {% endfor %}
{% if (data | length) > 0 and max_used_fields > schema["items"].get("minItems", 0) %}
{% else %}
{% endif %}
{% if (data | length) > 0 and ("maxItems" not in schema["items"] or max_used_fields < schema["items"]["maxItems"]) %}
{% else %}
{% endif %}
|
||
---|---|---|---|
{% set name = "field_".format(loop.index0) %} {% set tmp_style = schema['style'] %} {% set schema = schema["items"]["items"] %} {% set z = schema.update({'parent_style': tmp_style}) %} {% set id_prefix = id_prefix + '_{}__{}_'.format(item_index, loop.index0) %} {% set data = field %} {% include "objects/forms/form_any.html" %} | {% endfor %} {% if (item | length) < max_used_fields %} {% for i in range((item | length), max_used_fields) %}{% set name ="field_".format(loop.index0) %} {% set tmp_style = schema['style'] %} {% set schema = schema["items"]["items"] %} {% set z = schema.update({'parent_style': tmp_style}) %} {% set id_prefix = id_prefix + '_{}__{}_'.format(item_index, i) %} {% set data = null %} {% include "objects/forms/form_any.html" %} | {% endfor %} {% endif %} {% if numItems > minItems %}{% else %} | {% endif %} |
{{ _('Field %(index)s', index=(i+1)) }} | {% endfor %} {% if maxItems is none or numItems < maxItems %}{% else %} | {% endif %} |