Skip to content

Commit ad81d52

Browse files
author
mominur-helios
committed
fix inline formsets issue and add some icons
1 parent 0dfdbb1 commit ad81d52

File tree

17 files changed

+114
-24
lines changed

17 files changed

+114
-24
lines changed

admin_datta/static/assets/css/forms.css

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@
77
padding: 10px;
88
font-size: 13px;
99
border-bottom: 1px solid #eee;
10+
display: table-row !important;
1011
}
11-
1212
.form-row img, .form-row input {
1313
vertical-align: middle;
1414
}
15+
.form-row .field-title {
16+
padding-left: 0 !important;
17+
}
1518

1619
.form-row label input[type="checkbox"] {
1720
margin-top: 0;
@@ -466,13 +469,13 @@ body.popup .submit-row {
466469
}
467470

468471
.inline-group .tabular th.original {
469-
width: 0px;
470-
padding: 0;
472+
width: 0px !important;
473+
padding: 0 !important;
471474
}
472475

473476
.inline-group .tabular td.original p {
474477
position: absolute;
475-
right: 0;
478+
left: 5px;
476479
/*height: 1.1em;*/
477480
/*padding: 2px 9px;*/
478481
overflow: hidden;
@@ -509,13 +512,13 @@ body.popup .submit-row {
509512
.inline-group ul.tools a.add,
510513
.inline-group div.add-row a,
511514
.inline-group .tabular tr.add-row td a {
512-
background: url(../img/icon-addlink.svg) 0 1px no-repeat;
515+
background: url(../images/icon-addlink.svg) 0 1px no-repeat;
513516
padding-left: 16px;
514517
font-size: 12px;
515518
}
516519

517520
.empty-form {
518-
display: none;
521+
display: none !important;
519522
}
520523

521524
/* RELATED FIELD ADD ONE / LOOKUP */
@@ -531,13 +534,13 @@ body.popup .submit-row {
531534
.add-another {
532535
width: 16px;
533536
height: 16px;
534-
background-image: url(../img/icon-addlink.svg);
537+
background-image: url(../images/icon-addlink.svg);
535538
}
536539

537540
.related-lookup {
538541
width: 16px;
539542
height: 16px;
540-
background-image: url(../img/search.svg);
543+
background-image: url(../images/search.svg);
541544
}
542545

543546
form .related-widget-wrapper ul {

admin_datta/static/assets/css/widgets.css

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -123,15 +123,15 @@
123123
}
124124

125125
.selector-add {
126-
background: url(../img/selector-icons.svg) 0 -96px no-repeat;
126+
background: url(../images/selector-icons.svg) 0 -96px no-repeat;
127127
}
128128

129129
.active.selector-add:focus, .active.selector-add:hover {
130130
background-position: 0 -112px;
131131
}
132132

133133
.selector-remove {
134-
background: url(../img/selector-icons.svg) 0 -64px no-repeat;
134+
background: url(../images/selector-icons.svg) 0 -64px no-repeat;
135135
}
136136

137137
.active.selector-remove:focus, .active.selector-remove:hover {
@@ -166,7 +166,7 @@ a.active.selector-chooseall:hover, a.active.selector-clearall:hover {
166166

167167
a.selector-chooseall {
168168
padding: 0 18px 0 0;
169-
background: url(../img/selector-icons.svg) right -160px no-repeat;
169+
background: url(../images/selector-icons.svg) right -160px no-repeat;
170170
cursor: default;
171171
}
172172

@@ -176,7 +176,7 @@ a.active.selector-chooseall:focus, a.active.selector-chooseall:hover {
176176

177177
a.selector-clearall {
178178
padding: 0 0 0 18px;
179-
background: url(../img/selector-icons.svg) 0 -128px no-repeat;
179+
background: url(../images/selector-icons.svg) 0 -128px no-repeat;
180180
cursor: default;
181181
}
182182

@@ -226,7 +226,7 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover {
226226
}
227227

228228
.stacked .selector-add {
229-
background: url(../img/selector-icons.svg) 0 -32px no-repeat;
229+
background: url(../images/selector-icons.svg) 0 -32px no-repeat;
230230
cursor: default;
231231
}
232232

@@ -236,7 +236,7 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover {
236236
}
237237

238238
.stacked .selector-remove {
239-
background: url(../img/selector-icons.svg) 0 0 no-repeat;
239+
background: url(../images/selector-icons.svg) 0 0 no-repeat;
240240
cursor: default;
241241
}
242242

@@ -246,7 +246,7 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover {
246246
}
247247

248248
.selector .help-icon {
249-
background: url(../img/icon-unknown.svg) 0 0 no-repeat;
249+
background: url(../images/icon-unknown.svg) 0 0 no-repeat;
250250
display: inline-block;
251251
vertical-align: middle;
252252
margin: -2px 0 0 2px;
@@ -255,11 +255,11 @@ a.active.selector-clearall:focus, a.active.selector-clearall:hover {
255255
}
256256

257257
.selector .selector-chosen .help-icon {
258-
background: url(../img/icon-unknown-alt.svg) 0 0 no-repeat;
258+
background: url(../images/icon-unknown-alt.svg) 0 0 no-repeat;
259259
}
260260

261261
.selector .search-label-icon {
262-
background: url(../img/search.svg) 0 0 no-repeat;
262+
background: url(../images/search.svg) 0 0 no-repeat;
263263
display: inline-block;
264264
height: 25px;
265265
width: 25px;
@@ -305,7 +305,7 @@ table p.datetime {
305305
}
306306

307307
.datetimeshortcuts .clock-icon {
308-
background: url(../img/icon-clock.svg) 0 0 no-repeat;
308+
background: url(../images/icon-clock.svg) 0 0 no-repeat;
309309
}
310310

311311
.datetimeshortcuts a:focus .clock-icon,
@@ -314,7 +314,7 @@ table p.datetime {
314314
}
315315

316316
.datetimeshortcuts .date-icon {
317-
background: url(../img/icon-calendar.svg) 0 0 no-repeat;
317+
background: url(../images/icon-calendar.svg) 0 0 no-repeat;
318318
top: -1px;
319319
}
320320

@@ -502,7 +502,7 @@ span.clearable-file-input label {
502502

503503
.calendarnav-previous {
504504
left: 10px;
505-
background: url(../img/calendar-icons.svg) 0 0 no-repeat;
505+
background: url(../images/calendar-icons.svg) 0 0 no-repeat;
506506
}
507507

508508
.calendarbox .calendarnav-previous:focus,
@@ -512,7 +512,7 @@ span.clearable-file-input label {
512512

513513
.calendarnav-next {
514514
right: 10px;
515-
background: url(../img/calendar-icons.svg) 0 -30px no-repeat;
515+
background: url(../images/calendar-icons.svg) 0 -30px no-repeat;
516516
}
517517

518518
.calendarbox .calendarnav-next:focus,
@@ -553,7 +553,7 @@ ul.timelist, .timelist li {
553553
.inline-deletelink {
554554
float: right;
555555
text-indent: -9999px;
556-
background: url(../img/inline-delete.svg) 0 0 no-repeat;
556+
background: url(../images/inline-delete.svg) 0 0 no-repeat;
557557
width: 16px;
558558
height: 16px;
559559
border: 0px none;
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 9 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading
Lines changed: 3 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)