From 991f71bf28d35bb23eb05e46dd51ff28c77f4500 Mon Sep 17 00:00:00 2001 From: checktheroads Date: Sun, 14 Mar 2021 01:06:18 -0700 Subject: [PATCH] update templates to bootstrap 5 classes --- netbox/project-static/netbox.scss | 15 + netbox/templates/base.html | 3 +- netbox/templates/dcim/device.html | 7 +- netbox/templates/dcim/device_edit.html | 2 + netbox/templates/dcim/inc/cable_form.html | 69 ++-- netbox/templates/extras/configcontext.html | 348 +++++++++--------- .../extras/inc/configcontext_format.html | 8 +- netbox/templates/generic/object.html | 2 +- .../templates/generic/object_bulk_delete.html | 39 +- 9 files changed, 259 insertions(+), 234 deletions(-) diff --git a/netbox/project-static/netbox.scss b/netbox/project-static/netbox.scss index 4e2deddaf..1d8b42827 100644 --- a/netbox/project-static/netbox.scss +++ b/netbox/project-static/netbox.scss @@ -313,3 +313,18 @@ div.field-group:not(:first-of-type) { margin-bottom: $spacer; } } + +label.required { + font-weight: $font-weight-bold; + &::after { + font-family: bootstrap-icons; + content: '\f151'; + font-weight: normal; + font-size: 8px; + font-style: normal; + margin: 0 0 0 2px; + text-decoration: none; + display: inline-block; + position: absolute; + } +} diff --git a/netbox/templates/base.html b/netbox/templates/base.html index e2828c318..8f6f66685 100644 --- a/netbox/templates/base.html +++ b/netbox/templates/base.html @@ -17,8 +17,7 @@ /> - {% comment %} {% include './layout.html' %} {% endcomment %} {% comment %} - {% endcomment %} {% block layout %}{% endblock %} + {% block layout %}{% endblock %}