<% content_for :javascripts do -%> <%= raw how_are_we_doing_chart("bar-graph-form","bar-graph-container","bar") %> <% end -%> <%= form_tag(params[:parent_type] && params[:parent_id] ? "/#{params[:parent_type]}/#{params[:parent_id]}/reports" : "/reports", {:method => "get", :id => "bar-graph-form"}) do %>
<%= label_tag 'start_date', t('hawd.start_date') %> <%= text_field_tag 'start_date', "", :class => "date-selector", :placeholder => l(params[:start_date],:format => :analytics), :id => "bar-graph-form_start_date" %> <%= label_tag 'start_date', t('hawd.end_date') %> <%= text_field_tag 'end_date', "", :class => "date-selector", :placeholder => l(params[:end_date],:format => :analytics), :id => "bar-graph-form_end_date" %>
<%= hidden_field_tag 'exclude_prints' %> <%= hidden_field_tag 'exclude_totals' %> <%= hidden_field_tag 'exclude_views' %> <%= hidden_field_tag 'exclude_shares' %> <%= hidden_field_tag 'analytical_type', (params[:analytical_type]||params[:default_analytical_type]) %> <%= hidden_field_tag 'analytical_ids', (@analytical_ids||[]) %> <%= submit_tag(t(:submit)) %> <%= image_submit_tag("hawd/blank.png") %>
<%= label_tag 'analyticals', t('hawd.comparision', :analytical => (params[:analytical_type]||params[:default_analytical_type]||"")) %> <%= select_tag "analyticals", options_from_collection_for_select(@analyticals, "id", "to_s", {:selected => lambda { |analytical| @analytical_ids.include?(analytical.id) }}), :multiple => true, :size => 1 %>
<%= check_box_tag('include_totals', "1", true) %> <%= label_tag 'include_totals', t('hawd.totals') %> <%= check_box_tag('include_views', "1", true) %> <%= label_tag 'include_views', t('hawd.views') %> <%= check_box_tag('include_shares', "1", true) %> <%= label_tag 'include_shares', t('hawd.shares') %> <%= check_box_tag('include_prints', "1", true) %> <%= label_tag 'include_prints', t('hawd.prints') %>
<% end -%>