{% extends "clearance/admin/base.html" %} {% load i18n %} {% block crumbs %}› {% translate 'Protected fields' %} › {{ title }}{% endblock %} {% block content %}
{% for field in fields %} {% endfor %}
{% translate 'Field' %}{% translate 'Protected' %}{% translate 'Its permissions' %}
{{ field.words|capfirst }} {{ field.name }} {% if field.in_code %}{% translate 'in code' %}{% elif field.protected %}{% translate 'yes' %}{% else %}{% translate 'no' %}{% endif %} {% if field.protected %}{{ field.permissions.view }}
{{ field.permissions.edit }}{% endif %}
{% if field.cannot %}{{ field.cannot }} {% elif field.in_code %}{% translate 'Unprotected in code.' %} {% elif field.protected and may_delete %}
{% csrf_token %}
{% elif not field.protected and may_create %}
{% csrf_token %}
{% endif %}
{% endblock %}