Clear up issues with the Search page.

This commit is contained in:
2013-04-01 17:49:40 +01:00
parent ca144b8254
commit de3cf843e7

View File

@@ -2,7 +2,7 @@
{% load staticfiles %} {% load staticfiles %}
{% block title %} {% block title %}
Stores Search
{% endblock %} {% endblock %}
{% block style %} {% block style %}
@@ -29,19 +29,11 @@
{% block content %} {% block content %}
<div class="page-header"> <div class="page-header">
<h1>Stores</h1> <h1>Store Search Results</h1>
</div> </div>
<div class="row-fluid"> <div class="row-fluid">
<div class="span7"> <div class="span7">
<form method="get">
<input type="text" name="location" class="search-query" placeholder="Location" value="{{ location }}">
<select name="distance">
<option value="10">10km</option>
<option value="30">20km</option>
<option value="30">30km</option>
</select>
</form>
{% if object_list.count %} {% if object_list.count %}
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@@ -52,14 +44,14 @@
<tr> <tr>
<td><a href="{% url "store-detail" store.object.slug %}">{{ store.object }}</a></td> <td><a href="{% url "store-detail" store.object.slug %}">{{ store.object }}</a></td>
<td>{{ store.object.address.city }}</td> <td>{{ store.object.address.city }}</td>
<td>{{ store.distance }}</td> <td>{{ store.distance.km|floatformat:2 }} km</td>
</tr> </tr>
{% endfor %} {% endfor %}
</tbody> </tbody>
</table> </table>
{% include "stores/paginator.html" %} {% include "stores/paginator.html" %}
{% else %} {% else %}
<p>No results found.</p> <p>No stores found.</p>
{% endif %} {% endif %}
</div> </div>
<div class="span5"> <div class="span5">