{% extends 'base/layout.html' %} {% block title %}{{ device }} - {{ component_type }} comparison{% endblock %} {% block header %} {{ block.super }} {% endblock %} {% block content %}
{% csrf_token %}
{% if templates_count == components_count %} {% else %} {% endif %} {% for component_template, component in comparison_items %} {% if component_template %} {% else %} {% endif %} {% if component %} {% else %} {% endif %} {% endfor %}
The device and device type have the same number of {{ component_type }}. The device and device type have different number of {{ component_type|lower }}.
Device: {{ components_count }}
Device type: {{ templates_count }}
Device type Actions Device Actions
Name Attributes Name Attributes
{% if component and component_template.name != component.name %} {{ component_template.name }} {% else %} {{ component_template.name }} {% endif %} {{ component_template }} {% if not component %} {% endif %}       {% if component_template and component_template.name != component.name %} {{ component.name }} {% else %} {{ component.name }} {% endif %} {{ component }} {% if not component_template %} {% endif %} {% if component_template and component_template.name != component.name %} {% endif %}        
{% endblock %}