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

Standardize usage of table template

This commit is contained in:
jeremystretch
2021-12-13 15:36:51 -05:00
parent dc1331e736
commit c50dc1eb35
45 changed files with 167 additions and 115 deletions

View File

@@ -1,6 +1,7 @@
{% extends 'generic/object.html' %}
{% load helpers %}
{% load plugins %}
{% load render_table from django_tables2 %}
{% block content %}
<div class="row mb-3">
@@ -43,8 +44,8 @@
<h5 class="card-header">
Clusters
</h5>
<div class="card-body">
{% include 'inc/table.html' with table=clusters_table %}
<div class="card-body table-responsive">
{% render_table clusters_table 'inc/table.html' %}
</div>
{% if perms.virtualization.add_cluster %}
<div class="card-footer text-end noprint">

View File

@@ -1,6 +1,7 @@
{% extends 'generic/object.html' %}
{% load helpers %}
{% load plugins %}
{% load render_table from django_tables2 %}
{% block content %}
<div class="row mb-3">
@@ -42,8 +43,8 @@
<h5 class="card-header">
Clusters
</h5>
<div class="card-body">
{% include 'inc/table.html' with table=clusters_table %}
<div class="card-body table-responsive">
{% render_table clusters_table 'inc/table.html' %}
</div>
{% if perms.virtualization.add_cluster %}
<div class="card-footer text-end noprint">

View File

@@ -7,7 +7,9 @@
<form method="post">
{% csrf_token %}
{% include 'inc/table_controls.html' with table_modal="VirtualMachineVMInterfaceTable_config" %}
{% render_table interface_table 'inc/table.html' %}
<div class="table-responsive">
{% render_table interface_table 'inc/table.html' %}
</div>
<div class="noprint">
{% if perms.virtualization.change_vminterface %}
<button type="submit" name="_rename" formaction="{% url 'virtualization:vminterface_bulk_rename' %}?return_url={% url 'virtualization:virtualmachine_interfaces' pk=object.pk %}" class="btn btn-warning btn-sm">

View File

@@ -91,7 +91,7 @@
<h5 class="card-header">
IP Addresses
</h5>
<div class="card-body">
<div class="card-body table-responsive">
{% if ipaddress_table.rows %}
{% render_table ipaddress_table 'inc/table.html' %}
{% else %}