summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas NOEL <tnoel@entrouvert.com>2016-10-11 07:20:50 (GMT)
committerThomas NOEL <tnoel@entrouvert.com>2016-10-11 07:54:28 (GMT)
commita217cce050d7d6559a21d12b9aae5681edb89355 (patch)
tree9ba08a9b1fa41c387105aae845aae4f11e102629
parentea72b6d001ab26b1b78cf3755c4f7249e85cf9b0 (diff)
downloadwelco-a217cce050d7d6559a21d12b9aae5681edb89355.zip
welco-a217cce050d7d6559a21d12b9aae5681edb89355.tar.gz
welco-a217cce050d7d6559a21d12b9aae5681edb89355.tar.bz2
alfortville: add header checkbox to toggle validation on all mails (#13536)
-rw-r--r--welco/contrib/alfortville/templates/alfortville/dg-table.html5
1 files changed, 4 insertions, 1 deletions
diff --git a/welco/contrib/alfortville/templates/alfortville/dg-table.html b/welco/contrib/alfortville/templates/alfortville/dg-table.html
index 73a7c46..c2cc936 100644
--- a/welco/contrib/alfortville/templates/alfortville/dg-table.html
+++ b/welco/contrib/alfortville/templates/alfortville/dg-table.html
@@ -23,7 +23,7 @@
<th>{% trans 'User' %}</th>
<th>{% trans 'Category' %}</th>
<th>{% trans 'Related Forms' %}</th>
- <td></td>
+ <th><input type="checkbox" title="{% trans "Click to (un)toggle all mails" %}" id="click-all-pks"/></th>
</thead>
<tbody>
{% for object in mails %}
@@ -42,6 +42,9 @@
$('td.r').click(function() {
window.open('../?' + $(this).parent().data('mail-id'), target='_welco_dg');
});
+$('input#click-all-pks').click(function(e) {
+ $('input[name="pks"]').prop('checked', $(this).prop('checked'));
+});
</script>
</table>
</div>