--- /dev/null
+
+$(document).ready(function() {
+
+ $(".tous-handler").click(function() {
+ $('.check-batch input[type=checkbox]').attr('checked', true);
+ });
+
+ $(".aucun-handler").click(function() {
+ $('.check-batch input[type=checkbox]').attr('checked', false);
+ });
+
+ });
filter(version__content_type__app_label="rh").
exclude(user__isnull=True).
exclude(id__in=ids_revisions_traitees).
- order_by('-date_created'))
+ order_by('-date_created').
+ distinct('id'))
class TodoForm(forms.Form):
<script type="text/javascript" src="/admin/jsi18n"></script>
<script type="text/javascript" src="{{ STATIC_URL }}/admin/js/core.js"></script>
<script type="text/javascript" src="{{ STATIC_URL }}admin/js/admin/RelatedObjectLookups.js"></script>
+ <script type="text/javascript" src="{{ STATIC_URL }}/js/jquery-1.5.1.min.js"></script>
+ <script type="text/javascript" src="{{ STATIC_URL }}/js/tous-aucun.js"></script>
{{ block.super }}
+ <style>
+ .tous-handler, .aucun-handler {cursor: pointer;}
+ </style>
{% endblock %}
{% block title %}
<br />
<form method="post">
- <table id="result_list" class="results">
+ <table id="result_list" class="results check-batch">
<thead>
<tr>
{% for h in headers %}
<th>{{ h }}</th>
{% endfor %}
+ <th>Traité (<span class="tous-handler">tous</span>/<span
+ class="aucun-handler">aucun</span>)</th>
</tr>
</thead>
{% for revision in revisions %}
c = {
'headers': ('Date', 'Auteur', 'Type', 'Objet', 'Historique',
- 'Commentaire', 'Traité'),
+ 'Commentaire', ),
'revisions': results,
'page': page_revisions,
'form': form,