12345678910111213141516171819202122232425262728293031323334353637 |
- {% extends "base.html" %}
- {% block content %}
- <td align="center" valign="top" bgcolor="white" width="440">
- <table width="444" border="0" cellspacing="8" cellpadding="0">
- <tr><td span=3><ul>
- {% for town in towns %}
- <li style="display:inline; list-style:none;"><a href="{% url di-phonebook-town town.slug %}" >{{town.name}}</a></li>
- {% endfor %}
- </ul> </td></tr>
- <tr><th>Entry</th><th>Town</th><th>Number</th></tr>
- {% for entry in entries.object_list %}
- <tr>
- <td>{{entry.entry}}</td><td>{{entry.town.name}}</td><td>{{entry.phone}}</td>
- </tr>
- {% endfor %}
- </table>
- <div class="pagination">
- <span class="step-links">
- {% if entries.has_previous %}
- <a href="?page={{ entries.previous_page_number }}">previous</a>
- {% endif %}
- <span class="current">
- Page {{ entries.number }} of {{ entries.paginator.num_pages }}.
- </span>
- {% if entries.has_next %}
- <a href="?page={{ entries.next_page_number }}">next</a>
- {% endif %}
- </span>
- </div>
-
- <p><a href="{% url di-index %}">Back to directory</a></p>
- </td>
- </tr>
- {% endblock %}
|