diff options
author | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-15 19:47:24 +0100 |
---|---|---|
committer | Patrick J Cherry <patrick@bytemark.co.uk> | 2011-06-15 19:47:24 +0100 |
commit | fc0327f91fb134e1df994143a78c22df7d8f62e4 (patch) | |
tree | 9fb1161dbdece4428e6c65b1d555a67c7908fa9e /views/_alerts_table.haml | |
parent | 3576923edf788eecb4320e034f5afaaf625bd62e (diff) |
Big interface clear up
Diffstat (limited to 'views/_alerts_table.haml')
-rw-r--r-- | views/_alerts_table.haml | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/views/_alerts_table.haml b/views/_alerts_table.haml new file mode 100644 index 0000000..aa0c437 --- /dev/null +++ b/views/_alerts_table.haml @@ -0,0 +1,19 @@ +%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; + }); + }); + %th#time At + %th#summary Summary + = partial("alerts_table_group", :collection => @grouped_alerts) + %tr + %td + %td{:colspan => 2} + = partial("acknowledge_input") |