{% if choices %}<ul class="alphabetfilter">{% for choice in choices %}
<li{% if forloop.first %} class="first"{% endif %}>{% if choice.has_entries %}<a href="{{ choice.link|safe }}">{% else %}<span class="inactive">{% endif %}{% if choice.active %}<span class="selected">{% endif %}{{ choice.title }}{% if choice.active %}</span>{% endif %}{% if choice.has_entries %}</a>{% else %}</span>{% endif %}</li>{% endfor %}
</ul><br class="clear" />{% endif %}
