diff options
Diffstat (limited to 'templates/displayheaders')
-rw-r--r-- | templates/displayheaders/_bot_nav.html.ep | 55 | ||||
-rw-r--r-- | templates/displayheaders/_main_table.html.ep | 2 |
2 files changed, 33 insertions, 24 deletions
diff --git a/templates/displayheaders/_bot_nav.html.ep b/templates/displayheaders/_bot_nav.html.ep index a6d089c..5da5026 100644 --- a/templates/displayheaders/_bot_nav.html.ep +++ b/templates/displayheaders/_bot_nav.html.ep @@ -1,35 +1,44 @@ <div class="columns"> - <div class="column"> - %= include 'displayheaders/_pagination1' - </div> + <div class="column"> + %= include 'displayheaders/_pagination1' + </div> - <div class="column"> - % if (grep {$_ ne $folder} @$mail_folders) { - %= form_for move => (id => 'move-mail') => begin + <div class="column"> + % if (grep {$_ ne $folder} @$mail_folders) { + %= form_for move => (id => 'move-mail') => begin - <div class="field is-horizontal"> - <div class=field-label> - %= label_for 'select-folder' => l('move to') => (class => 'label') - </div> - <div class=field-body> - <div class="field is-grouped"> - <div class=control> - <div class='select'> - %= select_field folder => [map { $_ ? $_ : l 'Home' } grep {$_ ne $folder} @$mail_folders] - </div> - </div> - %= csrf_field - <div class=control> - %= submit_button l('move') => (class => 'button') + <div class="field is-horizontal"> + <div class=field-label> + %= label_for 'select-folder' => l('move to') => (class => 'label') + </div> + <div class=field-body> + <div class="field is-grouped"> + <div class=control> + <div class='select'> + %= select_field folder => [map { $_ ? $_ : l 'Home' } grep {$_ ne $folder} @$mail_folders] </div> </div> + %= csrf_field + <div class=control> + %= submit_button l('move') => (class => 'button') + </div> </div> </div> + </div> + + % end + % } + </div> - % end - % } - </div> + <div class=column> + %= form_for 'remove/'.$folder => (id => 'remove-mail') => (method => 'POST') => begin + %= csrf_field + <div class=control> + %= submit_button l('remove') => (class => 'button') + </div> + % end + </div> <div class="column has-text-right"> <label for=allbox><%= l 'check all' %></label> diff --git a/templates/displayheaders/_main_table.html.ep b/templates/displayheaders/_main_table.html.ep index c88e125..6ba33fa 100644 --- a/templates/displayheaders/_main_table.html.ep +++ b/templates/displayheaders/_main_table.html.ep @@ -42,7 +42,7 @@ </div> <div class=media-right> - %= check_box mail => $msg->{message_handle} => (form => 'move-mail') => (class => 'jwm-mail-checkbox') + %= check_box mail => $msg->{message_handle} => (form => 'move-mail') => (form => 'remove-mail') => (class => 'jwm-mail-checkbox') </div> % end |