classes collapse django code example
Example: django bootstrap collapse
<div class="panel panel-default">
<div class="panel-heading" role="tab">
<h4 class="panel-title">
<a role="button" data-toggle="collapse{{network.id}}" {% if parent %}data-parent="#{{parent.id}}"{% endif %} href="#collapse{{network.id}}" aria-expanded="false" aria-controls="collapse{{network.id}}">
<p class="text-left">{{network}}</p>
</a>
</h4>
</div>
<div id="collapse{{network.id}}" class="panel-collapse collapse in" role="tabpanel" aria-labelledby="heading{{network.id}}">
<div class="list-group">
{%if network.children|length %}
{%for ch in network.children %}
{% include "ipmanager/includes/networktreetemplate.html" with parent=network network=ch %}
{%endfor%}
{%endif%}
</div>
</div>
</div>