On 2012/07/16 11:28 AM, Alex Strickland wrote:
I am new to Django and a bit lost at sea. I want to use Bootstrap and
their accordion control. I have these models:
Write a request for help, and then you'll work it out pretty soon after:
<div class="accordion" id="group_accordion">
{% for group in group_list %}
<div class="accordion-group">
<div class="accordion-heading">
<a class="accordion-toggle" data-toggle="collapse"
data-parent="#group_accordion" href="#{{ group.name }}">
{{ group.name }}
</a>
</div>
<div id="{{ group.name }}" class="accordion-body collapse {% if
forloop.counter0 == 0 %} in{% endif %}">
<div class="accordion-inner">
{% for user in group.user_set.all %}
<label class="checkbox"> <input type="checkbox"> {{ user.first_name
}} {{ user.last_name }}</label>
{% endfor %}
</div>
</div>
</div>
{% endfor %}
</div>
Thanks and sorry for the noise.
--
Regards
Alex
--
You received this message because you are subscribed to the Google Groups "Django
users" group.
To post to this group, send email to django-users@googlegroups.com.
To unsubscribe from this group, send email to
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at
http://groups.google.com/group/django-users?hl=en.