|  | 
| 7 | 7 |             keydown.esc->search#clear:prevent | 
| 8 | 8 |             keydown.up->search#up:prevent | 
| 9 | 9 |             keydown.down->search#down:prevent" | 
| 10 |  | -        class=" | 
| 11 |  | -        {# Z-index here helps prevent autocomplete overlapping on the accordion on the homepage #} | 
| 12 |  | -        qf-relative qf-z-10 | 
| 13 |  | -        qf-rounded-3xl qf-overflow-hidden | 
| 14 |  | -        group-data-[home]:qf-rounded-[2rem] | 
| 15 |  | -        max-md:qf-rounded-[2rem] | 
| 16 |  | -        qf-border-solid qf-border-[3px] qf-border-green-menthe-sun-373-moon-652-hover qf-bg-white | 
| 17 |  | -        qf-flex qf-flex-col" | 
|  | 10 | +            {% comment %} Z-index here helps prevent autocomplete overlapping on the accordion on the homepage {% endcomment %} | 
|  | 11 | +        class="qf-relative qf-z-10 qf-overflow-hidden" | 
| 18 | 12 |     > | 
| 19 | 13 |         <form | 
| 20 | 14 |             data-search-target="form" | 
| 21 | 15 |             data-turbo-frame="{{ id }}:search-results" | 
| 22 | 16 |             action="{% url 'qfdmd:search' %}" | 
| 23 |  | -            class="qf-pl-4w {# should match the svg icon width #} | 
| 24 |  | -            qf-flex qf-flex-row-reverse qf-relative | 
| 25 |  | -            md:group-data-[home]:qf-h-7w | 
| 26 |  | -            qf-h-5w | 
| 27 |  | -            qf-content-center | 
| 28 |  | -            " | 
|  | 17 | +            class="qf-p-1w {# Padding is required to prevent focus is well displayed #}" | 
| 29 | 18 |         > | 
| 30 | 19 |             {% for field in search_form %} | 
| 31 | 20 |                 {{ field }} | 
| 32 | 21 |             {% endfor %} | 
| 33 |  | -            <button | 
| 34 |  | -                type="submit" | 
| 35 |  | -                class="qf-absolute qf-top-0 qf-bottom-0 qf-left-0 | 
| 36 |  | -                qf-m-auto qf-pl-1v | 
| 37 |  | -                fr-btn fr-icon-search-line fr-btn--tertiary-no-outline | 
| 38 |  | -                focus:qf-bg-green-menthe-sun-373-moon-652-hover | 
| 39 |  | -                focus:qf-ring focus:qf-ring-inset focus:qf-ring-blue-france-sun-113-625-hover | 
| 40 |  | -                qf-rounded-l-full | 
| 41 |  | -                focus:qf-text-white | 
| 42 |  | -                focus:!qf-outline-none | 
| 43 |  | -                qf-h-full | 
| 44 |  | -                !qf-max-h-[none] | 
| 45 |  | -                qf-text-green-menthe-sun-373-moon-652-hover" | 
| 46 |  | -            ><span class="qf-sr-only">Rechercher</span></button> | 
|  | 22 | +            <turbo-frame | 
|  | 23 | +                id="{{ id }}:search-results" | 
|  | 24 | +                data-search-target="results" | 
|  | 25 | +                class=" qf-flex qf-flex-col" | 
|  | 26 | +            > | 
|  | 27 | +                {% if search_form.results %} | 
|  | 28 | +                    <div class="qf-flex qf-flex-col qf-border-x qf-border-y-0 qf-border-solid qf-border-grey-1000-50-hover qf-bg-white"> | 
|  | 29 | +                        {% for result in search_form.results %} | 
|  | 30 | +                            {% if beta %} | 
|  | 31 | +                                {% include "./_search_result_beta.html" %} | 
|  | 32 | +                            {% else %} | 
|  | 33 | +                                {% include "./_search_result.html" %} | 
|  | 34 | +                            {% endif %} | 
|  | 35 | +                        {% endfor %} | 
|  | 36 | +                    </div> | 
|  | 37 | +                {% endif %} | 
|  | 38 | +            </turbo-frame> | 
| 47 | 39 |         </form> | 
| 48 |  | - | 
| 49 |  | -        <turbo-frame | 
| 50 |  | -            id="{{ id }}:search-results" | 
| 51 |  | -            data-search-target="results" | 
| 52 |  | -            class="qf-flex qf-flex-col" | 
| 53 |  | -        > | 
| 54 |  | -            {% if search_form.results %} | 
| 55 |  | -                {% for result in search_form.results %} | 
| 56 |  | -                    {% if beta %} | 
| 57 |  | -                        {% include "./_search_result_beta.html" %} | 
| 58 |  | -                    {% else %} | 
| 59 |  | -                        {% include "./_search_result.html" %} | 
| 60 |  | -                    {% endif %} | 
| 61 |  | -                {% endfor %} | 
| 62 |  | -            {% endif %} | 
| 63 |  | -        </turbo-frame> | 
| 64 | 40 |     </div> | 
| 65 | 41 | </turbo-frame> | 
| 66 | 42 | {% endwith %} | 
0 commit comments