From 12d643694f7bbab55ccf5c0e567fefa6f6dbe42a Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Wed, 2 Aug 2017 13:15:28 -0400 Subject: [PATCH] Cleaned up title blocks --- netbox/templates/circuits/circuit.html | 4 +--- netbox/templates/circuits/circuit_list.html | 4 +--- netbox/templates/circuits/circuittermination_edit.html | 6 +----- netbox/templates/circuits/circuittype_list.html | 4 +--- netbox/templates/circuits/provider.html | 4 +--- netbox/templates/circuits/provider_list.html | 4 +--- netbox/templates/dcim/console_connections_list.html | 4 +--- netbox/templates/dcim/consoleport_connect.html | 4 +--- netbox/templates/dcim/consoleserverport_connect.html | 4 +--- netbox/templates/dcim/device_list.html | 4 +--- netbox/templates/dcim/devicebay_populate.html | 4 +--- netbox/templates/dcim/devicerole_list.html | 4 +--- netbox/templates/dcim/devicetype.html | 4 +--- netbox/templates/dcim/devicetype_list.html | 4 +--- netbox/templates/dcim/interface_connections_list.html | 4 +--- netbox/templates/dcim/manufacturer_list.html | 4 +--- netbox/templates/dcim/platform_list.html | 4 +--- netbox/templates/dcim/power_connections_list.html | 4 +--- netbox/templates/dcim/poweroutlet_connect.html | 4 +--- netbox/templates/dcim/powerport_connect.html | 4 +--- netbox/templates/dcim/rack.html | 4 +--- netbox/templates/dcim/rack_list.html | 4 +--- netbox/templates/dcim/rackgroup_list.html | 4 +--- netbox/templates/dcim/rackrole_list.html | 4 +--- netbox/templates/dcim/region_list.html | 4 +--- netbox/templates/dcim/site.html | 4 +--- netbox/templates/dcim/site_list.html | 4 +--- netbox/templates/ipam/aggregate.html | 4 +--- netbox/templates/ipam/aggregate_list.html | 4 +--- netbox/templates/ipam/ipaddress.html | 4 +--- netbox/templates/ipam/ipaddress_assign.html | 4 +--- netbox/templates/ipam/ipaddress_list.html | 4 +--- netbox/templates/ipam/prefix_ipaddresses.html | 2 +- netbox/templates/ipam/prefix_list.html | 4 +--- netbox/templates/ipam/rir_list.html | 4 +--- netbox/templates/ipam/role_list.html | 4 +--- netbox/templates/ipam/vlan.html | 4 +--- netbox/templates/ipam/vlan_list.html | 4 +--- netbox/templates/ipam/vlangroup_list.html | 4 +--- netbox/templates/ipam/vrf.html | 4 +--- netbox/templates/ipam/vrf_list.html | 4 +--- netbox/templates/secrets/secret.html | 4 +--- netbox/templates/secrets/secret_edit.html | 4 +--- netbox/templates/secrets/secret_import.html | 4 +--- netbox/templates/secrets/secret_list.html | 4 +--- netbox/templates/secrets/secretrole_list.html | 4 +--- netbox/templates/tenancy/tenant.html | 4 +--- netbox/templates/tenancy/tenant_list.html | 4 +--- netbox/templates/tenancy/tenantgroup_list.html | 4 +--- 49 files changed, 49 insertions(+), 147 deletions(-) diff --git a/netbox/templates/circuits/circuit.html b/netbox/templates/circuits/circuit.html index f311ccb73..383d3bb7a 100644 --- a/netbox/templates/circuits/circuit.html +++ b/netbox/templates/circuits/circuit.html @@ -1,8 +1,6 @@ {% extends '_base.html' %} {% load helpers %} -{% block title %}{{ circuit.provider }} - {{ circuit.cid }}{% endblock %} - {% block content %}
@@ -39,7 +37,7 @@ {% endif %}
-

{{ circuit.provider }} - {{ circuit.cid }}

+

{% block title %}{{ circuit.provider }} - {{ circuit.cid }}{% endblock %}

{% include 'inc/created_updated.html' with obj=circuit %}
diff --git a/netbox/templates/circuits/circuit_list.html b/netbox/templates/circuits/circuit_list.html index 63ee92f2d..418459a15 100644 --- a/netbox/templates/circuits/circuit_list.html +++ b/netbox/templates/circuits/circuit_list.html @@ -1,8 +1,6 @@ {% extends '_base.html' %} {% load helpers %} -{% block title %}Circuits{% endblock %} - {% block content %}
{% if perms.circuits.add_circuit %} @@ -17,7 +15,7 @@ {% endif %} {% include 'inc/export_button.html' with obj_type='circuits' %}
-

Circuits

+

{% block title %}Circuits{% endblock %}

