view: add product_list.
This commit is contained in:
@@ -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 %}
|
||||
Reference in New Issue
Block a user