Sha256: f3307f0969cb4d0785cb7e5f4fd89e9067483045b0107ea083e0c00d291291d4

Contents?: true

Size: 1.64 KB

Versions: 2

Compression:

Stored size: 1.64 KB

Contents

<% content_for :javascripts do -%>
  <%= raw how_are_we_doing_chart("line-graph-form","line-graph-container","line") %>
<% end -%>

<%= form_tag(params[:parent_type] && params[:parent_id] ? "/#{params[:parent_type]}/#{params[:parent_id]}/reports" : "/reports", {:method => "get", :id => "line-graph-form"}) do %>
  <fieldset class="graph-dates">
    <%= label_tag 'start_date', t('hawd.start_date') %>
    <%= text_field_tag 'start_date', "", :class => "date-selector", :placeholder => l(params[:start_date],:format => :analytics), :id => "line-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 => "line-graph-form_end_date" %>
  </fieldset>
  
  <div class="button-wrapper">
    <%= hidden_field_tag 'exclude_prints' %>
    <%= hidden_field_tag 'exclude_totals' %>
    <%= hidden_field_tag 'exclude_views' %>
    <%= hidden_field_tag 'exclude_shares' %>
  
    <%= submit_tag(t(:submit)) %>
    <%= image_submit_tag("hawd/blank.png") %>
  </div>
  
  <fieldset class="graph-filters">
    <%= 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') %>
  </fieldset>
<% end -%>


<div id="line-graph-container" class="graph-chart"></div>

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
how_are_we_doing-0.0.6 app/views/reports/_line_graph.html.erb
how_are_we_doing-0.0.5 app/views/reports/_line_graph.html.erb