From ce2210b7bcf7a7ab5d6a759e210a86e2f1b78770 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Fri, 23 Oct 2020 16:47:53 -0400 Subject: [PATCH] Introduce table_config_form template tag to simplify form generation --- netbox/templates/dcim/device.html | 55 ++++++++++++++++++- netbox/templates/utilities/obj_list.html | 6 +- .../templatetags}/table_config_form.html | 2 +- netbox/utilities/templatetags/helpers.py | 9 +++ 4 files changed, 66 insertions(+), 6 deletions(-) rename netbox/templates/{inc => utilities/templatetags}/table_config_form.html (95%) diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 7253bdcae..0394c0dc6 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -485,8 +485,11 @@
Interfaces -
+
+ {% if request.user.is_authenticated %} + + {% endif %}
{% include 'responsive_table.html' with table=interface_table %} @@ -527,6 +530,11 @@
Front Ports +
+ {% if request.user.is_authenticated %} + + {% endif %} +
{% include 'responsive_table.html' with table=frontport_table %}