{% set views=None %} {% if views %}
{% for subview in views %} {% if active_subview_name and subview.name == active_subview_name %} {% with item=item, items=items, view=subview %} {% include "view.html" %} {% endwith %} {% endif %} {% endfor %}
{% else %} {% if view['type'] == 'ListView' %}
{% if view['attributes'] and view['attributes']['columns'] %} {% for column in view['attributes']['columns'] %} {% endfor %} {% endif %} {% set list_items = [] %} {% if view['attributes'] and view['attributes']['internal'] == 'true' %} {% if view['attributes']['source'] == 'attributes' %} {% set list_items = get_items_from_attributes(item.attributes, None) %} {% else %} {% set list_items = get_items_from_attributes(item.attributes, view['attributes']['source']) %} {% endif %} {% else %} {% set list_items = items %} {% endif %} {% for item in list_items or [] %} {% if view['attributes'] and view['attributes']['columns'] %} {% for column in view['attributes']['columns'] %} {% if column['attributes']['target'] == 'type' %} {% else %} {% endif %} {% endfor %} {% endif %} {% endfor %}
# Icon Name {{column['name']}}
{{loop.index}} {% if item.attributes %} {{item.attributes['icon']}} {% endif %} {% if item.attributes and item.attributes['resource'] %} {{item.name}} {% else %} {{item.name}} {% endif %} {% if item.type is string %} {{item.type}} {% else %} {{item.instance.type.name}} {% endif %} {{item.attributes[column['attributes']['target']]}}
{% elif view['type'] == 'FormView' %}
{% set form=all_forms[view.attributes['form']] %} {% if form.attributes['upload'] == 'true' %}
{% else %}
{% endif %}
{% elif view['type'] == 'CodeView' %}
{% elif view['type'] == 'ARView' %}
Loading, please wait...
{% elif view['type'] == 'SceneView' %}
Loading, please wait...
{% else %} type:{{view['type']}} showing {{item.name}} with {{items | length}} items {% endif %} {% endif %}