view: add product_list.

This commit is contained in:
2024-07-27 14:58:16 -05:00
parent 9409eeb94a
commit c6ca0feb11
3 changed files with 26 additions and 0 deletions

View File

@@ -0,0 +1,13 @@
<form action="" method="get">
<label>Filtro por nombre:</label>
<input type="text" name="name" value="{{ request.GET.name }}">
<button type="submit">Filtrar</button>
</form>
{% block content %}
<h1>Lista de productos</h1>
<ul>
{% for obj in object_list %}
<li>{{ obj.name }} ({{ obj.id }})</li>
{% endfor %}
</ul>
{% endblock %}