{% comment %} End Add botton for new items {% endcomment %}
{% endif %}
{% endif %}
{% for attribute in attribute_list %}
{% if component == selected_component and item.id == selected_id %}
{% if attribute.0 == 'type' %}
{% comment %} end rendering type of selected item {% endcomment %}
{% elif attribute.0 == 'channels' %}
{% comment %} render channels only for already defined items {% endcomment %}
{% if item.id >= 0 %}
Name
Offset
{% for chnl_id, chnl_name, chnl_slice in item|get_key:attribute.1 %}
{% endfor %}
{% endif %}
{% comment %} end rendering camera channels of selected item {% endcomment %}
{% else %}
{% comment %} start rendering attribute other than channel and type for selected item {% endcomment %}
{% endif %}
{% comment %} end rendering any attribute of selected item {% endcomment %}
{% else %}
{% comment %} start rendering attribute of item that is not selected {% endcomment %}
{% if attribute.0 == 'channels' %}
{% comment %} render channels of unselected item {% endcomment %}
{% for chnl_id, chnl_name, chnl_slice in item|get_key:attribute.1 %}
{{ chnl_name }}
{{ chnl_slice }}
{% endfor %}
{% comment %} end rendering channels of non select item {% endcomment %}
{% else %}
{% comment %} start rendering attribute other than channel of not selected item {% endcomment %}