aboutsummaryrefslogtreecommitdiff
path: root/views/_events_form.haml
blob: 8eb91121e0ddef7fb263d32be73f36df62b684e1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
%form{:method => "GET", :action => ""}
  %label{:for => "subject"}
    Subject
  %input{:type => "text", :id => "subject", :name => "alert[subject]", :value => (params["alert"] ? params["alert"]["subject"]: "") }
  %label{:for => "source"}
    Source
  %input{:type => "text", :id => "subject", :name => "alert[source]", :value => (params["alert"] ? params["alert"]["source"] : "") }
  - Mauve::History.all(:fields => [:type], :unique => true).collect{|h| h.type}.each do |history_type|
    %label{:for => "history_"+history_type}
      = history_type.capitalize
    %input{:type => "checkbox", :name => "history[type][]", :value => "#{history_type}", :checked => (params["history"] && params["history"]["type"].is_a?(Array) ? params["history"]["type"].include?(history_type) : false) }
  %input{:type => "submit", :value => "Go!"}