Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes issue #17 : TabularInline and StackedInline add/delete buttons don't work #18

Merged
merged 2 commits into from
Mar 1, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions admin_volt/static/css/forms.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand All @@ -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 {
Expand Down
28 changes: 14 additions & 14 deletions admin_volt/static/css/widgets.css
Original file line number Diff line number Diff line change
Expand Up @@ -123,15 +123,15 @@
}

.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 {
background-position: 0 -112px;
}

.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 {
Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand Down Expand Up @@ -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;
}

Expand All @@ -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;
}

Expand All @@ -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;
Expand All @@ -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;
Expand Down Expand Up @@ -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,
Expand All @@ -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;
}

Expand Down Expand Up @@ -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,
Expand All @@ -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,
Expand Down Expand Up @@ -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;
Expand Down
1 change: 1 addition & 0 deletions admin_volt/templates/layouts/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<head>
{% include 'includes/head.html' %}
{% block extrastyle %}{% endblock extrastyle %}
{% block extrahead %}{% endblock extrahead %}
</head>

{% block nav %}
Expand Down