We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
For 04_htmx branch:
04_htmx
When selecting the "search" element (<input>), the html response that gets rendered in the "#search-results" div is empty (nothing found).
<input>
Instead, the element should populate with all artists by default. Once the search is started (on keypress), it filters down appropriately.
Right now, the search.html template has this block:
search.html
{% block content %} <section id="body" class="flex flex-col bg-slate-50 justify-center items-center max-w-screen-lg m-auto"> <div class="flex flex-col justify-center items-center py-10 min-w-full"> <h2 class="text-2xl leading-relaxed text-slate-800 uppercase">Search Results</h2> <div id="search-results" class="flex flex-row flex-wrap justify-center content-center text-center w-full"> {% if search|list %} {% for result in results %} <p>{{result["name"]}}</p> {% endfor %} {% else %} <p>No results found.</p> {% endif %} </div> </div> </section> {% endblock %}
Maybe adding a default for all results in the {% else %} statement?
{% else %}
The text was updated successfully, but these errors were encountered:
No branches or pull requests
For
04_htmx
branch:When selecting the "search" element (
<input>
), the html response that gets rendered in the "#search-results" div is empty (nothing found).Instead, the element should populate with all artists by default. Once the search is started (on keypress), it filters down appropriately.
Right now, the
search.html
template has this block:Maybe adding a default for all results in the
{% else %}
statement?The text was updated successfully, but these errors were encountered: