You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
747 B
32 lines
747 B
{% extends "main.html" %}
|
|
|
|
{% block title %} Items {% endblock %}
|
|
|
|
{% block content %}
|
|
|
|
<p>
|
|
<input id="search" type="search" name="q"
|
|
placeholder="Search"
|
|
aria-label="Search"
|
|
value='{{ query.search.as_deref().unwrap_or("") }}'
|
|
hx-get="/items"
|
|
hx-trigger="search, keyup delay:500ms changed"
|
|
hx-target="#items"
|
|
hx-push-url="true"
|
|
/>
|
|
</p>
|
|
|
|
<div id="items" class="container">
|
|
{% include "catalog_item_fragment.html" %}
|
|
</div>
|
|
|
|
<form action="/catalog" method="post" enctype="multipart/form-data">
|
|
<label>
|
|
Upload file:
|
|
<input type="file" name="file" multiple>
|
|
</label>
|
|
|
|
<input type="submit" value="Upload files">
|
|
</form>
|
|
|
|
{% endblock %} |