Sorgente del template website/coristi_list.html

{% extends "base1col.html" %}
{% load thumbnail %}

{% block breadcrumb %}{% endblock breadcrumb %}


{% block content %}
<div class="span12">
    
<h2>Il Coro</h2>

    {% regroup object_list by categoria as category_list %}

        {% for cat in category_list %}
            {% ifequal cat.grouper 'soprani'  %}
                <h3 id="id-{{cat.grouper}}">{{ cat.grouper|capfirst }}</h3>
                    {% include "website/coristi_snippet.html" %}
            {% endifequal %}
          {% endfor %}
            
            {% for cat in category_list %}
                {% ifequal cat.grouper 'contralti'  %}
                    <h3 id="id-{{cat.grouper}}">{{ cat.grouper|capfirst }}</h3>
                        {% include "website/coristi_snippet.html" %}
                {% endifequal %}
            {% endfor %}
            
            {% for cat in category_list %}
                {% ifequal cat.grouper 'tenori'  %}
                    <h3 id="id-{{cat.grouper}}">{{ cat.grouper|capfirst }}</h3>
                        {% include "website/coristi_snippet.html" %}
                {% endifequal %}
            {% endfor %}
            
            {% for cat in category_list %}
                {% ifequal cat.grouper 'bassi'  %}
                    <h3 id="id-{{cat.grouper}}">{{ cat.grouper|capfirst }}</h3>
                        {% include "website/coristi_snippet.html" %}
                {% endifequal %}
            {% endfor %}
</div>


{% endblock content %}