{% comment %} The grid of ticks, one row per section of the admin and a column for each kind -- read, change, delete -- each a "grant" tick: on the connect page (authorize.html) and where a connection's ticks are changed later (connection.html). Needs ``kinds``, ``sections`` and ``every`` (django_admin_oauth_mcp.views.grid). Ticking change or delete in a row ticks what comes before it there, and unticking read or change unticks what comes after, since what cannot be read cannot be found to change. The "Every section" row ticks a whole column; its ticks have no name, so they are never sent. Both are only the page's script: without it, the server still gives read with change or delete (``rules.granted``). {% endcomment %} {% for kind in kinds %} {% endfor %} {% if sections|length > 1 %} {% for column in every %} {% endfor %} {% endif %} {% for section in sections %} {% for tick in section.ticks %} {% endfor %} {% endfor %}
Section {% if kind == "read" %}Read{% elif kind == "write" %}Change{% else %}Delete{% endif %}
Every section {% if column.offered %} {% endif %}
{{ section.name }} {% if tick.offered %} {% endif %}
{{ kinds|json_script:"connect-kinds" }}