Created
July 19, 2013 17:57
-
-
Save jAlpedrinha/6041064 to your computer and use it in GitHub Desktop.
Testa isto
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="" method="POST">{% csrf_token %} | |
{{ property_form.management_form }} | |
<table id="id_forms_table" border="0" cellpadding="0" cellspacing="5" class="table"> | |
<thead> | |
<tr> | |
<th scope="col">Disciplinas <a href="javascript:void(0)" class="add-row"><i class="icon-plus"></i></a></th> | |
<th scope="col"> </th> | |
</tr> | |
</thead> | |
<tbody class="table_body"> | |
{% for form in property_formset.forms %} | |
{{form.errors}} | |
<tr id="{{ form.prefix }}-row" class="dynamic-form"> | |
{{ form.id }} | |
<td>{{ form.disciplina }}</td> | |
<td> | |
<a id="remove-{{ form.prefix }}-row" href="javascript:void(0)" class="delete-row"><i class="icon-remove"></i></a> | |
</td> | |
</tr> | |
{% endfor %} | |
</tbody> | |
</table> | |
<div> | |
<input type="submit" value="Save" /> | |
</div> | |
</form> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment