From 6ee4284ac53ccc110718859d073060c975d3a414 Mon Sep 17 00:00:00 2001 From: Vitalii Rybalko Date: Wed, 1 Mar 2023 17:31:04 +0200 Subject: [PATCH 1/2] Fix TabularInline add and delete buttons --- admin_volt/static/css/forms.css | 2 +- admin_volt/static/css/widgets.css | 2 +- admin_volt/templates/layouts/base.html | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/admin_volt/static/css/forms.css b/admin_volt/static/css/forms.css index b472c2d..0ddc5de 100755 --- a/admin_volt/static/css/forms.css +++ b/admin_volt/static/css/forms.css @@ -509,7 +509,7 @@ body.popup .submit-row { .inline-group ul.tools a.add, .inline-group div.add-row a, .inline-group .tabular tr.add-row td a { - background: url(../img/icon-addlink.svg) 0 1px no-repeat; + background: url(../admin/img/icon-addlink.svg) 0 1px no-repeat; padding-left: 16px; font-size: 12px; } diff --git a/admin_volt/static/css/widgets.css b/admin_volt/static/css/widgets.css index b4d235a..fa2460e 100755 --- a/admin_volt/static/css/widgets.css +++ b/admin_volt/static/css/widgets.css @@ -553,7 +553,7 @@ ul.timelist, .timelist li { .inline-deletelink { float: right; text-indent: -9999px; - background: url(../img/inline-delete.svg) 0 0 no-repeat; + background: url(../admin/img/inline-delete.svg) 0 0 no-repeat; width: 16px; height: 16px; border: 0px none; diff --git a/admin_volt/templates/layouts/base.html b/admin_volt/templates/layouts/base.html index ee81ffa..192a566 100644 --- a/admin_volt/templates/layouts/base.html +++ b/admin_volt/templates/layouts/base.html @@ -21,6 +21,7 @@ {% include 'includes/head.html' %} {% block extrastyle %}{% endblock extrastyle %} + {% block extrahead %}{% endblock extrahead %} {% block nav %} From 04a1b1146b25ac91d0a01a708a1ea7ea521a4a38 Mon Sep 17 00:00:00 2001 From: Vitalii Rybalko Date: Wed, 1 Mar 2023 17:36:09 +0200 Subject: [PATCH 2/2] css: fix: load all icons from ../admin/img instead of non existant forlder /static/img/ --- admin_volt/static/css/forms.css | 4 ++-- admin_volt/static/css/widgets.css | 26 +++++++++++++------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/admin_volt/static/css/forms.css b/admin_volt/static/css/forms.css index 0ddc5de..f6e3e76 100755 --- a/admin_volt/static/css/forms.css +++ b/admin_volt/static/css/forms.css @@ -531,13 +531,13 @@ body.popup .submit-row { .add-another { width: 16px; height: 16px; - background-image: url(../img/icon-addlink.svg); + background-image: url(../admin/img/icon-addlink.svg); } .related-lookup { width: 16px; height: 16px; - background-image: url(../img/search.svg); + background-image: url(../admin/img/search.svg); } form .related-widget-wrapper ul { diff --git a/admin_volt/static/css/widgets.css b/admin_volt/static/css/widgets.css index fa2460e..e9a3051 100755 --- a/admin_volt/static/css/widgets.css +++ b/admin_volt/static/css/widgets.css @@ -123,7 +123,7 @@ } .selector-add { - background: url(../img/selector-icons.svg) 0 -96px no-repeat; + background: url(../admin/img/selector-icons.svg) 0 -96px no-repeat; } .active.selector-add:focus, .active.selector-add:hover { @@ -131,7 +131,7 @@ } .selector-remove { - background: url(../img/selector-icons.svg) 0 -64px no-repeat; + background: url(../admin/img/selector-icons.svg) 0 -64px no-repeat; } .active.selector-remove:focus, .active.selector-remove:hover { @@ -166,7 +166,7 @@ a.active.selector-chooseall:hover, a.active.selector-clearall:hover { a.selector-chooseall { padding: 0 18px 0 0; - background: url(../img/selector-icons.svg) right -160px no-repeat; + background: url(../admin/img/selector-icons.svg) right -160px no-repeat; cursor: default; } @@ -176,7 +176,7 @@ a.active.selector-chooseall:focus, a.active.selector-chooseall:hover { a.selector-clearall { padding: 0 0 0 18px; - background: url(../img/selector-icons.svg) 0 -128px no-repeat; + background: url(../admin/img/selector-icons.svg) 0 -128px no-repeat; cursor: default; } @@ -226,7 +226,7 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover { } .stacked .selector-add { - background: url(../img/selector-icons.svg) 0 -32px no-repeat; + background: url(../admin/img/selector-icons.svg) 0 -32px no-repeat; cursor: default; } @@ -236,7 +236,7 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover { } .stacked .selector-remove { - background: url(../img/selector-icons.svg) 0 0 no-repeat; + background: url(../admin/img/selector-icons.svg) 0 0 no-repeat; cursor: default; } @@ -246,7 +246,7 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover { } .selector .help-icon { - background: url(../img/icon-unknown.svg) 0 0 no-repeat; + background: url(../admin/img/icon-unknown.svg) 0 0 no-repeat; display: inline-block; vertical-align: middle; margin: -2px 0 0 2px; @@ -255,11 +255,11 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover { } .selector .selector-chosen .help-icon { - background: url(../img/icon-unknown-alt.svg) 0 0 no-repeat; + background: url(../admin/img/icon-unknown-alt.svg) 0 0 no-repeat; } .selector .search-label-icon { - background: url(../img/search.svg) 0 0 no-repeat; + background: url(../admin/img/search.svg) 0 0 no-repeat; display: inline-block; height: 25px; width: 25px; @@ -305,7 +305,7 @@ table p.datetime { } .datetimeshortcuts .clock-icon { - background: url(../img/icon-clock.svg) 0 0 no-repeat; + background: url(../admin/img/icon-clock.svg) 0 0 no-repeat; } .datetimeshortcuts a:focus .clock-icon, @@ -314,7 +314,7 @@ table p.datetime { } .datetimeshortcuts .date-icon { - background: url(../img/icon-calendar.svg) 0 0 no-repeat; + background: url(../admin/img/icon-calendar.svg) 0 0 no-repeat; top: -1px; } @@ -502,7 +502,7 @@ span.clearable-file-input label { .calendarnav-previous { left: 10px; - background: url(../img/calendar-icons.svg) 0 0 no-repeat; + background: url(../admin/img/calendar-icons.svg) 0 0 no-repeat; } .calendarbox .calendarnav-previous:focus, @@ -512,7 +512,7 @@ span.clearable-file-input label { .calendarnav-next { right: 10px; - background: url(../img/calendar-icons.svg) 0 -30px no-repeat; + background: url(../admin/img/calendar-icons.svg) 0 -30px no-repeat; } .calendarbox .calendarnav-next:focus,