mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Added very basic livesearch feauture using algolia autocomplete
This commit is contained in:
parent
c7fac06b65
commit
60942c8254
4 changed files with 149 additions and 0 deletions
|
@ -4,6 +4,12 @@
|
|||
|
||||
{% block content %}
|
||||
|
||||
|
||||
<div id="tessdgjds" {{ stimulus_controller('elements/part_livesearch') }} class="mb-2"
|
||||
data-autocomplete="{{ path('typeahead_parts', {'query': '__QUERY__'}) }}" data-detail-url="{{ path('part_info', {'id': '__ID__'}) }}">
|
||||
</div>
|
||||
|
||||
|
||||
{% if is_granted('@system.show_updates') %}
|
||||
{{ nv.new_version_alert(new_version_available, new_version, new_version_url) }}
|
||||
{% endif %}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue