Sha256: 506ef0db2fe3f7a0ac80a534a7d4c6bb2d8827a524390087e7b949c59bee0bd0

Contents?: true

Size: 1.43 KB

Versions: 35

Compression:

Stored size: 1.43 KB

Contents

<h1>City Report</h1>

<form action='/admin/orders/city-report' method='get' id='search_form'>
  <p>
     <input type='text' id='d1' name='d1' value='<%= @d1.strftime('%Y-%m-%d') %>' /> -
     <input type='text' id='d2' name='d2' value='<%= @d2.strftime('%Y-%m-%d') %>' />
     <input type='submit' value='Change Date Range' />
   </p>
</form>

<table class='data'>
  <tr>
    <th>City     </th>
    <th>State    </th>
    <th>Count    </th>
    <th>Subtotal </th>
    <th>Tax      </th>
    <th>Shipping </th>
    <th>Handling </th>
    <th>Discount </th>
    <th>Total    </th>    
  </tr>
  <% @rows.each do |row| %>
    <tr>
      <td><%= row.city  %></td>
      <td><%= row.state %></td>
      <td align='right'><%= row.count %></td>
      <td align='right'>$<%= sprintf('%.2f', row.subtotal ) %></td>
      <td align='right'>$<%= sprintf('%.2f', row.tax      ) %></td>
      <td align='right'>$<%= sprintf('%.2f', row.shipping ) %></td>
      <td align='right'>$<%= sprintf('%.2f', row.handling ) %></td>
      <td align='right'>$<%= sprintf('%.2f', row.discount ) %></td>
      <td align='right'>$<%= sprintf('%.2f', row.total    ) %></td>      
    </tr>
  <% end %>
</table>

<% content_for :caboose_js do %>
<%= javascript_include_tag 'caboose/model/all' %> 
<script type='text/javascript'> 

$(document).ready(function() {
  $('#d1').datepicker({ dateFormat: 'yy-mm-dd' });
  $('#d2').datepicker({ dateFormat: 'yy-mm-dd' });
});

</script>
<% end %>

Version data entries

35 entries across 35 versions & 1 rubygems

Version Path
caboose-cms-0.7.85 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.84 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.83 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.82 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.81 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.80 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.79 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.78 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.77 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.76 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.75 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.74 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.73 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.72 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.71 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.70 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.69 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.68 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.67 app/views/caboose/orders/admin_city_report.html.erb
caboose-cms-0.7.66 app/views/caboose/orders/admin_city_report.html.erb