{% extends "locations/base.html" %}
{% load pagination_tags %}
{% load locations_tags %}
{% load search_tags %}
{% load base_tags %}
{% load i18n %}

{% block title %}{{ block.super }} {% trans 'List' %}{% endblock %}

{% block extra_head %}
{{ block.super }}
<link rel="stylesheet" href="{{ STATIC_URL }}css/locations.css">
{% endblock %}

{% block body %}
<div class="t">

    {% location_nav request.user %}

    <h1>{% firstof MODULE_LOCATIONS_LABEL_PLURAL 'Locations' %} {% trans "List" %}</h1>
    
    {% autopaginate locations 10 %}
    {% location_search %}
    <span><em>{{ paginator.count }} {% firstof MODULE_LOCATIONS_LABEL_PLURAL 'Locations' %} {% trans "Found" %}</em></span>
    
    <div class="locations-wrap">
    {% for location in locations %}
        {% search_result location %}
    {% empty %}

    {% endfor %}
    </div>

    {% paginate %}
</div>
{% endblock %}
