% 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 %>
<%= 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") %>
<% end -%>