blob: 5a58b772b28b4d35976b22c1cb00e56c304028ea (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
<div class="pure-g jwm-nav">
<div class="pure-u-1-2 pure-u-md-1-4">
%= include 'headers/_pagination1'
</div>
<div class="pure-u-1-2 pure-u-md-1-4">
<label for=allbox><%= l 'check all' %></label>
<input name=allbox type=checkbox onclick="check_all(this)">
</div>
<div class="pure-u-1-1 pure-u-md-1-2">
%= form_for move => (id => 'move-mail') => (class => 'pure-form') => begin
<fieldset>
%= label_for 'select-folder' => l('move to')
%= select_field folder => [grep {$_ ne $folder} @$mail_folders] => (id => 'select-folder')
%= csrf_field
%= submit_button l('move') => (class => 'pure-button')
</fieldset>
% end
</div>
</div>
<script type="text/javascript">
function check_all(box) {
const setTo = box.checked;
const mails = document.getElementById('mail-headers').tBodies[0].rows;
for (const m of mails) {
m.lastElementChild.children[0].checked = setTo;
}
}
</script>
|