Sha256: 670f3af437a8aea0d62d8d1919e3b35b81e09e2b84147a14005a4433e4fa7c9f

Contents?: true

Size: 837 Bytes

Versions: 1

Compression:

Stored size: 837 Bytes

Contents

<%= render 'nav' %>

<h1>Listing Customers</h1>

<table>
  <thead>
    <tr>
      <th>Customer</th>
      <th>Card</th>
      <th>Created</th>
      <th colspan="3"></th>
    </tr>
  </thead>

  <tbody>
    <% @customers.each do |customer| %>
      <tr>
        <td>
          <%= customer.email %>
          <%= "- #{customer.stripe_id}" if customer.stripe_id.present? %>
        </td>
        <td><%= customer.card.name if customer.card.present? %></td>
        <td><%= created_datetime(customer.created_at) %></td>
        <td><%= link_to 'Show', admin_customer_path(customer) %></td>
        <td><%= link_to 'Edit', edit_admin_customer_path(customer) %></td>
        <td><%= link_to 'Destroy', admin_customer_path(customer), method: :delete, data: { confirm: 'Are you sure?' } %></td>
      </tr>
    <% end %>
  </tbody>
</table>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
tang-0.0.1 app/views/tang/admin/customers/index.html.erb