views: explorando plantillas.
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
<h1>Tienda la Ilusión</h1>
|
||||
<h2>Don Confiao</h2>
|
||||
<ul>
|
||||
<li><a href='./comprar'>Comprar</a></li>
|
||||
<li><a href='./compras'>Compras</a></li>
|
||||
</ul>
|
||||
@@ -0,0 +1,9 @@
|
||||
{% if purchases %}
|
||||
<ul>
|
||||
{% for purchase in purchases %}
|
||||
<li><a href="/don_confiao/{{ purchase.id }}/">{{ purchase.date }}, {{ purchase.customer }}</a></li>
|
||||
{% endfor %}
|
||||
</ul>
|
||||
{% else %}
|
||||
<p>No hay Compras</p>
|
||||
{% endif %}
|
||||
Reference in New Issue
Block a user