#1 by UnluG
Hello!
I am trying to add lables on both sides of a table. Can I have two sets of form fields? What other solution do I have?
Pasting code and screenshot here:
init.py
class FinalQuest(Page):
form_model = 'player'
form_fields = ['Cooperative','Agree',....]
HTML
<table class ="table table-striped">
<tr>
<th></th>
<th></th>
<th></th>
<th></th>
<th>Very</th>
<th>Slightly</th>
<th>Neither/Nor</th>
<th>Slightly</th>
<th>Very</th>
<th></th>
<th></th>
<th></th>
<th></th>
</tr>
</table>
</tr>
</table>
<table class="table">
{{ for field in form }}
<tr>
<th>{{ field.label }}</th>
<td>{{ for choice in field }}</td>
<td>{{ choice }}</td>
<td> {{ endfor }}</td>
<th>dfvfdv</th>
</tr>
{{ endfor }}
</table>