asm page is no longer grouping by organization name

This commit is contained in:
Joe Curlee 2013-07-16 08:40:33 -05:00
Родитель d220297aae
Коммит 0f5597d5cc
1 изменённых файлов: 23 добавлений и 29 удалений

Просмотреть файл

@ -7,35 +7,29 @@
<p><a href="http://www.afterschoolmatters.org/about">After School Matters&reg;</a> is a non-profit organization that offers Chicago high school teens innovative out-of-school activities through Science, Sports, Tech, Words and nationally recognized Gallery programs.</p>
<p>Check out the variety of programs offered by After School Matters as part of the Chicago Summer of Learning below. You can contact 312-742-4182 to learn more and enroll in programs that excite you.</p>
</div>
{% for grouper, list in orgs|groupby('organization_name') %}
<h3>{{grouper}} {{list|length}}</h3>
<hr>
<ul class="orgs unstyled">
{% set rowloop = loop %}
{% for org in list %}
{% if org.region != 'Cancelled' %}
<li>
<h4>
<a data-toggle="collapse" data-target="#collapse-{{rowloop.index}}-{{loop.index}}">{{org.program_name}}</a>
<small>
{{org.start}} - {{org.end}}
&bull; <abbr title="Scienece Technology Engineering Art Math">STEAM</abbr>: {{org.steam}}
</small>
</h4>
<div id="collapse-{{rowloop.index}}-{{loop.index}}" class="collapse">
<p>
{{org.program_description}}
</p>
<div class="meta">
<p><strong>Region:</strong> {{org.region}}</p>
<p><strong>Specialist:</strong> {{org.program_specialist}}</p>
</div>
<ul class="orgs unstyled">
{% for org in orgs %}
{% if org.region != 'Cancelled' %}
<li>
<h4>
<a data-toggle="collapse" data-target="#collapse-{{rowloop.index}}-{{loop.index}}">{{org.program_name}}</a>
<small>
{{org.start}} - {{org.end}}
&bull; <abbr title="Scienece Technology Engineering Art Math">STEAM</abbr>: {{org.steam}}
</small>
</h4>
<div id="collapse-{{rowloop.index}}-{{loop.index}}" class="collapse">
<p>
{{org.program_description}}
</p>
<div class="meta">
<p><strong>Region:</strong> {{org.region}}</p>
<p><strong>Specialist:</strong> {{org.program_specialist}}</p>
<p><strong>Organization:</strong> {{org.organization_name}}</p>
</div>
</li>
{% endif %}
{% endfor %}
</ul>
{% endfor %}
</div>
</li>
{% endif %}
{% endfor %}
</ul>
{% endblock %}