mirror of
https://gitlab.com/allianceauth/allianceauth.git
synced 2026-02-15 11:36:23 +01:00
[CHANGE] Update serverside datatables docs
This commit is contained in:
@@ -115,7 +115,7 @@ class DataTablesView(View):
|
||||
_type = str(c["columnControl"]["search"]["type"])
|
||||
if _type == "text":
|
||||
if _logic == "notEmpty":
|
||||
except_qs |= Q(**{f'{_c}': ""})
|
||||
except_qs |= Q(**{f'{_c}': ""})
|
||||
elif len(_sv) > 0:
|
||||
if _logic == "notContains":
|
||||
except_qs |= Q(**{f'{_c}__icontains': _sv})
|
||||
@@ -123,7 +123,7 @@ class DataTablesView(View):
|
||||
except_qs |= Q(**{f'{_c}': _sv})
|
||||
elif _type == "num":
|
||||
if _logic == "notEmpty":
|
||||
except_qs |= Q(**{f'{_c}__isnull': False})
|
||||
except_qs |= Q(**{f'{_c}__isnull': False})
|
||||
elif len(_sv) > 0:
|
||||
if _logic == "notEqual":
|
||||
try:
|
||||
|
||||
@@ -179,3 +179,34 @@
|
||||
border-left-color: var(--bs-warning);
|
||||
}
|
||||
}
|
||||
|
||||
/* DataTables 2
|
||||
------------------------------------------------------------------------------------- */
|
||||
@media all {
|
||||
/* DataTables Processing Indicator
|
||||
--------------------------------------------------------------------------------- */
|
||||
div.dt-processing {
|
||||
padding-top: 0.5rem !important;
|
||||
}
|
||||
|
||||
div.dt-processing > div {
|
||||
display: none;
|
||||
}
|
||||
|
||||
svg.aa-datatables-process-indicator {
|
||||
width: 2rem;
|
||||
height: 2rem;
|
||||
}
|
||||
|
||||
/* DataTables Extension: ColumnControl
|
||||
--------------------------------------------------------------------------------- */
|
||||
table.dataTable span.dtcc div.dtcc-search > div select {
|
||||
background-color: var(--bs-body-bg);
|
||||
color: var(--bs-body-color);
|
||||
padding: 0.375rem;
|
||||
}
|
||||
|
||||
table.dataTable .dt-column-header div.dtcc-search-title {
|
||||
display: none;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{% load i18n %}
|
||||
|
||||
<svg class="aa-datatables-process-indicator">
|
||||
<use href="#aa-loading-spinner"></use>
|
||||
</svg>
|
||||
|
||||
<p class="my-1">
|
||||
{% translate "Loading …" %}
|
||||
</p>
|
||||
Reference in New Issue
Block a user