{% load i18n %}
{% for app in widget.apps %}
{% block section_summary %} {{ app.name }} {{ app.checked }}/{{ app.total }} {% endblock section_summary %} {# Same column widths in every app, so the columns line up. #} {% for action, label in widget.columns %}{% endfor %} {% for action, label in widget.columns %} {% endfor %} {% for row in app.rows.values %} {% for action, option in row.columns %} {% endfor %} {% endfor %}
{% block section_toggle %} {% if not widget.disabled %} {% endif %} {% endblock section_toggle %} {% block column_heading %} {% if widget.disabled %}{{ label }}{% else %} {% endif %} {% endblock column_heading %} {% block others_heading %} {% if widget.disabled %}{% translate "Others" %}{% else %} {% endif %} {% endblock others_heading %}
{% block row_heading %} {% if widget.disabled %}{{ row.model }}{% else %} {% endif %} {% endblock row_heading %} {% if option %} {% block permission %} {% endblock permission %} {% else %} {% block missing_cell %}{% endblock %} {% endif %} {% for option in row.others %} {% block other_permission %} {% endblock other_permission %} {% endfor %}
{% empty %} {% block empty %}

{% translate "No permissions available." %}

{% endblock %} {% endfor %}