{# 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 %}
{# Right column: mapping tables #}
{# Column Mappings #}
Column Mappings Add
{% if column_table.rows %} {% include 'inc/table.html' with table=column_table %} {% else %}
No column mappings configured.
{% endif %}
{# Class → Role Mappings #}
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 %}
{# Device Type Mappings #}
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 %}
{# Column Transform Rules #}
Column Transform Rules Add
{% if transform_table.rows %} {% include 'inc/table.html' with table=transform_table %} {% else %}
No column transform rules configured.
{% endif %}
{% endblock %}