|
@@ -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 %}
|
|
@@ -54,7 +58,7 @@ file that was distributed with this source code.
|
|
|
{% endfor %}
|
|
|
|
|
|
{% if datagrid.pager.page != datagrid.pager.nextpage %}
|
|
|
- <li><a href="{{ admin.generateUrl('list', datagrid.values|merge({'page': datagrid.pager.nextpage})) }}">{% trans 'link_previous_pager' from 'BaseApplicationBundle' %}</a></li>
|
|
|
+ <li><a href="{{ admin.generateUrl('list', datagrid.values|merge({'page': datagrid.pager.nextpage})) }}">{% trans 'link_next_pager' from 'BaseApplicationBundle' %}</a></li>
|
|
|
{% endif %}
|
|
|
</ul>
|
|
|
</td>
|
|
@@ -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" >
|