Sha256: c21e2c32c88ad689caa0d90acad615d7017dd08f2479b5b3ba5a44074f466daf

Contents?: true

Size: 1.43 KB

Versions: 312

Compression:

Stored size: 1.43 KB

Contents

<h1>City Report</h1>

<form action='/admin/invoices/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

312 entries across 312 versions & 1 rubygems

Version Path
caboose-cms-0.9.229 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-1.0.2 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-1.0.1 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.228 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.227 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.226 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.225 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.224 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.223 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.222 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.221 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.220 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.219 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.218 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.217 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.216 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.215 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.214 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.213 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.212 app/views/caboose/invoices/admin_city_report.html.erb