{% extends "base.html" %} {% load navigation_tags %} {% load authorization_tags %} {% load display_tags %} {% load i18n %} {% block content %} {{ block.super }}

{% trans "Product Type List" %}

{% include "dojo/filter_snippet.html" with form=ptl.form %}
{% if pts %}
{% include "dojo/paging_snippet.html" with page=pts page_size=True %}
{% comment %} The display field is translated in the function. No need to translate here as well{% endcomment %} {% for pt in pts %} {% endfor %}
{% dojo_sort request 'Product Type' 'name' 'asc' %} {% trans "Product count" %} {% trans "Active (Verified) findings" %} {% trans "Critical product" %} {% trans "Key product" %}
{{ pt.name }} {{ pt.prod_count }} {{ pt.active_findings_count }}  ({{ pt.active_verified_findings_count }}) {% if pt.critical_product %} {% else %} {% endif %} {% if pt.key_product %} {% else %} {% endif %}
{% include "dojo/paging_snippet.html" with page=pts page_size=True %}
{% else %}

{% trans "No product types found." %}

{% endif %}
{% endblock %} {% block postscript %} {{ block.super }} {% include "dojo/filter_js_snippet.html" %} {% endblock %}