mirror of
https://github.com/pretix/pretix.git
synced 2026-05-06 15:24:02 +00:00
Quota item selection: Strike disabled items in select2
This commit is contained in:
@@ -674,6 +674,7 @@ def itemvar_select2(request, **kwargs):
|
||||
{
|
||||
'id': k,
|
||||
'text': str(v),
|
||||
'inactive': d,
|
||||
}
|
||||
for k, v, d in choices
|
||||
],
|
||||
@@ -715,6 +716,7 @@ def itemvars_select2(request, **kwargs):
|
||||
{
|
||||
'id': k,
|
||||
'text': str(v),
|
||||
'inactive': d,
|
||||
}
|
||||
for k, v, d in choices
|
||||
],
|
||||
|
||||
@@ -904,6 +904,7 @@ details {
|
||||
}
|
||||
}
|
||||
|
||||
.select2-container [aria-multiselectable] .select2-results__option span strike::before,
|
||||
.select2-container [aria-multiselectable] .select2-results__option span span::before {
|
||||
content: "";
|
||||
font-family: FontAwesome;
|
||||
@@ -912,6 +913,7 @@ details {
|
||||
width: 1.28571em;
|
||||
text-align: center;
|
||||
}
|
||||
.select2-container [aria-multiselectable] .select2-results__option[aria-selected=true] span strike::before,
|
||||
.select2-container [aria-multiselectable] .select2-results__option[aria-selected=true] span span::before {
|
||||
content: ""
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user