зеркало из https://github.com/mozilla/CSOL-site.git
asm page is no longer grouping by organization name
This commit is contained in:
Родитель
d220297aae
Коммит
0f5597d5cc
|
@ -7,35 +7,29 @@
|
|||
<p><a href="http://www.afterschoolmatters.org/about">After School Matters®</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}}
|
||||
• <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}}
|
||||
• <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 %}
|
Загрузка…
Ссылка в новой задаче