diff --git a/src/argus/htmx/appconfig.py b/src/argus/htmx/appconfig.py index 680b2452d..f78d1b70d 100644 --- a/src/argus/htmx/appconfig.py +++ b/src/argus/htmx/appconfig.py @@ -42,6 +42,10 @@ "argus.htmx.middleware.HtmxMessageMiddleware": "end", }, }, + { + "app_name": "django.forms", + "settings": {"FORM_RENDERER": "django.forms.renderers.TemplatesSetting"}, + }, ] APP_SETTINGS = ListAppSetting(_app_settings).root diff --git a/src/argus/htmx/static/styles.css b/src/argus/htmx/static/styles.css index a9b3e5010..01b2b6e78 100644 --- a/src/argus/htmx/static/styles.css +++ b/src/argus/htmx/static/styles.css @@ -2104,12 +2104,6 @@ input.tab:checked + .tab-content, color: var(--fallback-a,oklch(var(--a)/var(--tw-text-opacity))); } -.btm-nav > *:where(.active) { - border-top-width: 2px; - --tw-bg-opacity: 1; - background-color: var(--fallback-b1,oklch(var(--b1)/var(--tw-bg-opacity))); -} - .btm-nav > * .label { font-size: 1rem; line-height: 1.5rem; @@ -3332,13 +3326,6 @@ details.collapse summary::-webkit-details-marker { background-color: var(--fallback-b2,oklch(var(--b2)/var(--tw-bg-opacity))); } -.table-zebra tr.active, - .table-zebra tr.active:nth-child(even), - .table-zebra-zebra tbody tr:nth-child(even) { - --tw-bg-opacity: 1; - background-color: var(--fallback-b3,oklch(var(--b3)/var(--tw-bg-opacity))); -} - .table :where(thead tr, tbody tr:not(:last-child), tbody tr:first-child:last-child) { border-bottom-width: 1px; --tw-border-opacity: 1; @@ -3469,22 +3456,6 @@ details.collapse summary::-webkit-details-marker { } } -.btm-nav-xs > *:where(.active) { - border-top-width: 1px; -} - -.btm-nav-sm > *:where(.active) { - border-top-width: 2px; -} - -.btm-nav-md > *:where(.active) { - border-top-width: 2px; -} - -.btm-nav-lg > *:where(.active) { - border-top-width: 4px; -} - .btn-xs { height: 1.5rem; min-height: 1.5rem; @@ -4197,6 +4168,10 @@ details.collapse summary::-webkit-details-marker { display: table; } +.contents { + display: contents; +} + .hidden { display: none; } diff --git a/src/argus/htmx/templates/django/forms/div.html b/src/argus/htmx/templates/django/forms/div.html new file mode 100644 index 000000000..3fb9f92ce --- /dev/null +++ b/src/argus/htmx/templates/django/forms/div.html @@ -0,0 +1,28 @@ +{% if errors and not fields %} +