Autosave: 20260201-044711

This commit is contained in:
Flatlogic Bot 2026-02-01 04:47:12 +00:00
parent 1fdd01e827
commit e20e167414
2 changed files with 25 additions and 6 deletions

View File

@ -1,18 +1,34 @@
{% load i18n static %}
{% if cl.search_fields %}
{% load i18n static jazzmin admin_list %}
{% get_jazzmin_ui_tweaks as jazzmin_ui %}
<div id="toolbar" class="clearfix mb-3">
<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;">
<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' %}
</button>
</div>
</div>
{% endif %}
{# Keep hidden fields for other params to preserve filter state #}
{% for pair in cl.params.items %}
{% if pair.0 != search_var %}<input type="hidden" name="{{ pair.0 }}" value="{{ pair.1 }}"/>{% endif %}
{% endfor %}
</form>
</div>
{% endif %}

3
find_jazzmin.py Normal file
View File

@ -0,0 +1,3 @@
import jazzmin
import os
print(os.path.dirname(jazzmin.__file__))