mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 09:35:49 +02:00
Added an accordion item to search results list, which shows the used search results
This commit is contained in:
parent
e96db21ceb
commit
b3956c7c4d
2 changed files with 81 additions and 2 deletions
|
@ -6,7 +6,74 @@
|
||||||
|
|
||||||
{% block content %}
|
{% block content %}
|
||||||
|
|
||||||
<div class="accordion mb-3">
|
<div class="accordion mb-3" id="listAccordion">
|
||||||
|
<div class="accordion-item">
|
||||||
|
<div class="accordion-header">
|
||||||
|
<button class="accordion-button collapsed py-2" data-bs-toggle="collapse" data-bs-target="#searchInfo">
|
||||||
|
<i class="fa-solid fa-magnifying-glass fa-fw"></i>
|
||||||
|
{% trans %}parts_list.search.title{% endtrans %}: <b>{{ keyword }}</b>
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
<div id="searchInfo" class="accordion-collapse collapse" data-bs-parent="#listAccordion">
|
||||||
|
<div class="accordion-body">
|
||||||
|
<h4>{% trans with {"%keyword%": keyword} %}parts_list.search.searching_for{% endtrans %}</h4>
|
||||||
|
{% trans %}parts_list.search_options.caption{% endtrans %}:
|
||||||
|
|
||||||
|
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.name %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}name.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.category %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}category.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.description %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}description.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.mpn %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}part.edit.mpn{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.tags %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}tags.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.storelocation %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}storelocation.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.comment %}checked{% endif %}>
|
||||||
|
<label class="form-check-label justify-content-start">{% trans %}comment.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.ordernr %}checked{% endif %}>
|
||||||
|
<label for="search_supplierpartnr" class="form-check-label justify-content-start">{% trans %}ordernumber.label.short{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.supplier %}checked{% endif %}>
|
||||||
|
<label for="search_supplier" class="form-check-label justify-content-start">{% trans %}supplier.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.manufacturer %}checked{% endif %}>
|
||||||
|
<label for="search_manufacturer" class="form-check-label justify-content-start">{% trans %}manufacturer.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.footprint %}checked{% endif %}>
|
||||||
|
<label for="search_footprint" class="form-check-label justify-content-start">{% trans %}footprint.label{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
<hr>
|
||||||
|
<div class="form-check">
|
||||||
|
<input type="checkbox" class="form-check-input" disabled {% if searchFilter.regex %}checked{% endif %}>
|
||||||
|
<label for="regex" class="form-check-label justify-content-start">{% trans %}search.regexmatching{% endtrans %}</label>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
|
||||||
{% include "Parts/lists/_filter.html.twig" %}
|
{% include "Parts/lists/_filter.html.twig" %}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -9681,5 +9681,17 @@ Element 3</target>
|
||||||
<target>Lot description</target>
|
<target>Lot description</target>
|
||||||
</segment>
|
</segment>
|
||||||
</unit>
|
</unit>
|
||||||
|
<unit id="W1rWF5g" name="parts_list.search.searching_for">
|
||||||
|
<segment>
|
||||||
|
<source>parts_list.search.searching_for</source>
|
||||||
|
<target><![CDATA[Searching parts with keyword <b>%keyword%</b>]]></target>
|
||||||
|
</segment>
|
||||||
|
</unit>
|
||||||
|
<unit id="lkQ2zTi" name="parts_list.search_options.caption">
|
||||||
|
<segment>
|
||||||
|
<source>parts_list.search_options.caption</source>
|
||||||
|
<target>Enabled search options</target>
|
||||||
|
</segment>
|
||||||
|
</unit>
|
||||||
</file>
|
</file>
|
||||||
</xliff>
|
</xliff>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue