{% extends 'base/layout.html' %} {% block title %}{{ device }} - {{ component_type_name|capfirst }} 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_name }}. The device and device type have different number of {{ component_type_name }}.
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.fields_display }} {% if not component %} {% endif %}       {% if component_template and component_template.name != component.name %} {{ component.name }} {% else %} {{ component.name }} {% endif %} {{ component.fields_display }} {% if not component_template %} {% endif %} {% if component_template and component_template != component %} {% endif %}        
{% endblock %}