-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added device and vm tab on device role (#11500)
* added vm tab on device role * added blank lines * updated templates * fixed lint issues
- Loading branch information
Showing
4 changed files
with
78 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends 'dcim/devicerole.html' %} | ||
{% load helpers %} | ||
{% load render_table from django_tables2 %} | ||
|
||
{% block content %} | ||
{% include 'inc/table_controls_htmx.html' with table_modal='DeviceTable_config' %} | ||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="card"> | ||
<div class="card-body" id="object_list"> | ||
{% include 'htmx/table.html' %} | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock content %} | ||
|
||
{% block modals %} | ||
{{ block.super }} | ||
{% table_config_form table %} | ||
{% endblock modals %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{% extends 'dcim/devicerole.html' %} | ||
{% load helpers %} | ||
{% load render_table from django_tables2 %} | ||
|
||
{% block content %} | ||
{% include 'inc/table_controls_htmx.html' with table_modal='VirtualMachineTable_config' %} | ||
<form method="post"> | ||
{% csrf_token %} | ||
<div class="card"> | ||
<div class="card-body" id="object_list"> | ||
{% include 'htmx/table.html' %} | ||
</div> | ||
</div> | ||
</form> | ||
{% endblock content %} | ||
|
||
{% block modals %} | ||
{{ block.super }} | ||
{% table_config_form table %} | ||
{% endblock modals %} |