mirror of
https://github.com/netbox-community/netbox.git
synced 2026-04-17 22:49:59 +02:00
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.
27 lines
745 B
HTML
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 %}
|