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.9.229 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-1.0.2 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-1.0.1 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.228 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.227 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.226 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.225 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.224 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.223 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.222 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.221 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.220 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.219 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.218 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.217 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.216 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.215 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.214 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.213 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.212 app/views/caboose/my_account_invoices/index.html.erb