aboutsummaryrefslogtreecommitdiff
path: root/views/_jqChangeStatus.haml
blob: 1b00c179c860530c72e380ffa23452ac6b045177 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
%form{:name=>"changeAlertStatusForm", :action=>"html_form_action", :method=>"post"}
  %input{:type=>"hidden", :name=>"AlertID", :value=>"Null"}
  %input{:type=>"hidden", :name=>"AlertDefaultAcknowledgeTime", :value=>"Null"}
  %input{:type=>"button", :name=>"statusAcknowledgedFor", :value=>"Acknowledge this alert for",
    :onclick=>"changeAcknowledgeStatus(this.form.AlertID.value, this.form.timeStamp.value)",
    :class=>"buttonAcknowledgeAlert"}
  %select{:name=>"timeStamp", :id=>"sample", :class=>"timeList"}
    %option{:value=>"0"}default...
    %option{:value=>"3600"}1 hour
    %option{:value=>"7200"}2 hours
    %option{:value=>"7560"}3 hours
    %option{:value=>"18000"}5 hours
    %option{:value=>"25200"}7 hours
    %option{:value=>"86400"}1 day
    %option{:value=>"172800"}2 days
    %option{:value=>"604800"}1 week
    %option{:value=>"0"}Forever
  %input{:type=>"button", :name=>"raise", :value=>"Unacknowledged", :onClick=>"raiseAlert(this.form.AlertID.value);", :class=>"raiseAlert"} 
  %input{:type=>"button", :name=>"clear", :value=>"Trash alert", :onClick=>"clearAlert(this.form.AlertID.value);", :class=>"trashAlert"} 
%em
  Please be careful what you chose and err on the side of shorter times scales.