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.211 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.210 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.209 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.208 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.207 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.206 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.205 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.204 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.203 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.202 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.201 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.200 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.198 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.197 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.196 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.195 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.194 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.193 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.192 app/views/caboose/invoices/admin_city_report.html.erb
caboose-cms-0.9.191 app/views/caboose/invoices/admin_city_report.html.erb