{% extends 'generic/object.html' %} {% block content %}

Profile configuration

Title
{{ object.title }}
Field selection
{{ object.get_field_mode_display }}
Display order
{{ object.display_order }}
Enabled
{{ object.enabled|yesno:"Yes,No" }}

Applicability

{% if not object.device_types.all and not object.device_roles.all and not object.applicability_tags.all %}

Applies to all Devices

{% else %}

All configured criteria must match (AND). Any value within a criterion matches (OR).

{% if object.device_types.all %}
Device Type
{% for item in object.device_types.all %}{{ item }}{% if not forloop.last %} OR {% endif %}{% endfor %}
{% endif %} {% if object.device_roles.all %}
Role
{% for item in object.device_roles.all %}{{ item }}{% if not forloop.last %} OR {% endif %}{% endfor %}
{% endif %} {% if object.applicability_tags.all %}
Tag
{% for item in object.applicability_tags.all %}{{ item }}{% if not forloop.last %} OR {% endif %}{% endfor %}
{% endif %}
{% endif %}

{% if object.field_mode == 'all' %}Remembered selected fields{% else %}Configured fields{% endif %}

    {% for membership in object.profile_fields.all %}
  1. {{ membership.field }}
  2. {% empty %}
  3. No manual fields configured.
  4. {% endfor %}
{% if object.field_mode == 'all' %}

All applicable fields are resolved dynamically in native NetBox order. The manual selection above is remembered.

{% endif %}
{% endblock %}