|
@@ -27,7 +27,11 @@ file that was distributed with this source code.
|
|
|
{% block table_header %}
|
|
|
<tr>
|
|
|
{% for field_description in fields %}
|
|
|
- <th>{{ field_description.name }}</th>
|
|
|
+ {% if field_description.getOption('code') == '_batch' %}
|
|
|
+ <th><input type="checkbox" id="list_batch_checkbox" /></th>
|
|
|
+ {% else %}
|
|
|
+ <th>{{ field_description.name }}</th>
|
|
|
+ {% endif %}
|
|
|
{% endfor %}
|
|
|
</tr>
|
|
|
{% endblock %}
|
|
@@ -62,6 +66,13 @@ file that was distributed with this source code.
|
|
|
{% endif %}
|
|
|
{% endblock %}
|
|
|
</table>
|
|
|
+ <script type="text/javascript">
|
|
|
+ jQuery(document).ready(function($){
|
|
|
+ $('#list_batch_checkbox').click(function(){
|
|
|
+ $(this).closest('table').find("td input[type='checkbox']").attr('checked', $(this).is(':checked'));
|
|
|
+ });
|
|
|
+ });
|
|
|
+ </script>
|
|
|
|
|
|
<div>
|
|
|
<select name="action" >
|