Autosave: 20260201-044711
This commit is contained in:
parent
1fdd01e827
commit
e20e167414
@ -1,18 +1,34 @@
|
|||||||
{% load i18n static %}
|
{% load i18n static jazzmin admin_list %}
|
||||||
{% if cl.search_fields %}
|
{% get_jazzmin_ui_tweaks as jazzmin_ui %}
|
||||||
|
|
||||||
<div id="toolbar" class="clearfix mb-3">
|
<div id="toolbar" class="clearfix mb-3">
|
||||||
<form id="changelist-search" method="get" class="form-inline">
|
<form id="changelist-search" method="get" class="form-inline">
|
||||||
<div class="input-group" style="width: 100%; max-width: 300px; display: flex; flex-wrap: nowrap;">
|
|
||||||
|
{# --- RESTORED FILTERS (Sorting Panel) --- #}
|
||||||
|
{% if cl.has_filters %}
|
||||||
|
<div class="mr-2 mb-2" style="display: flex; flex-wrap: wrap; gap: 5px;">
|
||||||
|
{% for spec in cl.filter_specs %}
|
||||||
|
{% jazzmin_list_filter cl spec %}
|
||||||
|
{% endfor %}
|
||||||
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
{# ---------------------------------------- #}
|
||||||
|
|
||||||
|
{% if cl.search_fields %}
|
||||||
|
<div class="input-group mb-2" style="width: auto; max-width: 300px; display: flex; flex-wrap: nowrap;">
|
||||||
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" class="form-control" placeholder="{% trans 'Search' %}" autofocus style="border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1;">
|
<input type="text" size="40" name="{{ search_var }}" value="{{ cl.query }}" id="searchbar" class="form-control" placeholder="{% trans 'Search' %}" autofocus style="border-top-right-radius: 0; border-bottom-right-radius: 0; flex: 1;">
|
||||||
<div class="input-group-append">
|
<div class="input-group-append">
|
||||||
<button type="submit" class="btn btn-primary" style="border-top-left-radius: 0; border-bottom-left-radius: 0;">
|
<button type="submit" class="btn {{ jazzmin_ui.button_classes.primary|default:'btn-primary' }}" style="border-top-left-radius: 0; border-bottom-left-radius: 0;">
|
||||||
<i class="fas fa-search"></i> {% trans 'Search' %}
|
<i class="fas fa-search"></i> {% trans 'Search' %}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
|
{# Keep hidden fields for other params to preserve filter state #}
|
||||||
{% for pair in cl.params.items %}
|
{% for pair in cl.params.items %}
|
||||||
{% if pair.0 != search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endif %}
|
{% if pair.0 != search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
|
||||||
3
find_jazzmin.py
Normal file
3
find_jazzmin.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
import jazzmin
|
||||||
|
import os
|
||||||
|
print(os.path.dirname(jazzmin.__file__))
|
||||||
Loading…
x
Reference in New Issue
Block a user