Geoffrey-Django/templates/GeoffreyApp/shop_list.html

18 lines
436 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 %}