Skip to content

Commit

Permalink
Merge pull request #1 from errno/master
Browse files Browse the repository at this point in the history
Fix for usable interface elements markup
  • Loading branch information
yakudzam committed Sep 11, 2012
2 parents 27084ee + 8566afd commit 2446dee
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 12 deletions.
14 changes: 11 additions & 3 deletions pagination/templates/pagination/perpageanchors.html
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>&nbsp;
{% 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>
19 changes: 10 additions & 9 deletions pagination/templates/pagination/perpageselect.html
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>

0 comments on commit 2446dee

Please sign in to comment.