{% include 'utilities/obj_table.html' with bulk_edit_url='circuits:circuit_bulk_edit' bulk_delete_url='circuits:circuit_bulk_delete' %} diff --git a/netbox/templates/circuits/circuittermination_edit.html b/netbox/templates/circuits/circuittermination_edit.html index 13aa7e5b6..13052966b 100644 --- a/netbox/templates/circuits/circuittermination_edit.html +++ b/netbox/templates/circuits/circuittermination_edit.html @@ -2,10 +2,6 @@ {% load staticfiles %} {% load form_helpers %} -{% block title %} - Circuit {{ obj.circuit }} - Side {{ form.term_side.value }} -{% endblock %} - {% block content %}
{% csrf_token %} @@ -14,7 +10,7 @@ {% endfor %}
-

Circuit {{ obj.circuit }} - Side {{ form.term_side.value }}

+

{% block title %}Circuit {{ obj.circuit }} - {{ form.term_side.value }} Side{% endblock %}

{% if form.non_field_errors %}
Errors
diff --git a/netbox/templates/circuits/circuittype_list.html b/netbox/templates/circuits/circuittype_list.html index d59a5b82f..f545b1a1e 100644 --- a/netbox/templates/circuits/circuittype_list.html +++ b/netbox/templates/circuits/circuittype_list.html @@ -1,8 +1,6 @@ {% extends '_base.html' %} {% load helpers %} -{% block title %}Circuit Types{% endblock %} - {% block content %}
{% if perms.circuits.add_circuittype %} @@ -12,7 +10,7 @@ {% endif %}
-

Circuit Types

+

{% block title %}Circuit Types{% endblock %}

{% include 'utilities/obj_table.html' with bulk_delete_url='circuits:circuittype_bulk_delete' %} diff --git a/netbox/templates/circuits/provider.html b/netbox/templates/circuits/provider.html index 35562a7a3..6dcccfd8d 100644 --- a/netbox/templates/circuits/provider.html +++ b/netbox/templates/circuits/provider.html @@ -2,8 +2,6 @@ {% load static from staticfiles %} {% load helpers %} -{% block title %}{{ provider }}{% endblock %} - {% block content %}
@@ -45,7 +43,7 @@ {% endif %}
-

{{ provider }}

+

{% block title %}{{ provider }}{% endblock %}

{% include 'inc/created_updated.html' with obj=provider %}
diff --git a/netbox/templates/circuits/provider_list.html b/netbox/templates/circuits/provider_list.html index 36438d66b..9ba8bb838 100644 --- a/netbox/templates/circuits/provider_list.html +++ b/netbox/templates/circuits/provider_list.html @@ -1,7 +1,5 @@ {% extends '_base.html' %} -{% block title %}Providers{% endblock %} - {% block content %}
{% if perms.circuits.add_provider %} @@ -16,7 +14,7 @@ {% endif %} {% include 'inc/export_button.html' with obj_type='providers' %}
-

Providers

+

{% block title %}Providers{% endblock %}

{% include 'utilities/obj_table.html' with bulk_edit_url='circuits:provider_bulk_edit' bulk_delete_url='circuits:provider_bulk_delete' %} diff --git a/netbox/templates/dcim/console_connections_list.html b/netbox/templates/dcim/console_connections_list.html index fc2cbb762..57d3435e5 100644 --- a/netbox/templates/dcim/console_connections_list.html +++ b/netbox/templates/dcim/console_connections_list.html @@ -1,7 +1,5 @@ {% extends '_base.html' %} -{% block title %}Console Connections{% endblock %} - {% block content %}
{% if perms.dcim.change_consoleport %} @@ -12,7 +10,7 @@ {% endif %} {% include 'inc/export_button.html' with obj_type='connections' %}
-

Console Connections

+

{% block title %}Console Connections{% endblock %}

{% include 'responsive_table.html' %} diff --git a/netbox/templates/dcim/consoleport_connect.html b/netbox/templates/dcim/consoleport_connect.html index e06bf45ec..679540960 100644 --- a/netbox/templates/dcim/consoleport_connect.html +++ b/netbox/templates/dcim/consoleport_connect.html @@ -2,8 +2,6 @@ {% load static from staticfiles %} {% load form_helpers %} -{% block title %}Connect {{ consoleport.device }} {{ consoleport }}{% endblock %} - {% block content %} {% csrf_token %} @@ -21,7 +19,7 @@
{% endif %}
-
Connect {{ consoleport.device }} {{ consoleport }}
+
{% block title %}Connect {{ consoleport.device }} {{ consoleport }}{% endblock %}
{% endif %}
-
Connect {{ consoleserverport.device }} {{ consoleserverport }}
+
{% block title %}Connect {{ consoleserverport.device }} {{ consoleserverport }}{% endblock %}