aboutsummaryrefslogtreecommitdiff
path: root/views/_events_form.haml
diff options
context:
space:
mode:
authorPatrick J Cherry <patrick@bytemark.co.uk>2011-08-23 18:35:48 +0100
committerPatrick J Cherry <patrick@bytemark.co.uk>2011-08-23 18:35:48 +0100
commit1a636d2c97368bc4c4019f4ddcff991ec5eccbce (patch)
treeb8101b2739ddfed34f3f80b5c89fa15de5470739 /views/_events_form.haml
parentf9bab2fc3dcef0b452782de662ee7739a547079a (diff)
Added events viewer
* Fixes #1286 * Version bump
Diffstat (limited to 'views/_events_form.haml')
-rw-r--r--views/_events_form.haml13
1 files changed, 13 insertions, 0 deletions
diff --git a/views/_events_form.haml b/views/_events_form.haml
new file mode 100644
index 0000000..8eb9112
--- /dev/null
+++ b/views/_events_form.haml
@@ -0,0 +1,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!"}
+