{% extends 'base.html' %} {% block body_content %}
{{launch}}
{% if board_info != None %} {% else %} {% endif %}
{% if board_info != None and root != None %}
{% else %}
{% endif %}
{% if board_info != None and root != None %} {% for vm in root.getchildren() %} {% endfor %}
{% for elem in vm.getchildren() %} {% if elem.getchildren() == [] and ('configurable' not in elem.attrib or elem.attrib['configurable'] != '0') %}
{% set elem_text = '' if elem.text == None else elem.text %} {% if ','.join(['uos', elem.tag]) not in launch_item_values %}
{% if 'readonly' in elem.attrib and elem.attrib['readonly'] == 'true' %} {% if elem.tag == 'kernel_cmdline' %} {% else %} {% endif %} {% else %} {% if elem.tag == 'kernel_cmdline' %} {% else %} {% endif %} {% endif %}
{% else %} {% endif %}

{% elif elem.getchildren() != [] %} {% if 'multiselect' not in elem.attrib or elem.attrib['multiselect'] != 'true' %} {% set first_child = [] %} {% set first_multi_child = {'block': 0, 'network': 0, 'input': 0} %} {% for sub_elem in elem.getchildren() %} {% set sub_elem_text = '' if sub_elem.text == None else sub_elem.text %} {% if 'configurable' not in sub_elem.attrib or sub_elem.attrib['configurable'] != '0' %}
{% if 'id' not in elem.attrib %} {% if not first_child %} {% else %} {% endif %} {% if ','.join(['uos', elem.tag, sub_elem.tag]) not in launch_item_values and elem.tag != 'cpu_affinity'%}
{% if 'readonly' in sub_elem.attrib and sub_elem.attrib['readonly'] == 'true' %} {% else %} {% endif %}
{% if elem.tag in ['virtio_devices'] and sub_elem.tag in ['block', 'network', 'input'] %}
{% if first_multi_child[sub_elem.tag] == 0 %} {% else %} {% endif %}
{% do first_multi_child.update({sub_elem.tag: first_multi_child[sub_elem.tag]+1}) %} {% endif%} {% else %} {% set item_key = ','.join(['uos', elem.tag, sub_elem.tag]) if elem.tag != 'cpu_affinity' else ','.join(['uos', elem.tag]) %} {% endif %} {% do first_child.append(1) %}

{% else %} {% if not first_child %} {% do first_child.append(1) %} {% else %} {% endif %} {% if ','.join(['uos', elem.tag, sub_elem.tag]) not in launch_item_values %}
{% if 'readonly' in sub_elem.attrib and sub_elem.attrib['readonly'] == 'true' %} {% else %} {% endif %}
{% else %}

{% endif %} {% endif %}
{% endif %} {% endfor %} {% elif 'configurable' not in elem.attrib or elem.attrib['configurable'] != '0' %}

{% endif %} {% endif %} {% endfor %}
{% else %} No setting available. Select one board info and make sure the launch xml exists. {% endif %}
{% endblock %}