From 338539e0d652959f4f7b548fff4428f02b2aea7e Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 22 Jun 2016 10:57:32 -0400 Subject: [PATCH] Include created and last_updated fields --- netbox/templates/circuits/circuit.html | 10 +++++++++- netbox/templates/circuits/circuit_edit.html | 2 +- netbox/templates/circuits/provider.html | 10 +++++++++- netbox/templates/dcim/device.html | 10 +++++++++- netbox/templates/dcim/rack.html | 10 +++++++++- netbox/templates/dcim/site.html | 10 +++++++++- netbox/templates/ipam/aggregate.html | 10 +++++++++- netbox/templates/ipam/ipaddress.html | 10 +++++++++- netbox/templates/ipam/prefix.html | 10 +++++++++- netbox/templates/ipam/vlan.html | 10 +++++++++- netbox/templates/ipam/vrf.html | 10 +++++++++- netbox/templates/utilities/obj_edit.html | 2 +- 12 files changed, 92 insertions(+), 12 deletions(-) diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index 0d354549d..cbae7aeac 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -44,7 +44,7 @@
- Details + Circuit
@@ -93,6 +93,14 @@ + + + + + + + +
Patch Panel/Port {{ circuit.pp_info }}
Created{{ circuit.created }}
Last Updated{{ circuit.last_updated }}
diff --git a/netbox/templates/circuits/circuit_edit.html b/netbox/templates/circuits/circuit_edit.html index 9a1f418b0..1d5a0318c 100644 --- a/netbox/templates/circuits/circuit_edit.html +++ b/netbox/templates/circuits/circuit_edit.html @@ -4,7 +4,7 @@ {% block form %}
-
Details
+
Circuit
{% render_field form.provider %} {% render_field form.cid %} diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index c479e306e..ad96f6947 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -31,7 +31,7 @@
- Details + Provider
@@ -56,6 +56,14 @@ + + + + + + + +
Admin Contact {{ provider.admin_contact|linebreaksbr }}
Created{{ provider.created }}
Last Updated{{ provider.last_updated }}
diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index 030ddf393..1261cfcc2 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -11,7 +11,7 @@
- Hardware + Device
@@ -54,6 +54,14 @@ {% endif %} + + + + + + + +
Created{{ device.created }}
Last Updated{{ device.last_updated }}
diff --git a/netbox/templates/dcim/rack.html b/netbox/templates/dcim/rack.html index 3a4abe70e..978e87ebe 100644 --- a/netbox/templates/dcim/rack.html +++ b/netbox/templates/dcim/rack.html @@ -57,7 +57,7 @@
- Details + Rack
@@ -96,6 +96,14 @@ {{ rack.devices.count }} + + + + + + + +
Created{{ rack.created }}
Last Updated{{ rack.last_updated }}
diff --git a/netbox/templates/dcim/site.html b/netbox/templates/dcim/site.html index fbff0895c..6ff3af6c0 100644 --- a/netbox/templates/dcim/site.html +++ b/netbox/templates/dcim/site.html @@ -28,7 +28,7 @@
- Details + Site
@@ -62,6 +62,14 @@ {% endif %} + + + + + + + +
Created{{ site.created }}
Last Updated{{ site.last_updated }}
diff --git a/netbox/templates/ipam/aggregate.html b/netbox/templates/ipam/aggregate.html index 6c939056d..93c6677d7 100644 --- a/netbox/templates/ipam/aggregate.html +++ b/netbox/templates/ipam/aggregate.html @@ -32,7 +32,7 @@
- Details + Aggregate
@@ -65,6 +65,14 @@ {% endif %} + + + + + + + +
Created{{ aggregate.created }}
Last Updated{{ aggregate.last_updated }}
diff --git a/netbox/templates/ipam/ipaddress.html b/netbox/templates/ipam/ipaddress.html index 867ee9ba4..4c2d11f10 100644 --- a/netbox/templates/ipam/ipaddress.html +++ b/netbox/templates/ipam/ipaddress.html @@ -47,7 +47,7 @@
- Details + IP Address
@@ -107,6 +107,14 @@ {% endif %} + + + + + + + +
Created{{ ipaddress.created }}
Last Updated{{ ipaddress.last_updated }}
diff --git a/netbox/templates/ipam/prefix.html b/netbox/templates/ipam/prefix.html index d2f3c2e24..6403717f4 100644 --- a/netbox/templates/ipam/prefix.html +++ b/netbox/templates/ipam/prefix.html @@ -9,7 +9,7 @@
- Details + Prefix
@@ -80,6 +80,14 @@ + + + + + + + +
IP Addresses {{ ipaddress_count }}
Created{{ prefix.created }}
Last Updated{{ prefix.last_updated }}
diff --git a/netbox/templates/ipam/vlan.html b/netbox/templates/ipam/vlan.html index 5db0efd10..c3c4afc44 100644 --- a/netbox/templates/ipam/vlan.html +++ b/netbox/templates/ipam/vlan.html @@ -44,7 +44,7 @@
- Details + VLAN
@@ -68,6 +68,14 @@ + + + + + + + +
Role {{ vlan.role }}
Created{{ vlan.created }}
Last Updated{{ vlan.last_updated }}
diff --git a/netbox/templates/ipam/vrf.html b/netbox/templates/ipam/vrf.html index 5e20ad84e..e0af3038a 100644 --- a/netbox/templates/ipam/vrf.html +++ b/netbox/templates/ipam/vrf.html @@ -23,7 +23,7 @@
- Details + VRF
@@ -39,6 +39,14 @@ None {% endif %} + + + + + + + +
Created{{ vrf.created }}
Last Updated{{ vrf.last_updated }}
diff --git a/netbox/templates/utilities/obj_edit.html b/netbox/templates/utilities/obj_edit.html index 8ca61e02d..6266bd3fc 100644 --- a/netbox/templates/utilities/obj_edit.html +++ b/netbox/templates/utilities/obj_edit.html @@ -21,7 +21,7 @@ {% endif %} {% block form %}
-
Details
+
{{ obj_type|capfirst }}
{% render_form form %}