Upgrade odevzdavatka #30
2 changed files with 7 additions and 7 deletions
|
@ -1264,13 +1264,13 @@ label[for=id_skola] {
|
||||||
|
|
||||||
/* Select2 používaný hlavně multiple selectem. Přidání checkboxů a změna barvy. */
|
/* Select2 používaný hlavně multiple selectem. Přidání checkboxů a změna barvy. */
|
||||||
/* Podle https://stackoverflow.com/a/48290544 */
|
/* Podle https://stackoverflow.com/a/48290544 */
|
||||||
/* U autocomplete.ModelSelect2Multiple vyžaduje 'data-dropdown-css-class': 'select2multiple' */
|
/* U autocomplete.ModelSelect2Multiple vyžaduje 'data-dropdown-css-class': 's2m-se-zaskrtavatky' */
|
||||||
.select2multiple .select2-results__option[aria-selected=true]:before {
|
.s2m-se-zaskrtavatky .select2-results__option[aria-selected=true]:before {
|
||||||
content: '☑ ';
|
content: '☑ ';
|
||||||
padding: 0 0 0 8px;
|
padding: 0 0 0 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.select2multiple .select2-results__option[aria-selected=false]:before {
|
.s2m-se-zaskrtavatky .select2-results__option[aria-selected=false]:before {
|
||||||
content: '◻ ';
|
content: '◻ ';
|
||||||
padding: 0 0 0 8px;
|
padding: 0 0 0 8px;
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,7 +30,7 @@ class PosliReseniForm(forms.Form):
|
||||||
'data-placeholder--id': '-1',
|
'data-placeholder--id': '-1',
|
||||||
'data-placeholder--text': '---',
|
'data-placeholder--text': '---',
|
||||||
'data-close-on-select': 'false',
|
'data-close-on-select': 'false',
|
||||||
'data-dropdown-css-class': 'select2multiple',
|
'data-dropdown-css-class': 's2m-se-zaskrtavatky',
|
||||||
'data-allow-clear': 'true'
|
'data-allow-clear': 'true'
|
||||||
},
|
},
|
||||||
),
|
),
|
||||||
|
@ -46,7 +46,7 @@ class PosliReseniForm(forms.Form):
|
||||||
attrs = {'data-placeholder--id': '-1',
|
attrs = {'data-placeholder--id': '-1',
|
||||||
'data-placeholder--text' : '---',
|
'data-placeholder--text' : '---',
|
||||||
'data-close-on-select': 'false',
|
'data-close-on-select': 'false',
|
||||||
'data-dropdown-css-class': 'select2multiple',
|
'data-dropdown-css-class': 's2m-se-zaskrtavatky',
|
||||||
'data-allow-clear': 'true'})
|
'data-allow-clear': 'true'})
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -79,7 +79,7 @@ class NahrajReseniForm(forms.ModelForm):
|
||||||
attrs = {'data-placeholder--id': '-1',
|
attrs = {'data-placeholder--id': '-1',
|
||||||
'data-placeholder--text' : '---',
|
'data-placeholder--text' : '---',
|
||||||
'data-close-on-select': 'false',
|
'data-close-on-select': 'false',
|
||||||
'data-dropdown-css-class': 'select2multiple',
|
'data-dropdown-css-class': 's2m-se-zaskrtavatky',
|
||||||
'data-allow-clear': 'true'},
|
'data-allow-clear': 'true'},
|
||||||
forward=["nadproblem_id"],
|
forward=["nadproblem_id"],
|
||||||
),
|
),
|
||||||
|
@ -89,7 +89,7 @@ class NahrajReseniForm(forms.ModelForm):
|
||||||
attrs = {'data-placeholder--id': '-1',
|
attrs = {'data-placeholder--id': '-1',
|
||||||
'data-placeholder--text' : '---',
|
'data-placeholder--text' : '---',
|
||||||
'data-close-on-select': 'false',
|
'data-close-on-select': 'false',
|
||||||
'data-dropdown-css-class': 'select2multiple',
|
'data-dropdown-css-class': 's2m-se-zaskrtavatky',
|
||||||
'data-allow-clear': 'true'},
|
'data-allow-clear': 'true'},
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue