1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

added plugin template content injection to primary model detail views

This commit is contained in:
John Anderson
2020-03-15 23:45:18 -04:00
parent 683c5a22db
commit 8364694fb4
24 changed files with 313 additions and 14 deletions

View File

@@ -4,6 +4,7 @@
{% load helpers %}
{% load secret_helpers %}
{% load static %}
{% load plugins %}
{% block header %}
<div class="row noprint">
@@ -16,6 +17,7 @@
</div>
</div>
<div class="pull-right noprint">
{% plugin_buttons secret %}
{% if perms.secrets.change_secret %}
{% edit_button secret %}
{% endif %}
@@ -65,6 +67,7 @@
</table>
</div>
{% include 'inc/custom_fields_panel.html' with obj=secret %}
{% plugin_left_page secret %}
</div>
<div class="col-md-6">
{% if secret|decryptable_by:request.user %}
@@ -100,6 +103,12 @@
</div>
{% endif %}
{% include 'extras/inc/tags_panel.html' with tags=secret.tags.all url='secrets:secret_list' %}
{% plugin_right_page secret %}
</div>
</div>
<div class="row">
<div class="col-md-12">
{% plugin_full_width_page secret %}
</div>
</div>