diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-16 16:09:08 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-16 16:09:08 +0100 |
commit | 4ca1b2c8db777cd1e389a227072b1cd108e23d05 (patch) | |
tree | 20c3b89ae8dfbe839f1ab73334ff409e306a4fa5 /views/_alerts_table.haml | |
parent | 0b553879d0606b3f24047302e8958f9610341f2b (diff) |
Updated web interface to use a Sinatra layout.
Diffstat (limited to 'views/_alerts_table.haml')
-rw-r--r-- | views/_alerts_table.haml | 31 |
1 files changed, 13 insertions, 18 deletions
diff --git a/views/_alerts_table.haml b/views/_alerts_table.haml index f413c30..99a4e13 100644 --- a/views/_alerts_table.haml +++ b/views/_alerts_table.haml @@ -1,19 +1,14 @@ -%form#alerts{:method => :post, :action => '/alerts/acknowledge'} - %table - %tr - %th#selector - %input#toggle_all{ :type => "checkbox" } - :javascript - // This just toggles all the checkboxes. - $('#toggle_all').change( function() { - $('input.alert').each( function(index) { - this.checked = !this.checked; - }); +%table#alerts_table + %tr + %th#selector + %input#toggle_all{ :type => "checkbox" } + :javascript + // This just toggles all the checkboxes. + $('#toggle_all').change( function() { + $('input.alert').each( function(index) { + this.checked = !this.checked; }); - %th#summary Summary - %th#time At - = partial("alerts_table_group", :collection => @grouped_alerts) - %tr - %td - %td{:colspan => 2} - = partial("acknowledge_input") + }); + %th#summary Summary + %th#time At + = partial("alerts_table_group", :collection => @grouped_alerts) |