Geoffrey-Django/templates/GeoffreyApp/shop_list.html

25 lines
743 B
HTML

{% extends "GeoffreyApp/base.html" %}
{% block content %}
<h1>Shops</h1>
<form id="searchform" action="{% url 'GeoffreyShops' %}" method="get" accept-charset="utf-8">
<button class="searchbutton" type="submit">
<i class="fa fa-search">Go</i>
</button>
<input class="searchfield" id="searchbox" name="q" type="text" placeholder="Search">
</form>
{% 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 %}