mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-19 17:59:11 -06:00
Standardize usage of table template
This commit is contained in:
parent
dc1331e736
commit
c50dc1eb35
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -42,8 +43,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Circuits
|
Circuits
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=circuits_table %}
|
{% render_table circuits_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.circuits.add_circuit %}
|
{% if perms.circuits.add_circuit %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -61,8 +62,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Circuits
|
Circuits
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=circuits_table %}
|
{% render_table circuits_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.circuits.add_circuit %}
|
{% if perms.circuits.add_circuit %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
{% load static %}
|
{% load static %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -49,8 +50,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Circuits
|
Circuits
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=circuits_table %}
|
{% render_table circuits_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/paginator.html' with paginator=circuits_table.paginator page=circuits_table.page %}
|
{% include 'inc/paginator.html' with paginator=circuits_table.paginator page=circuits_table.page %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DeviceConsolePortTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DeviceConsolePortTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_consoleport %}
|
{% if perms.dcim.change_consoleport %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DeviceConsoleServerPortTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DeviceConsoleServerPortTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_consoleserverport %}
|
{% if perms.dcim.change_consoleserverport %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DeviceDeviceBayTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DeviceDeviceBayTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_devicebay %}
|
{% if perms.dcim.change_devicebay %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DeviceFrontPortTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DeviceFrontPortTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_frontport %}
|
{% if perms.dcim.change_frontport %}
|
||||||
|
@ -34,7 +34,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_interface %}
|
{% if perms.dcim.change_interface %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DeviceInventoryItemTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DeviceInventoryItemTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_inventoryitem %}
|
{% if perms.dcim.change_inventoryitem %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DevicePowerOutletTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DevicePowerOutletTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_powerport %}
|
{% if perms.dcim.change_powerport %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DevicePowerPortTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DevicePowerPortTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_powerport %}
|
{% if perms.dcim.change_powerport %}
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="DeviceRearPortTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="DeviceRearPortTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint bulk-buttons">
|
<div class="noprint bulk-buttons">
|
||||||
<div class="bulk-button-group">
|
<div class="bulk-button-group">
|
||||||
{% if perms.dcim.change_rearport %}
|
{% if perms.dcim.change_rearport %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
<li class="breadcrumb-item"><a href="{% url 'dcim:devicerole_list' %}">Device Roles</a></li>
|
<li class="breadcrumb-item"><a href="{% url 'dcim:devicerole_list' %}">Device Roles</a></li>
|
||||||
@ -72,8 +73,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Devices
|
Devices
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=devices_table %}
|
{% render_table devices_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_device %}
|
{% if perms.dcim.add_device %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -450,7 +450,7 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
IP Addresses
|
IP Addresses
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% if ipaddress_table.rows %}
|
{% if ipaddress_table.rows %}
|
||||||
{% render_table ipaddress_table 'inc/table.html' %}
|
{% render_table ipaddress_table 'inc/table.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -91,8 +92,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Locations
|
Locations
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=child_locations_table %}
|
{% render_table child_locations_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_location %}
|
{% if perms.dcim.add_location %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -49,8 +50,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Device Types
|
Device Types
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=devicetypes_table %}
|
{% render_table devicetypes_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_devicetype %}
|
{% if perms.dcim.add_devicetype %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -77,8 +78,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Devices
|
Devices
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=devices_table %}
|
{% render_table devices_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_device %}
|
{% if perms.dcim.add_device %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -54,7 +54,7 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% render_table powerfeed_table 'inc/table.html' %}
|
{% render_table powerfeed_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
<div class="card-footer noprint">
|
<div class="card-footer noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -48,8 +49,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Racks
|
Racks
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=racks_table %}
|
{% render_table racks_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_rack %}
|
{% if perms.dcim.add_rack %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -55,8 +56,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Child Regions
|
Child Regions
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=child_regions_table %}
|
{% render_table child_regions_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_region %}
|
{% if perms.dcim.add_region %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
@ -75,8 +76,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Sites
|
Sites
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=sites_table %}
|
{% render_table sites_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_site %}
|
{% if perms.dcim.add_site %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -55,8 +56,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Child Groups
|
Child Groups
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=child_groups_table %}
|
{% render_table child_groups_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_sitegroup %}
|
{% if perms.dcim.add_sitegroup %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
@ -75,8 +76,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Sites
|
Sites
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=sites_table %}
|
{% render_table sites_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.dcim.add_site %}
|
{% if perms.dcim.add_site %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -2,7 +2,9 @@
|
|||||||
{% load render_table from django_tables2 %}
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
||||||
<div class="text-muted">
|
<div class="text-muted">
|
||||||
Change log retention: {% if settings.CHANGELOG_RETENTION %}{{ settings.CHANGELOG_RETENTION }} days{% else %}Indefinite{% endif %}
|
Change log retention: {% if settings.CHANGELOG_RETENTION %}{{ settings.CHANGELOG_RETENTION }} days{% else %}Indefinite{% endif %}
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
{% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends 'base/layout.html' %}
|
{% extends 'base/layout.html' %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}Add {{ model_name|title }}{% endblock %}
|
{% block title %}Add {{ model_name|title }}{% endblock %}
|
||||||
|
|
||||||
@ -15,8 +16,8 @@
|
|||||||
{% endfor %}
|
{% endfor %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col col-md-7">
|
<div class="col col-md-7">
|
||||||
<div class="card">
|
<div class="table-responsive">
|
||||||
{% include 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="col col-md-5">
|
<div class="col col-md-5">
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends 'base/layout.html' %}
|
{% extends 'base/layout.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}Delete {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
{% block title %}Delete {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
||||||
|
|
||||||
@ -15,7 +16,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container-xl px-0">
|
<div class="container-xl px-0">
|
||||||
{% include 'inc/table.html' %}
|
<div class="table-responsive">
|
||||||
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="row mt-3">
|
<div class="row mt-3">
|
||||||
<form action="" method="post">
|
<form action="" method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'base/layout.html' %}
|
{% extends 'base/layout.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load form_helpers %}
|
{% load form_helpers %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}
|
{% block title %}Editing {{ table.rows|length }} {{ obj_type_plural|bettertitle }}{% endblock %}
|
||||||
|
|
||||||
@ -59,7 +60,9 @@
|
|||||||
|
|
||||||
{# Selected objects list #}
|
{# Selected objects list #}
|
||||||
<div class="tab-pane" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
<div class="tab-pane" id="object-list" role="tabpanel" aria-labelledby="object-list-tab">
|
||||||
{% include 'inc/table.html' %}
|
<div class="table-responsive">
|
||||||
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
@ -1,5 +1,6 @@
|
|||||||
{% extends 'base/layout.html' %}
|
{% extends 'base/layout.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block title %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
{% block title %}Remove {{ table.rows|length }} {{ obj_type_plural|bettertitle }}?{% endblock %}
|
||||||
|
|
||||||
@ -13,7 +14,9 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="container-xl px-0">
|
<div class="container-xl px-0">
|
||||||
{% include 'inc/table.html' %}
|
<div class="table-responsive">
|
||||||
|
{% render_table table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<form action="." method="post" class="form">
|
<form action="." method="post" class="form">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% for field in form.hidden_fields %}
|
{% for field in form.hidden_fields %}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
{{ heading }}
|
{{ heading }}
|
||||||
</h5>
|
</h5>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% if table.rows %}
|
{% if table.rows %}
|
||||||
{% render_table table 'inc/table.html' %}
|
{% render_table table 'inc/table.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -1,6 +1,5 @@
|
|||||||
{% load django_tables2 %}
|
{% load django_tables2 %}
|
||||||
|
|
||||||
<div class="table-responsive">
|
|
||||||
<table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %}>
|
<table{% if table.attrs %} {{ table.attrs.as_html }}{% endif %}>
|
||||||
{% if table.show_header %}
|
{% if table.show_header %}
|
||||||
<thead>
|
<thead>
|
||||||
@ -40,4 +39,3 @@
|
|||||||
</tfoot>
|
</tfoot>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
{% load buttons %}
|
{% load buttons %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -67,8 +68,8 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Sites</h5>
|
<h5 class="card-header">Sites</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=sites_table %}
|
{% render_table sites_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/paginator.html' with paginator=sites_table.paginator page=sites_table.page %}
|
{% include 'inc/paginator.html' with paginator=sites_table.paginator page=sites_table.page %}
|
||||||
|
@ -64,7 +64,7 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Virtual IP Addresses</h5>
|
<h5 class="card-header">Virtual IP Addresses</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% if ipaddress_table.rows %}
|
{% if ipaddress_table.rows %}
|
||||||
{% render_table ipaddress_table 'inc/table.html' %}
|
{% render_table ipaddress_table 'inc/table.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
@ -81,7 +81,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Members</h5>
|
<h5 class="card-header">Members</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% if members_table.rows %}
|
{% if members_table.rows %}
|
||||||
{% render_table members_table 'inc/table.html' %}
|
{% render_table members_table 'inc/table.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -133,7 +133,7 @@
|
|||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% render_table duplicate_ips_table 'inc/table.html' %}
|
{% render_table duplicate_ips_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -52,8 +53,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Aggregates
|
Aggregates
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=aggregates_table %}
|
{% render_table aggregates_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.ipam.add_aggregate %}
|
{% if perms.ipam.add_aggregate %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -46,8 +47,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Prefixes
|
Prefixes
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=prefixes_table %}
|
{% render_table prefixes_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.ipam.add_prefix %}
|
{% if perms.ipam.add_prefix %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -69,7 +69,7 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
VLANs
|
VLANs
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% render_table vlans_table 'inc/table.html' %}
|
{% render_table vlans_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.ipam.add_vlan %}
|
{% if perms.ipam.add_vlan %}
|
||||||
|
@ -79,7 +79,7 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Assignments</h5>
|
<h5 class="card-header">Assignments</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% if assignments_table.rows %}
|
{% if assignments_table.rows %}
|
||||||
{% render_table assignments_table 'inc/table.html' %}
|
{% render_table assignments_table 'inc/table.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -54,8 +55,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Child Groups
|
Child Groups
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=child_groups_table %}
|
{% render_table child_groups_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.tenancy.add_contactgroup %}
|
{% if perms.tenancy.add_contactgroup %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
@ -74,8 +75,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Contacts
|
Contacts
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=contacts_table %}
|
{% render_table contacts_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.tenancy.add_contact %}
|
{% if perms.tenancy.add_contact %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
<li class="breadcrumb-item"><a href="{% url 'tenancy:contactrole_list' %}">Contact Roles</a></li>
|
<li class="breadcrumb-item"><a href="{% url 'tenancy:contactrole_list' %}">Contact Roles</a></li>
|
||||||
@ -42,8 +43,8 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Assigned Contacts</h5>
|
<h5 class="card-header">Assigned Contacts</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=contacts_table %}
|
{% render_table contacts_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/paginator.html' with paginator=contacts_table.paginator page=contacts_table.page %}
|
{% include 'inc/paginator.html' with paginator=contacts_table.paginator page=contacts_table.page %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -59,8 +60,8 @@
|
|||||||
<div class="card-header">
|
<div class="card-header">
|
||||||
Tenants
|
Tenants
|
||||||
</div>
|
</div>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=tenants_table %}
|
{% render_table tenants_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.tenancy.add_tenant %}
|
{% if perms.tenancy.add_tenant %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -43,8 +44,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Clusters
|
Clusters
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=clusters_table %}
|
{% render_table clusters_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.virtualization.add_cluster %}
|
{% if perms.virtualization.add_cluster %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row mb-3">
|
<div class="row mb-3">
|
||||||
@ -42,8 +43,8 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
Clusters
|
Clusters
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=clusters_table %}
|
{% render_table clusters_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.virtualization.add_cluster %}
|
{% if perms.virtualization.add_cluster %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
@ -7,7 +7,9 @@
|
|||||||
<form method="post">
|
<form method="post">
|
||||||
{% csrf_token %}
|
{% csrf_token %}
|
||||||
{% include 'inc/table_controls.html' with table_modal="VirtualMachineVMInterfaceTable_config" %}
|
{% include 'inc/table_controls.html' with table_modal="VirtualMachineVMInterfaceTable_config" %}
|
||||||
|
<div class="table-responsive">
|
||||||
{% render_table interface_table 'inc/table.html' %}
|
{% render_table interface_table 'inc/table.html' %}
|
||||||
|
</div>
|
||||||
<div class="noprint">
|
<div class="noprint">
|
||||||
{% if perms.virtualization.change_vminterface %}
|
{% 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">
|
<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">
|
||||||
|
@ -91,7 +91,7 @@
|
|||||||
<h5 class="card-header">
|
<h5 class="card-header">
|
||||||
IP Addresses
|
IP Addresses
|
||||||
</h5>
|
</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% if ipaddress_table.rows %}
|
{% if ipaddress_table.rows %}
|
||||||
{% render_table ipaddress_table 'inc/table.html' %}
|
{% render_table ipaddress_table 'inc/table.html' %}
|
||||||
{% else %}
|
{% else %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
<div class="row">
|
<div class="row">
|
||||||
@ -53,8 +54,8 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<h5 class="card-header">Attached Interfaces</h5>
|
<h5 class="card-header">Attached Interfaces</h5>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=interfaces_table %}
|
{% render_table interfaces_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
{% include 'inc/paginator.html' with paginator=interfaces_table.paginator page=interfaces_table.page %}
|
{% include 'inc/paginator.html' with paginator=interfaces_table.paginator page=interfaces_table.page %}
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
{% extends 'generic/object.html' %}
|
{% extends 'generic/object.html' %}
|
||||||
{% load helpers %}
|
{% load helpers %}
|
||||||
{% load plugins %}
|
{% load plugins %}
|
||||||
|
{% load render_table from django_tables2 %}
|
||||||
|
|
||||||
{% block breadcrumbs %}
|
{% block breadcrumbs %}
|
||||||
{{ block.super }}
|
{{ block.super }}
|
||||||
@ -55,8 +56,8 @@
|
|||||||
<div class="col col-md-12">
|
<div class="col col-md-12">
|
||||||
<div class="card">
|
<div class="card">
|
||||||
<div class="card-header">Wireless LANs</div>
|
<div class="card-header">Wireless LANs</div>
|
||||||
<div class="card-body">
|
<div class="card-body table-responsive">
|
||||||
{% include 'inc/table.html' with table=wirelesslans_table %}
|
{% render_table wirelesslans_table 'inc/table.html' %}
|
||||||
</div>
|
</div>
|
||||||
{% if perms.wireless.add_wirelesslan %}
|
{% if perms.wireless.add_wirelesslan %}
|
||||||
<div class="card-footer text-end noprint">
|
<div class="card-footer text-end noprint">
|
||||||
|
Loading…
Reference in New Issue
Block a user