I have a list of forms, all of the same type, where I would like to list each form side by side with the fields listed vertically. The root of the problem is that I need to use a template variable as an index on another template variable. Something like this.
<table> {% for field in forms.0 %} <tr> <td>{{ field.label }}:</td> {% for form in forms %} <td>{{ form.field.{{ forloop.parentloop.counter0 }} }}</td> {% endfor %} </tr> {% endfor %} <table> The outer loop if looping over form.0 to create a row for each set of fields and the labels. The inner loop is providing the list of fields for each row. Does anybody see a way to do something like this? Thanks! Andy --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---