aboutsummaryrefslogtreecommitdiff
path: root/views/_alerts_table.haml
diff options
context:
space:
mode:
Diffstat (limited to 'views/_alerts_table.haml')
-rw-r--r--views/_alerts_table.haml19
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")