forked from ericflo/django-pagination
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1 from errno/master
Fix for usable interface elements markup
- Loading branch information
Showing
2 changed files
with
21 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,12 @@ | ||
{% load i18n %} | ||
{% for choice in choices %} | ||
<a href="?perpage={{choice}}" {% if perpage = choice %}class="perpage"{% endif %}>{% if choice == 0 %}{% trans "All" %}{% else %}{{choice}}{% endif %}</a> | ||
{% endfor %} | ||
<div class="perpageanchors"> | ||
{% for choice in choices %} | ||
<span> | ||
{% if perpage == choice %} | ||
{% if choice == 0 %}{% trans "All" %}{% else %}{{choice}}{% endif %} | ||
{% else %} | ||
<a href="?perpage={{choice}}">{% if choice == 0 %}{% trans "All" %}{% else %}{{choice}}{% endif %}</a> | ||
{% endif %} | ||
</span> | ||
{% endfor %} | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,11 @@ | ||
{% load i18n %} | ||
<form action="." method="GET" name="perpage" > | ||
<select name="perpage"> | ||
{% for choice in choices %} | ||
<option value="{{choice}}" {% if perpage = choice %} selected="selected" {% endif %}> | ||
{% if choice == 0 %}{% trans "All" %}{% else %}{{choice}}{% endif %}</option> | ||
{% endfor %} | ||
</select> | ||
<input type="submit" value="{% trans 'Select' %}" /> | ||
</form> | ||
<div class="perpageselect"> | ||
<form action="." method="GET" name="perpage" > | ||
<select name="perpage"> | ||
{% for choice in choices %} | ||
<option value="{{choice}}" {% if perpage = choice %} selected="selected" {% endif %}>{% if choice == 0 %}{% trans "All" %}{% else %}{{choice}}{% endif %}</option> | ||
{% endfor %} | ||
</select> | ||
<input type="submit" value="{% trans 'Select' %}" /> | ||
</form> | ||
</div> |