{# SPDX-License-Identifier: Apache-2.0 #} {# Copyright (C) 2025 Marcin Zieba #} {% extends 'generic/object.html' %} {% load helpers %} {% block content %}
{# Left column: profile properties #}
Import Profile
{% for label, value in object.adapter_config_display %} {% endfor %}
Name{{ object.name }}
Description{{ object.description|placeholder }}
Source Adapter{{ object.get_source_adapter_display }}
{{ label }} {% if value is True %}Yes {% elif value is False %}No {% else %}{{ value|placeholder }}{% endif %}
Export YAML {% if 'column_mappings' in applicable_policy_sections %} Bulk YAML Import {% endif %} {% if 'source_resolutions' in applicable_policy_sections %} Row Resolutions {% endif %} {% if 'device_type_mappings' in applicable_policy_sections %} Device Type Analysis {% endif %}
{# Right column: mapping tables #}
{# Column Mappings #} {% if 'column_mappings' in applicable_policy_sections %}
Column Mappings Add
{% if column_table.rows %} {% include 'inc/table.html' with table=column_table %} {% else %}
No column mappings configured.
{% endif %}
{% endif %} {# Class → Role Mappings #} {% if 'class_role_mappings' in applicable_policy_sections %}
Class → Role Mappings Add
{% if class_role_table.rows %} {% include 'inc/table.html' with table=class_role_table %} {% else %}
No class→role mappings configured.
{% endif %}
{% endif %} {# Device Type Mappings #} {% if 'device_type_mappings' in applicable_policy_sections %}
Device Type Mappings Add
{% if device_type_table.rows %} {% include 'inc/table.html' with table=device_type_table %} {% else %}
No device type mappings configured.
{% endif %}
{% endif %} {# Column Transform Rules #} {% if 'column_transform_rules' in applicable_policy_sections %}
Column Transform Rules Add
{% if transform_table.rows %} {% include 'inc/table.html' with table=transform_table %} {% else %}
No column transform rules configured.
{% endif %}
{% endif %} {# CableClass Mappings #} {% if 'cable_class_mappings' in applicable_policy_sections %}
CableClass Mappings Add
{% if cable_class_table.rows %} {% include 'inc/table.html' with table=cable_class_table %} {% else %}
No CableClass mappings configured.
{% endif %}
{% endif %}
{% endblock %}