{% load i18n %}

{% trans "Interface Role Automation" %} {% if role %} {% if perms.interface_profiles.change_interfaceroleassignment or perms.interface_profiles.delete_interfaceroleassignment %}
{% endif %} {% endif %}

{% if role %}
Assigned Role {{ role }}
Role Group {{ role.group|linkify|placeholder }}
Matching Interface Templates {% if matching_interface_templates %} {% for template in matching_interface_templates %}
{{ template.name }} {% if template.scope %} ({{ template.scope_type.name }}: {{ template.scope }}) {% else %} (global) {% endif %}
{% endfor %} {% else %} No matching interface templates found. {% endif %}
Matching Config Templates {% if matching_config_templates %} {% for template in matching_config_templates %}
{{ template.name }} (weight {{ template.weight }})
{% endfor %} {% else %} No matching config templates found. {% endif %}
Assigned Config Preview {% if assigned_config_template %}
{{ assigned_config_preview }}
{% else %} No config template assigned. {% endif %}
{% else %}
{% trans "No interface role assigned" %} {% if perms.interface_profiles.add_interfaceroleassignment %} {% endif %}
{% endif %}