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.190 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.189 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.188 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.187 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.186 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.185 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.184 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.183 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.182 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.181 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.180 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.179 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.178 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.177 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.176 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.175 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.174 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.173 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.172 app/views/caboose/my_account_invoices/index.html.erb
caboose-cms-0.9.171 app/views/caboose/my_account_invoices/index.html.erb