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.12 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.11 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.10 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.9 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.8 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.7 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.6 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.5 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.4 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.3 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.2 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.8.1 app/views/caboose/my_account_invoices/index.html.erb