Sha256: b125bd199b23bca6dd41d494439003d2917e1433789d21cd4f0305302c9ad76f

Contents?: true

Size: 1.15 KB

Versions: 312

Compression:

Stored size: 1.15 KB

Contents

<h1>Order History</h1>

<% if @invoices.count > 0 %>
  <table class='invoices'>
    <tr>
      <th>Date</th>
      <th>Order Number</th>
      <th>Total</th>
      <th>Status</th>
    </tr>
    <% @invoices.each do |invoice| %>
      <tr onclick="window.location='/my-account/invoices/<%= invoice.id %>';">
        <td><%= invoice.date_created ? invoice.date_created.strftime('%m/%d/%Y') : '' %></td>
        <td><%= invoice.invoice_number %></td>
        <td><%= number_to_currency(invoice.total) %></td>
        <td><%= invoice.status.capitalize %></td>
      </tr>
    <% end %>
  </table>
<% else %>
  <p>You don't have any invoices yet.<p>
<% end %>

<p><input type='button' value='< Back to My Account' class='btn' onclick="window.location='/my-account';" /></p>

<% content_for :caboose_css do %>
<style type='text/css'>

table.invoices { border-collapse: collapse; margin-bottom: 20px; }
table.invoices th { margin: 0; padding: 10px; border: #000 0px solid; font-weight: bold; text-align: center; }
table.invoices td { margin: 0; padding: 10px; border: #000 1px solid; }
table.invoices tr:hover td { background: #ccc; cursor: pointer; cursor: hand; }

</style>
<% end %>

Version data entries

312 entries across 312 versions & 1 rubygems

Version Path
caboose-cms-0.8.52 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.51 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.50 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.49 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.48 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.47 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.46 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.45 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.44 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.43 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.42 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.41 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.40 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.39 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.38 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.37 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.36 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.35 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.34 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.33 app/views/caboose/my_account_invoices/index.html.erb