Files
netbox/netbox/templates/users/panels/actions.html
Jason Novinger e9be6e4178 Consolidate ObjectPermission detail view actions panel
Merge ObjectPermissionActionsPanel and ObjectPermissionCustomActionsPanel
into a single Actions panel that shows CRUD booleans and all registered
actions in one table, matching the form's consolidated layout.

Also fix data-object-types-selected attribute value (True -> 'true') and
update plugin docs to show Meta.permissions as the primary registration
approach.
2026-04-01 17:16:57 -05:00

27 lines
745 B
HTML

{% extends "ui/panels/_base.html" %}
{% load helpers %}
{% block panel_content %}
<table class="table table-hover attr-table">
{% for label, enabled in crud_actions %}
<tr>
<th scope="row">{{ label }}</th>
<td>{% checkmark enabled %}</td>
</tr>
{% endfor %}
{% for action, enabled, models in registered_actions %}
<tr>
<th scope="row">{{ action }}</th>
<td>
<div class="d-flex justify-content-between align-items-start">
{% checkmark enabled %}
{% if models %}
<small class="text-muted">{{ models }}</small>
{% endif %}
</div>
</td>
</tr>
{% endfor %}
</table>
{% endblock panel_content %}