blog/webapp/templates/permission/_table.html

64 lines
1.9 KiB
HTML
Raw Permalink Normal View History

2021-05-15 01:04:17 +02:00
<table class="full-width data-table">
<thead>
<tr>
{% if "subject" not in skip_columns %}
<th>{{ _("subject") }}</th>
{% endif %}
{% if "subject_id" not in skip_columns %}
<th>{{ _("subject_id") }}</th>
{% endif %}
{% if "action" not in skip_columns %}
<th>{{ _("action") }}</th>
{% endif %}
{% if "object" not in skip_columns %}
<th>{{ _("object") }}</th>
{% endif %}
{% if "object_id" not in skip_columns %}
<th>{{ _("object_id") }}</th>
{% endif %}
{% if "is_allowed" not in skip_columns %}
<th>{{ _("is_allowed") }}</th>
{% endif %}
<th>{{ _("Actions") }}</th>
</tr>
</thead>
<tbody>
{% for instance in instances %}
<tr>
{% if "subject" not in skip_columns %}
<td>
{{ instance.subject }}
</td>
{% endif %}
{% if "subject_id" not in skip_columns %}
<td>
{{ instance.subject_id }}
</td>
{% endif %}
{% if "action" not in skip_columns %}
<td>
{{ instance.action }}
</td>
{% endif %}
{% if "object" not in skip_columns %}
<td>
{{ instance.object }}
</td>
{% endif %}
{% if "object_id" not in skip_columns %}
<td>
{{ instance.object_id }}
</td>
{% endif %}
{% if "is_allowed" not in skip_columns %}
<td>
{{ instance.is_allowed }}
</td>
{% endif %}
<td>
{% include "permission/_actions.html" %}
</td>
</tr>
{% endfor %}
</tbody>
</table>