From 8eed94ccd945ce6701a18a564ac3264cf452ea39 Mon Sep 17 00:00:00 2001 From: Jeremy Stretch Date: Thu, 11 Jan 2024 14:07:44 -0500 Subject: [PATCH] Update & standardize alert styling --- netbox/templates/base/layout.html | 14 ++--------- netbox/templates/generic/bulk_delete.html | 22 ++++++++++------- netbox/templates/generic/bulk_remove.html | 22 ++++++++--------- netbox/templates/home.html | 24 ++++++++++--------- netbox/templates/inc/alerts/danger.html | 15 ++++++++++++ netbox/templates/inc/alerts/info.html | 15 ++++++++++++ netbox/templates/inc/alerts/success.html | 15 ++++++++++++ netbox/templates/inc/alerts/warning.html | 15 ++++++++++++ .../templates/inc/missing_prerequisites.html | 18 ++++++++------ netbox/templates/inc/sync_warning.html | 15 ++++++++---- 10 files changed, 119 insertions(+), 56 deletions(-) create mode 100644 netbox/templates/inc/alerts/danger.html create mode 100644 netbox/templates/inc/alerts/info.html create mode 100644 netbox/templates/inc/alerts/success.html create mode 100644 netbox/templates/inc/alerts/warning.html diff --git a/netbox/templates/base/layout.html b/netbox/templates/base/layout.html index 6eadb0b55..36caa0039 100644 --- a/netbox/templates/base/layout.html +++ b/netbox/templates/base/layout.html @@ -126,21 +126,11 @@ Blocks: {% endif %} {% if settings.DEBUG and not settings.DEVELOPER %} - + {% include 'inc/alerts/warning.html' with title="Debug mode is enabled" message="Performance may be limited. Debugging should never be enabled on a production system." %} {% endif %} {% if config.MAINTENANCE_MODE and config.BANNER_MAINTENANCE %} - + {% include 'inc/alerts/warning.html' with title="Maintenance Mode" message=config.BANNER_MAINTENANCE|escape %} {% endif %} {# /Banners #} diff --git a/netbox/templates/generic/bulk_delete.html b/netbox/templates/generic/bulk_delete.html index 6015747d0..120ad53ae 100644 --- a/netbox/templates/generic/bulk_delete.html +++ b/netbox/templates/generic/bulk_delete.html @@ -38,15 +38,19 @@ Context: {# Confirmation form #}
-