Added multi item action subform for generic list subtemplate and related code

This commit is contained in:
Roberto Rosario
2011-03-15 17:34:47 -04:00
parent 709f2a14e3
commit d80ec935da
6 changed files with 30 additions and 5 deletions
@@ -25,7 +25,7 @@
<div class="inner">
{% endif %}
<form action="#" class="form">
<form action="#" class="form" method="">
<table class="table">
<tbody>
{% if not hide_header %}
@@ -50,7 +50,7 @@
{% for object in object_list %}
<tr class="{% cycle 'odd' 'even2' %}">
{% if multi_select %}
<td><input type="checkbox" class="checkbox" name="id" value="1" /></td>
<td><input type="checkbox" class="checkbox" name="id" value="{{ object.pk }}" /></td>
{% endif %}
{% if not hide_object %}
{% if main_object %}
@@ -86,7 +86,10 @@
{% endfor %}
</tbody>
</table>
{% paginate %}
{% if multi_select %}
{% get_multi_item_links_form %}
{% endif %}
{% paginate %}
</form>
</div>
</div>