Skip to content

Instantly share code, notes, and snippets.

@jAlpedrinha
Created July 19, 2013 17:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jAlpedrinha/6041064 to your computer and use it in GitHub Desktop.
Save jAlpedrinha/6041064 to your computer and use it in GitHub Desktop.
Testa isto
<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">&nbsp;</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