From 125965b5596ec584c4c2571c6c820a95c1f88f4f Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 18 Apr 2021 11:35:42 -0700 Subject: [PATCH] migrate templates to bootstrap 5 --- netbox/templates/40x.html | 22 +- netbox/templates/dcim/connections_list.html | 21 +- netbox/templates/dcim/device.html | 12 +- netbox/templates/dcim/manufacturer.html | 62 +++--- netbox/templates/dcim/poweroutlet.html | 121 +++++------ netbox/templates/dcim/powerport.html | 131 ++++++------ .../dcim/virtualchassis_add_member.html | 31 ++- netbox/templates/extras/journalentry.html | 78 +++---- .../templates/generic/object_bulk_import.html | 194 ++++++++++-------- .../templates/generic/object_bulk_remove.html | 36 ++-- .../templates/generic/object_bulk_rename.html | 71 +++---- netbox/templates/ipam/rir.html | 84 ++++---- netbox/templates/ipam/role.html | 72 ++++--- netbox/templates/ipam/service.html | 94 +++++---- netbox/templates/ipam/service_edit.html | 57 +++-- netbox/templates/ipam/vlan/base.html | 20 +- netbox/templates/ipam/vlan_edit.html | 80 ++++---- netbox/templates/ipam/vlangroup.html | 82 ++++---- netbox/templates/utilities/render_field.html | 12 -- 19 files changed, 650 insertions(+), 630 deletions(-) diff --git a/netbox/templates/40x.html b/netbox/templates/40x.html index d923d001e..b27a157cf 100644 --- a/netbox/templates/40x.html +++ b/netbox/templates/40x.html @@ -1,17 +1,19 @@ -{% extends 'base.html' %} +{% extends 'layout.html' %} + +{% block title %}{% endblock %} {% block content %} -
-
-
-
- {% block icon %}{% endblock %} {% block title %}{% endblock %} -
-
+
+
+
+
+ {{ request_path }} +
+
{% block message %}{% endblock %}
-
diff --git a/netbox/templates/dcim/connections_list.html b/netbox/templates/dcim/connections_list.html index f1146e276..806b39a3c 100644 --- a/netbox/templates/dcim/connections_list.html +++ b/netbox/templates/dcim/connections_list.html @@ -1,19 +1,22 @@ -{% extends 'base.html' %} +{% extends 'layout.html' %} {% load buttons %} {% block title %}{{ title }}{% endblock %} +{% block extra_controls %}{% export_button content_type %}{% endblock %} + {% block content %} -
- {% export_button content_type %} -
-
-
-
- {% include 'inc/search_panel.html' %} +
+
+
+
+ {% include 'responsive_table.html' %} +
- {% include 'responsive_table.html' %} {% include 'inc/paginator.html' with paginator=table.paginator page=table.page %}
+
+ {% include 'inc/search_panel.html' %} +
{% endblock %} diff --git a/netbox/templates/dcim/device.html b/netbox/templates/dcim/device.html index e4947c1a4..1db885e0b 100644 --- a/netbox/templates/dcim/device.html +++ b/netbox/templates/dcim/device.html @@ -285,7 +285,7 @@ {% if perms.secrets.add_secret %} {% endif %} @@ -311,7 +311,7 @@ {% if perms.ipam.add_service %} {% endif %} @@ -326,8 +326,8 @@ {% if perms.extras.add_imageattachment %} {% endif %} @@ -379,7 +379,3 @@
{% include 'secrets/inc/private_key_modal.html' %} {% endblock %} - -{% block javascript %} - -{% endblock %} diff --git a/netbox/templates/dcim/manufacturer.html b/netbox/templates/dcim/manufacturer.html index b2ecacbb1..2e0e553bd 100644 --- a/netbox/templates/dcim/manufacturer.html +++ b/netbox/templates/dcim/manufacturer.html @@ -3,33 +3,35 @@ {% load plugins %} {% block breadcrumbs %} -
  • Manufacturers
  • -
  • {{ object }}
  • + + {% endblock %} {% block content %} -
    +
    -
    -
    - Manufacturer +
    +
    + Manufacturer +
    +
    + + + + + + + + + + + + + +
    Name{{ object.name }}
    Description{{ object.description|placeholder }}
    Device types + {{ devicetypes_table.rows|length }} +
    - - - - - - - - - - - - - -
    Name{{ object.name }}
    Description{{ object.description|placeholder }}
    Device types - {{ devicetypes_table.rows|length }} -
    {% plugin_left_page object %}
    @@ -38,16 +40,18 @@ {% plugin_right_page object %}
    -
    +
    -
    -
    - Device Types +
    +
    + Device Types +
    +
    + {% include 'inc/table.html' with table=devicetypes_table %}
    - {% include 'inc/table.html' with table=devicetypes_table %} {% if perms.dcim.add_devicetype %} -