= form_tag events_url, :remote => true, :method => :get, :id => "event_filter_form", :class => "ajax_update_main_pane" do
  %h4 Event Types
  #eventable_selectors
    - Event.group("eventable_type").map{|e| e.eventable_type }.each do |et|
      = label_tag "eventable_type[#{et}]", et.tableize.humanize
      = check_box_tag "eventable_type[#{et}]", "1", ((params[:eventable_type] && params[:eventable_type][et]) or !params[:eventable_type])
  %h4 Transitions
  #transition_selectors
    - Event.group("transition").map{|e| e.transition }.each do |tr|
      = label_tag "transition[#{tr}]", tr.to_s.humanize
      = check_box_tag "transition[#{tr}]", "1", ((params[:transition] && params[:transition][tr]) or !params[:transition])
  /= link_to "Refresh", events_url(:since => @events.first ? @events.first.event_date : @date), :remote => true, :id => "update_posts"
  = submit_tag
  /.date_select= select_date @date - 1
= javascript_tag "new Form.Observer('event_filter_form', 0.3, function(form, value){form.request()})"

= form_tag events_url, :remote => true, :method => :get, :id => "event_filter_form", :class => "ajax_update_main_pane" do
  %h4 Event Types
  #eventable_selectors
    - Event.group("eventable_type").map{|e| e.eventable_type }.each do |et|
      = label_tag "eventable_type[#{et}]", et.tableize.humanize
      = check_box_tag "eventable_type[#{et}]", "1", ((params[:eventable_type] && params[:eventable_type][et]) or !params[:eventable_type])
  %h4 Transitions
  #transition_selectors
    - Event.group("transition").map{|e| e.transition }.each do |tr|
      = label_tag "transition[#{tr}]", tr.to_s.humanize
      = check_box_tag "transition[#{tr}]", "1", ((params[:transition] && params[:transition][tr]) or !params[:transition])
  /= link_to "Refresh", events_url(:since => @events.first ? @events.first.event_date : @date), :remote => true, :id => "update_posts"
  = submit_tag
  /.date_select= select_date @date - 1
  /= javascript_tag "new Form.Observer('event_filter_form', 0.3, function(form, value){form.request()})"
  = link_to request.request_uri, request.request_uri

Tidy this away for a bit
Tidy this away for a bit
