Geoffrey-Django/templates/GeoffreyApp/shop_list.html

19 lines
437 B
HTML

{% extends "GeoffreyApp/base.html" %}
{% block content %}
<h1>Shops</h1>
{% if shop_list %}
<ul>
{% for shop in shop_list %}
<li>
{{ shop.name }} {{ shop.owner }} {{ shop.x_coord }} {{ shop.z_coord }}
</li>
{% endfor %}
</ul>
{% else %}
<p>There are no shops in the database :pepethonk:</p>
{% endif %}
{% endblock %}