{% extends "admin/base_site.html" %} {% load i18n admin_urls %} {% block breadcrumbs %} {% endblock %} {% block content %}

{% trans "Apply a level profile" %}

{% blocktrans %}A level profile defines the set of RequirementLevel rows that match a particular standard (ASPICE, ISO 9001, IEC 62304, DO-178C). Pick one to align this installation with your QMS.{% endblocktrans %}

{% if active_profile == "custom" %} {% trans "Current state:" %} {% trans "Custom — the active levels don't match any built-in profile (you've hand-edited them)." %} {% elif active_profile == "none" %} {% trans "Current state:" %} {% trans "No active levels." %} {% else %} {% trans "Current state:" %} {{ active_profile }} ({{ cards|length }} {% trans "profiles available" %}). {% endif %}

{% for card in cards %}

{{ card.label }}
{{ card.key }}
{% if card.is_active %}{% trans "Active" %}{% endif %}

    {% for code, name, order, description in card.rows %}
  1. {{ name }} {{ code }}
  2. {% endfor %}
{% if card.would_orphan %}
{% blocktrans count counter=card.would_orphan|length %}{{ counter }} active level holds requirements not covered by this profile and will stay enabled:{% plural %}{{ counter }} active levels hold requirements not covered by this profile and will stay enabled:{% endblocktrans %} {{ card.would_orphan|join:", " }}.
{% endif %}
{% csrf_token %}
{% endfor %}
{% endblock %}